summaryrefslogtreecommitdiffstats
path: root/sys/compat/ia32
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-10-03 11:57:21 +0000
committerbz <bz@FreeBSD.org>2009-10-03 11:57:21 +0000
commit8e183cd85201b119d9db722fe1d28c9b670245d1 (patch)
tree6cb8a42ac48b11c5b150bbb77da88f7a5b2e39df /sys/compat/ia32
parent7fe717ff129ce34fa3b5380090fae7cdbf0984e3 (diff)
downloadFreeBSD-src-8e183cd85201b119d9db722fe1d28c9b670245d1.zip
FreeBSD-src-8e183cd85201b119d9db722fe1d28c9b670245d1.tar.gz
Make sure that the primary native brandinfo always gets added
first and the native ia32 compat as middle (before other things). o(ld)brandinfo as well as third party like linux, kfreebsd, etc. stays on SI_ORDER_ANY coming last. The reason for this is only to make sure that even in case we would overflow the MAX_BRANDS sized array, the native FreeBSD brandinfo would still be there and the system would be operational. Reviewed by: kib MFC after: 1 month
Diffstat (limited to 'sys/compat/ia32')
-rw-r--r--sys/compat/ia32/ia32_sysvec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/ia32/ia32_sysvec.c b/sys/compat/ia32/ia32_sysvec.c
index 46e0b80..cb8d33d 100644
--- a/sys/compat/ia32/ia32_sysvec.c
+++ b/sys/compat/ia32/ia32_sysvec.c
@@ -152,7 +152,7 @@ static Elf32_Brandinfo ia32_brand_info = {
.flags = BI_CAN_EXEC_DYN | BI_BRAND_NOTE
};
-SYSINIT(ia32, SI_SUB_EXEC, SI_ORDER_ANY,
+SYSINIT(ia32, SI_SUB_EXEC, SI_ORDER_MIDDLE,
(sysinit_cfunc_t) elf32_insert_brand_entry,
&ia32_brand_info);
OpenPOWER on IntegriCloud