freebsd-nq/sys/amd64
Bjoern A. Zeeb 89ffc202d6 Fix handling of .note.ABI-tag section for GNU systems [1].
Handle GNU/Linux according to LSB Core Specification 4.0,
Chapter 11. Object Format, 11.8. ABI note tag.

Also check the first word of desc, not only name, according to
glibc abi-tags specification to distinguish between Linux and
kFreeBSD.

Add explicit handling for Debian GNU/kFreeBSD, which runs
on our kernels as well [2].

In {amd64,i386}/trap.c, when checking osrel of the current process,
also check the ABI to not change the signal behaviour for Linux
binary processes, now that we save an osrel version for all three
from the lists above in struct proc [2].

These changes make it possible to run FreeBSD, Debian GNU/kFreeBSD
and Linux binaries on the same machine again for at least i386 and
amd64, and no longer break kFreeBSD which was detected as GNU(/Linux).

PR:		kern/135468
Submitted by:	dchagin [1] (initial patch)
Suggested by:	kib [2]
Tested by:	Petr Salinger (Petr.Salinger seznam.cz) for kFreeBSD
Reviewed by:	kib
MFC after:	3 days
2009-08-24 16:19:47 +00:00
..
acpica Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
amd64 Fix handling of .note.ABI-tag section for GNU systems [1]. 2009-08-24 16:19:47 +00:00
compile
conf * Completely Remove the option STOP_NMI from the kernel. This option 2009-08-13 17:09:45 +00:00
ia32 Restore the segment registers and segment base MSRs for amd64 syscall 2009-07-09 09:34:11 +00:00
include Adjust the handling of the local APIC PMC interrupt vector: 2009-08-14 21:05:08 +00:00
isa Improve the handling of cpuset with interrupts. 2009-07-01 17:20:07 +00:00
linux32 Fix handling of .note.ABI-tag section for GNU systems [1]. 2009-08-24 16:19:47 +00:00
pci Match PCI Express root bridge _HID directly instead of 2009-07-13 21:36:31 +00:00
Makefile Adjustments to make a tags file a bit more suitable to amd64. 2008-12-01 14:15:10 +00:00