summaryrefslogtreecommitdiffstats
path: root/sys/compat/ndis
diff options
context:
space:
mode:
authorbschmidt <bschmidt@FreeBSD.org>2010-11-17 09:32:39 +0000
committerbschmidt <bschmidt@FreeBSD.org>2010-11-17 09:32:39 +0000
commit389cf6e63104fad1902eb97d7f7f4deba10390ac (patch)
treef26f09bf4706cc0e61e3073f5ad1d4bf73508800 /sys/compat/ndis
parent87fbb488d42ee452f32782e83f68e4f3e4834c97 (diff)
downloadFreeBSD-src-389cf6e63104fad1902eb97d7f7f4deba10390ac.zip
FreeBSD-src-389cf6e63104fad1902eb97d7f7f4deba10390ac.tar.gz
Fix a panic on i386 for drivers using MmAllocateContiguousMemory()
and MmAllocateContiguousMemorySpecifyCache(). Those two functions take 64-bit variable(s) for their arguments. On i386 that takes additional 32-bit variable per argument. This is required so that windrv_wrap() can correctly wrap function that miniport driver calls with stdcall convention. Similar explanation is provided in subr_ndis.c for other functions. Submitted by: Paul B Mahol <onemda at gmail.com>
Diffstat (limited to 'sys/compat/ndis')
-rw-r--r--sys/compat/ndis/subr_ntoskrnl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/ndis/subr_ntoskrnl.c b/sys/compat/ndis/subr_ntoskrnl.c
index a46640a..1aaafdc 100644
--- a/sys/compat/ndis/subr_ntoskrnl.c
+++ b/sys/compat/ndis/subr_ntoskrnl.c
@@ -4237,8 +4237,8 @@ image_patch_table ntoskrnl_functbl[] = {
IMPORT_FFUNC(ExInterlockedAddLargeStatistic, 2),
IMPORT_SFUNC(IoAllocateMdl, 5),
IMPORT_SFUNC(IoFreeMdl, 1),
- IMPORT_SFUNC(MmAllocateContiguousMemory, 2),
- IMPORT_SFUNC(MmAllocateContiguousMemorySpecifyCache, 5),
+ IMPORT_SFUNC(MmAllocateContiguousMemory, 2 + 1),
+ IMPORT_SFUNC(MmAllocateContiguousMemorySpecifyCache, 5 + 3),
IMPORT_SFUNC(MmFreeContiguousMemory, 1),
IMPORT_SFUNC(MmFreeContiguousMemorySpecifyCache, 3),
IMPORT_SFUNC_MAP(MmGetPhysicalAddress, pmap_kextract, 1),
OpenPOWER on IntegriCloud