summaryrefslogtreecommitdiffstats
path: root/sys/amd64/linux32
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2008-11-22 12:36:15 +0000
committerkib <kib@FreeBSD.org>2008-11-22 12:36:15 +0000
commit8fad2283b3211a15c495b42689a5b65d91b96f3b (patch)
treec5e6cdb7219d5ec854c9a25a01e8ddfce232c5e9 /sys/amd64/linux32
parent45f7975419230cdc3b0ba2cffb4b5fdebf5607bd (diff)
downloadFreeBSD-src-8fad2283b3211a15c495b42689a5b65d91b96f3b.zip
FreeBSD-src-8fad2283b3211a15c495b42689a5b65d91b96f3b.tar.gz
Add sv_flags field to struct sysentvec with intention to provide description
of the ABI of the currently executing image. Change some places to test the flags instead of explicit comparing with address of known sysentvec structures to determine ABI features. Discussed with: dchagin, imp, jhb, peter
Diffstat (limited to 'sys/amd64/linux32')
-rw-r--r--sys/amd64/linux32/linux32_sysvec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/linux32/linux32_sysvec.c b/sys/amd64/linux32/linux32_sysvec.c
index e233700..3acee30 100644
--- a/sys/amd64/linux32/linux32_sysvec.c
+++ b/sys/amd64/linux32/linux32_sysvec.c
@@ -1026,6 +1026,7 @@ struct sysentvec elf_linux_sysvec = {
.sv_setregs = exec_linux_setregs,
.sv_fixlimit = linux32_fixlimit,
.sv_maxssiz = &linux32_maxssiz,
+ .sv_flags = SV_ABI_LINUX | SV_ILP32 | SV_IA32
};
static Elf32_Brandinfo linux_brand = {
OpenPOWER on IntegriCloud