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>
This commit is contained in:
parent
4152177570
commit
511fa5ac98
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215420
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user