summaryrefslogtreecommitdiff
path: root/sys/dev/microcode/isp
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2002-10-18 16:23:47 +0000
committerthorpej <thorpej@NetBSD.org>2002-10-18 16:23:47 +0000
commit1268b2dbc51f7370b836b4e7aa79076544015c7e (patch)
treeee737bcdbf2f06f911b711b498c822f95817a75c /sys/dev/microcode/isp
parent2665f9c68c8a6873f0ebfadeb287d37154ee188f (diff)
Add an x86_initialize_trampoline() function, similar to GCC 3.3,
change INITIALIZE_TRAMPOLINE() to use it, and apply the following patch to it (which I have already submitted to GCC 3.3): * config/i386/i386.c (x86_initialize_trampoline): Emit a call to __enable_execute_stack with the address of the trampoline if TRANSFER_FROM_TRAMPOLINE is defined. Define a TRANSFER_FROM_TRAMPOLINE suitable for NetBSD targets, to enable stack execution on target machines which can separate exec permissions for a region: * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Define. * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Define as NETBSD_ENABLE_EXECUTE_STACK. * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Ditto. * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Ditto. * config/sparc/netbsd-elf-common.h (TRANSFER_FROM_TRAMPOLINE): Ditto. * config/sparc/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Ditto. (A similar patch will be submitted to GCC 3.3.)
Diffstat (limited to 'sys/dev/microcode/isp')
0 files changed, 0 insertions, 0 deletions