Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/kern_mib.c
Show First 20 Lines • Show All 309 Lines • ▼ Show 20 Lines | sysctl_hw_machine_arch(SYSCTL_HANDLER_ARGS) | ||||
if (adaptive_machine_arch) | if (adaptive_machine_arch) | ||||
machine_arch = proc_machine_arch(curproc); | machine_arch = proc_machine_arch(curproc); | ||||
else | else | ||||
machine_arch = MACHINE_ARCH; | machine_arch = MACHINE_ARCH; | ||||
return (SYSCTL_OUT(req, machine_arch, strlen(machine_arch) + 1)); | return (SYSCTL_OUT(req, machine_arch, strlen(machine_arch) + 1)); | ||||
} | } | ||||
SYSCTL_PROC(_hw, HW_MACHINE_ARCH, machine_arch, CTLTYPE_STRING | CTLFLAG_RD | | SYSCTL_PROC(_hw, HW_MACHINE_ARCH, machine_arch, CTLTYPE_STRING | CTLFLAG_RD | | ||||
CTLFLAG_MPSAFE, NULL, 0, sysctl_hw_machine_arch, "A", | CTLFLAG_CAPRD | CTLFLAG_MPSAFE, NULL, 0, sysctl_hw_machine_arch, "A", | ||||
"System architecture"); | "System architecture"); | ||||
#ifndef MACHINE_ARCHES | #ifndef MACHINE_ARCHES | ||||
#ifdef COMPAT_FREEBSD32 | #ifdef COMPAT_FREEBSD32 | ||||
#define MACHINE_ARCHES MACHINE_ARCH " " MACHINE_ARCH32 | #define MACHINE_ARCHES MACHINE_ARCH " " MACHINE_ARCH32 | ||||
#else | #else | ||||
#define MACHINE_ARCHES MACHINE_ARCH | #define MACHINE_ARCHES MACHINE_ARCH | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 419 Lines • Show Last 20 Lines |