freebsd-nq/sys/i386
Konstantin Belousov d24031dd0c Fix the ABI change of the signal delivered on the access to the page
with insufficient protection mode.

For the i386 and amd64, create the tunable, machdep.prot_fault_translation,
with the following behaviour:
	0 = autodetect the signal to be delivered on KERN_PROTECTION_FAILURE
	    from vm_fault based on the ELF OSABI note:
		no note or __FreeBSD_version < 700004 - SIGBUS/BUS_PAGE_FAULT
		note, and __FreeBSD_version >= 700004 - SIGSEGV/SEGV_ACCERR
	1 = always SIGBUS/BUS_PAGE_FAULT
	2 = always SIGSEGV/SEGV_ACCERR

This would do mostly automatic correction of ABI breakage, with the exception
of the untaged binaries for 7-CURRENT/RELENG_7 before the note is fixed. For
them, sysctl would allow to run the binary with manual settings.

Discussed with:	portmgr (kris)
PR:		kern/118304
MFC after:	3 days
2007-12-04 12:33:03 +00:00
..
acpica This is a follow-up, cleaning-up commit about recent changes involving 2007-09-11 22:54:09 +00:00
bios Apply the same sort of locking done in 2007-11-14 05:43:55 +00:00
compile
conf Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
cpufreq Use bus_dma to get a page in the first 4 GB. Since the physical address 2007-06-17 07:18:23 +00:00
i386 Fix the ABI change of the signal delivered on the access to the page 2007-12-04 12:33:03 +00:00
ibcs2 Fix for the panic("vm_thread_new: kstack allocation failed") and 2007-11-05 11:36:16 +00:00
include Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
isa Don't use plain "ret" instructions at targets of jump instructions, 2007-11-29 02:01:21 +00:00
linux Implement read_default_ldt in linux_modify_ldt(). It copies out zeroed 2007-11-26 11:06:19 +00:00
pci MFamd64: 1.109 of pci_cfgreg.c which changes pci_cfgdisable() into a nop 2007-11-28 22:22:05 +00:00
svr4 Use svr4_si_{addr,code,errno,signo,trap} in preference to si_{...}. 2005-10-19 14:59:54 +00:00
xbox - Define data of struct gfb_font a const as it's only used to supply font 2007-06-16 21:31:53 +00:00
Makefile Update entries for building tags. 2007-05-13 18:21:54 +00:00