HomeFreeBSD

stand/kboot: Add note about why we use MACHINE_ARCH here

Description

stand/kboot: Add note about why we use MACHINE_ARCH here

Normally in the boot loader, we key off of MACHINE since that specifies
the kernel and the loader is very tuned to each type of MACHINE in
general. In this case, however, we're producing a Linux binary, with
Linux system calls encoded in it. These align better along the
MACHINE_ARCH axis of FreeBSD. For PowerPC the system calls are radically
different for each of our MACHINE_ARCHes, with only powerpc64 and
powerpc64le sharing the same numbers and memory layout. The same was
true about mips when it was in the tree. 32-bit arm uses the same
layout, however, for both armv6 and armv7 ports: that can be easily
shared in the unlikely event we support that in the future.

Sponsored by: Netflix

(cherry picked from commit cc7b630cec8320ad979af6b29cb67027f6a95456)

Details

Provenance
impAuthored on Sep 4 2022, 3:31 PM
Parents
rGfb7f61f13ae1: stand: Grammar fix for a source code comment
Branches
Unknown
Tags
Unknown