freebsd-dev/sys/compat/ndis
Bill Paul 0ad8336bc5 Correct the patch table entries for the 64-bit intrinsic math
routines (_alldiv(), _allmul(), _alludiv(), _aullmul(), etc...)
that use the _stdcall calling convention.

These routines all take two arguments, but the arguments are 64 bits wide.
On the i386 this means they each consume two 32-bit slots on the stack.
Consequently, when we specify the argument count in the IMPORT_SFUNC()
macro, we have to lie and claim there are 4 arguments instead of two.
This will cause the resulting i386 assembly wrapper to push the right
number of longwords onto the stack.

This fixes a crash I discovered with the RealTek 8180 driver, which
uses these routines a lot during initialization.
2005-05-08 09:16:33 +00:00
..
cfg_var.h Start each of the license/copyright comments with /*- 2005-01-05 22:34:37 +00:00
hal_var.h Create new i386 windows/bsd thunking layer, similar to the amd64 thunking 2005-04-11 02:02:35 +00:00
kern_ndis.c Avoid sleeping with mutex held in kern_ndis.c. 2005-05-05 06:14:59 +00:00
kern_windrv.c Throw the switch on the new driver generation/loading mechanism. From 2005-04-24 20:21:22 +00:00
ndis_var.h Avoid sleeping with mutex held in kern_ndis.c. 2005-05-05 06:14:59 +00:00
ntoskrnl_var.h This commit makes a bunch of changes, some big, some not so big. 2005-05-05 03:56:09 +00:00
pe_var.h Create new i386 windows/bsd thunking layer, similar to the amd64 thunking 2005-04-11 02:02:35 +00:00
resource_var.h Add support for Windows/x86-64 binaries to Project Evil. 2005-02-16 05:41:18 +00:00
subr_hal.c This commit makes a bunch of changes, some big, some not so big. 2005-05-05 03:56:09 +00:00
subr_ndis.c Cast 64 bit quantity to uintmax_t to print it with %jx. This is 2005-05-05 22:33:06 +00:00
subr_ntoskrnl.c Correct the patch table entries for the 64-bit intrinsic math 2005-05-08 09:16:33 +00:00
subr_pe.c Couple of lessons learned during USB driver testing: 2005-02-24 17:58:27 +00:00
subr_usbd.c This commit makes a bunch of changes, some big, some not so big. 2005-05-05 03:56:09 +00:00
usbd_var.h - Correct one aspect of the driver_object/device_object/IRP framework: 2005-02-24 21:49:14 +00:00
winx32_wrap.S In winx32_wrap.S, preserve return values in the fastcall and regparm 2005-04-11 17:04:49 +00:00
winx64_wrap.S When setting up the new stack for a function in x86_64_wrap(), make 2005-04-16 04:47:15 +00:00