Home
last modified time | relevance | path

Searched hist:c5e433b99ed3ddef0eb4fa937f38c34d4a3c4ae0 (Results 1 – 1 of 1) sorted by relevance

/freebsd/stand/libsa/
H A Dsmbios.cdiff c5e433b99ed3ddef0eb4fa937f38c34d4a3c4ae0 Mon May 01 23:12:34 CEST 2023 Warner Losh <imp@FreeBSD.org> stand: Avoid unaligned access in smbios code

This code was written on x86 where unaligned accesses were
easy. LinuxBoot running on aarch64 uses mmap of /dev/mem to read the
smbios table. Linux's mapping of this memory doesn't allow the normal
unaligned fixup, so we get a bus error instead. We can't use the more
natural le16dec and friends because they optimize into a single,
unaligned memory load. We don't see this issue on aarch64 UEFI because
memory is mapped such that unaligned accesses are fixed up.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D39793