diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2013-12-16 15:00:06 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2013-12-16 15:00:06 +0000 |
commit | d72da1522ebaf9f726ebc64ad1bd4c7b3eef10ec (patch) | |
tree | ca46a549f28578bd0c7311f7eb0a5085e04ee99e /sys/vm/vm_fault.c | |
parent | 607fc1b0bd214428aeadf5537952c97b50bbb9af (diff) | |
download | FreeBSD-src-d72da1522ebaf9f726ebc64ad1bd4c7b3eef10ec.zip FreeBSD-src-d72da1522ebaf9f726ebc64ad1bd4c7b3eef10ec.tar.gz |
MFC r258819,258928:
Add new sysctl, kern.supported_archs, containing the list of FreeBSD
MACHINE_ARCH values whose binaries this kernel can run. This patch provides
a feature requested for implementing pkgng ABI identifiers in a robust
way.
The list is designed to indicate whether, say, an i386 package can be run on
the current system. If kern.supported_abis contains "i386", then the answer
is yes. Otherwise, the answer is no.
At the moment, this only supports MACHINE_ARCH and MACHINE_ARCH32. As we
gain support for more interesting combinations, this needs to become more
flexible, possibily through the sysent framework, along with the
hw.machine_arch emulation immediately preceding this code in kern_mib.c.
Reviewed by: imp
Diffstat (limited to 'sys/vm/vm_fault.c')
0 files changed, 0 insertions, 0 deletions