Hi,
I need to map a 64K block of physical memory (corresponding to BIOS region)
into virtual memory and look-up certain structures in it. Can anyone suggest
me a method to map the physical into virtual memory in NT driver?
Thank you,
Regards,
Ajith
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
U can open \Device\PhysicalMemory and map a section of it in ur address
space
Hope it helps
pash
----- Original Message -----
From: “Ajith JayaMohan”
To: “NT Developers Interest List”
Sent: Friday, July 14, 2000 5:43 AM
Subject: [ntdev] Physical->Virtual Memory Mapping
> Hi,
> I need to map a 64K block of physical memory (corresponding to BIOS
region)
> into virtual memory and look-up certain structures in it. Can anyone
suggest
> me a method to map the physical into virtual memory in NT driver?
>
> Thank you,
> Regards,
> Ajith
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@Legato.COM
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
> I need to map a 64K block of physical memory (corresponding
to BIOS region)
into virtual memory and look-up certain structures in it. Can
anyone suggest
me a method to map the physical into virtual memory in NT driver?
Try “MmMapIoSpace()”.
PVOID
MmMapIoSpace(
IN PHYSICAL_ADDRESS PhysicalAddress,
IN ULONG NumberOfBytes,
IN MEMORY_CACHING_TYPE CacheEnable
);
MmMapIoSpace maps the given physical address range to nonpaged system space.
Patrick Klos
Network Software Engineer
NuMega Lab / Compuware Corporation
> me a method to map the physical into virtual memory in NT driver?
HalTranslateBusAddress + MmMapIoSpace
Max
Hi,
I tried both the approaches - using ZwMapViewofSection and MmMapIoSpace() -
both work fine.
Thank you,
ajith
Try “MmMapIoSpace()”.
PVOID
MmMapIoSpace(
IN PHYSICAL_ADDRESS PhysicalAddress,
IN ULONG NumberOfBytes,
IN MEMORY_CACHING_TYPE CacheEnable
);
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com