2002-06-30 08:05:21 +00:00
|
|
|
# $FreeBSD$
|
2003-05-19 22:19:02 +00:00
|
|
|
# Options specific to AMD64 platform kernels
|
2002-06-30 08:05:21 +00:00
|
|
|
|
2003-11-17 08:58:16 +00:00
|
|
|
AUTO_EOI_1 opt_auto_eoi.h
|
|
|
|
AUTO_EOI_2 opt_auto_eoi.h
|
2002-06-30 08:05:21 +00:00
|
|
|
MAXMEM
|
2005-12-12 10:15:11 +00:00
|
|
|
PERFMON
|
2004-03-03 09:35:47 +00:00
|
|
|
PMAP_SHPGPERPROC opt_pmap.h
|
2005-12-12 10:15:11 +00:00
|
|
|
MP_WATCHDOG
|
2004-03-03 09:35:47 +00:00
|
|
|
|
|
|
|
# Options for emulators. These should only be used at config time, so
|
|
|
|
# they are handled like options for static filesystems
|
|
|
|
# (see src/sys/conf/options), except for broken debugging options.
|
2004-08-16 11:09:59 +00:00
|
|
|
COMPAT_IA32 opt_compat.h
|
2004-03-13 22:16:34 +00:00
|
|
|
#IBCS2 opt_dontuse.h
|
|
|
|
#COMPAT_LINUX opt_dontuse.h
|
2004-08-16 07:55:06 +00:00
|
|
|
COMPAT_LINUX32 opt_compat.h
|
2004-03-13 22:16:34 +00:00
|
|
|
#COMPAT_SVR4 opt_dontuse.h
|
|
|
|
#DEBUG_SVR4 opt_svr4.h
|
2006-05-07 18:12:18 +00:00
|
|
|
LINPROCFS opt_dontuse.h
|
2006-05-10 03:25:45 +00:00
|
|
|
LINSYSFS opt_dontuse.h
|
Add support for Windows/x86-64 binaries to Project Evil.
Ville-Pertti Keinonen (will at exomi dot comohmygodnospampleasekthx)
deserves a big thanks for submitting initial patches to make it
work. I have mangled his contributions appropriately.
The main gotcha with Windows/x86-64 is that Microsoft uses a different
calling convention than everyone else. The standard ABI requires using
6 registers for argument passing, with other arguments on the stack.
Microsoft uses only 4 registers, and requires the caller to leave room
on the stack for the register arguments incase the callee needs to
spill them. Unlike x86, where Microsoft uses a mix of _cdecl, _stdcall
and _fastcall, all routines on Windows/x86-64 uses the same convention.
This unfortunately means that all the functions we export to the
driver require an intermediate translation wrapper. Similarly, we have
to wrap all calls back into the driver binary itself.
The original patches provided macros to wrap every single routine at
compile time, providing a secondary jump table with a customized
wrapper for each exported routine. I decided to use a different approach:
the call wrapper for each function is created from a template at
runtime, and the routine to jump to is patched into the wrapper as
it is created. The subr_pe module has been modified to patch in the
wrapped function instead of the original. (On x86, the wrapping
routine is a no-op.)
There are some minor API differences that had to be accounted for:
- KeAcquireSpinLock() is a real function on amd64, not a macro wrapper
around KfAcquireSpinLock()
- NdisFreeBuffer() is actually IoFreeMdl(). I had to change the whole
NDIS_BUFFER API a bit to accomodate this.
Bugs fixed along the way:
- IoAllocateMdl() always returned NULL
- kern_windrv.c:windrv_unload() wasn't releasing private driver object
extensions correctly (found thanks to memguard)
This has only been tested with the driver for the Broadcom 802.11g
chipset, which was the only Windows/x86-64 driver I could find.
2005-02-16 05:41:18 +00:00
|
|
|
NDISAPI opt_dontuse.h
|
2002-06-30 08:05:21 +00:00
|
|
|
|
2004-03-03 09:35:47 +00:00
|
|
|
TIMER_FREQ opt_clock.h
|
2002-06-30 08:05:21 +00:00
|
|
|
|
2006-07-29 18:38:54 +00:00
|
|
|
# options for serial support
|
|
|
|
COM_ESP opt_sio.h
|
|
|
|
COM_MULTIPORT opt_sio.h
|
|
|
|
CONSPEED opt_sio.h
|
|
|
|
GDBSPEED opt_sio.h
|
2007-11-30 21:45:07 +00:00
|
|
|
COM_NO_ACPI opt_sio.h
|
2006-07-29 18:38:54 +00:00
|
|
|
|
2002-06-30 08:05:21 +00:00
|
|
|
VGA_ALT_SEQACCESS opt_vga.h
|
|
|
|
VGA_DEBUG opt_vga.h
|
|
|
|
VGA_NO_FONT_LOADING opt_vga.h
|
|
|
|
VGA_NO_MODE_CHANGE opt_vga.h
|
|
|
|
VGA_SLOW_IOACCESS opt_vga.h
|
|
|
|
VGA_WIDTH90 opt_vga.h
|
|
|
|
|
|
|
|
ATKBD_DFLT_KEYMAP opt_atkbd.h
|
|
|
|
|
2004-03-03 09:35:47 +00:00
|
|
|
# -------------------------------
|
|
|
|
# isdn4bsd: passive PCI cards
|
|
|
|
# -------------------------------
|
|
|
|
ELSA_QS1PCI opt_i4b.h
|
|
|
|
# -------------------------------
|
|
|
|
# isdn4bsd: misc options
|
|
|
|
# -------------------------------
|
|
|
|
# temporary workaround for SMP machines
|
|
|
|
I4B_SMP_WORKAROUND opt_i4b.h
|
|
|
|
# enable VJ compression code for ipr i/f
|
2007-07-04 00:18:39 +00:00
|
|
|
#XXXBZ#IPR_VJ opt_i4b.h
|
|
|
|
#XXXBZ#IPR_LOG opt_i4b.h
|
2004-03-03 09:35:47 +00:00
|
|
|
|
2002-06-30 08:05:21 +00:00
|
|
|
# -------------------------------
|
|
|
|
# EOF
|
|
|
|
# -------------------------------
|
2003-05-01 02:59:24 +00:00
|
|
|
HAMMER opt_cpu.h
|
|
|
|
PSM_HOOKRESUME opt_psm.h
|
|
|
|
PSM_RESETAFTERSUSPEND opt_psm.h
|
|
|
|
PSM_DEBUG opt_psm.h
|
2003-11-17 08:58:16 +00:00
|
|
|
DEV_ATPIC opt_atpic.h
|
2005-04-30 20:01:00 +00:00
|
|
|
|
|
|
|
# Debugging
|
2005-10-24 21:04:19 +00:00
|
|
|
STOP_NMI opt_cpu.h
|
2005-12-06 02:58:12 +00:00
|
|
|
|
|
|
|
# BPF just-in-time compiler
|
|
|
|
BPF_JITTER opt_bpf.h
|