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
|
2010-06-17 11:54:49 +00:00
|
|
|
COUNT_XINVLTLB_HITS opt_smp.h
|
|
|
|
COUNT_IPIS opt_smp.h
|
2002-06-30 08:05:21 +00:00
|
|
|
MAXMEM
|
2005-12-12 10:15:11 +00:00
|
|
|
PERFMON
|
2010-10-29 18:38:36 +00:00
|
|
|
MPTABLE_FORCE_HTT
|
2005-12-12 10:15:11 +00:00
|
|
|
MP_WATCHDOG
|
2011-08-26 17:08:22 +00:00
|
|
|
NKPT opt_pmap.h
|
2012-03-24 19:43:49 +00:00
|
|
|
PV_STATS opt_pmap.h
|
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.
|
2010-03-11 14:49:06 +00:00
|
|
|
COMPAT_FREEBSD32 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
|
|
|
|
|
2009-09-09 09:50:31 +00:00
|
|
|
VESA
|
|
|
|
VESA_DEBUG opt_vesa.h
|
|
|
|
|
2009-02-06 20:57:10 +00:00
|
|
|
# AGP debugging support
|
|
|
|
AGP_DEBUG opt_agp.h
|
|
|
|
|
2002-06-30 08:05:21 +00:00
|
|
|
ATKBD_DFLT_KEYMAP opt_atkbd.h
|
|
|
|
|
|
|
|
# -------------------------------
|
|
|
|
# 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
|
|
|
|
2005-12-06 02:58:12 +00:00
|
|
|
# BPF just-in-time compiler
|
|
|
|
BPF_JITTER opt_bpf.h
|
2009-03-11 15:30:12 +00:00
|
|
|
|
|
|
|
XENHVM opt_global.h
|
2012-01-31 19:38:18 +00:00
|
|
|
|
|
|
|
# options for the Intel C600 SAS driver (isci)
|
|
|
|
ISCI_LOGGING opt_isci.h
|