physical memory

Is it possible to access physical memory without setting up resources in the
device manager?

Will this cause 2000 to bomb when I try to access it from the driver?

addrs = MmMapIoSpace(phyAddress, (IN ULONG) (4*1024), FALSE); //is this
ok???

Thanks,

Asher

>Is it possible to access physical memory without

setting up resources in the device manager?

Ok, I am seeing in the Viscarola book where The
parameters passed in IRP_MN_START_DEVICE of type
CM_RESOURCE_LIST are the translated resources that the
HAL, the I/O Manager and the PnP Manager Have agreed
on. These are equivelant of calling MmMapIoSpace()
and IoConnectInterrupt( ) in NT4. NT4 Drivers will
run unchanged in NT5 so, It is not the operating
system, it must be my code. Did I do anything wrong?

case SET_ADDRESS:// Set LAN CPU physical
ptr = ( unsigned long*)
Irp->AssociatedIrp.SystemBuffer;
phy_addrs = *ptr; // physical LAN addrs
PAbaseAddress.LowPart = *ptr;
lin_addrs = MmMapIoSpace(PAbaseAddress,
(IN ULONG)(4*1024), FALSE); //translate logical
address to kernel virtual address


Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

Probably yes, since the addresses can belong to some other piece of
hardware.

Max

----- Original Message -----
From: “Asher Hoodin”
To: “NT Developers Interest List”
Sent: Thursday, September 19, 2002 6:22 PM
Subject: [ntdev] physical memory

> Is it possible to access physical memory without setting up
resources in the
> device manager?
>
> Will this cause 2000 to bomb when I try to access it from the
driver?
>
> addrs = MmMapIoSpace(phyAddress, (IN ULONG) (4*1024), FALSE); //is
this
> ok???
>
> Thanks,
>
> Asher
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to %%email.unsub%%
>

All MmMapIoSpace() does is map a physical memory range into the virtual
address space. So long as Asher knows in advance or can guarantee that
the physical memory address supplied is appropriate for what he’s doing,
there shouldn’t be a problem.

Chuck

----- Original Message -----
From: “Maxim S. Shatskih”
To: “NT Developers Interest List”
Sent: Sunday, September 22, 2002 8:04 PM
Subject: [ntdev] Re: physical memory

> Probably yes, since the addresses can belong to some other piece of
> hardware.
>
> Max
>
> ----- Original Message -----
> From: “Asher Hoodin”
> To: “NT Developers Interest List”
> Sent: Thursday, September 19, 2002 6:22 PM
> Subject: [ntdev] physical memory
>
>
> > Is it possible to access physical memory without setting up
> resources in the
> > device manager?
> >
> > Will this cause 2000 to bomb when I try to access it from the
> driver?
> >
> > addrs = MmMapIoSpace(phyAddress, (IN ULONG) (4*1024), FALSE); //is
> this
> > ok???
> >
> > Thanks,
> >
> > Asher

ty Chuck!

address space. So long as Asher knows in advance or
can guarantee that
the physical memory address supplied is appropriate
for what he’s doing,
there shouldn’t be a problem.

> Probably yes, since the addresses can belong to
some other piece of
> hardware.
>
> Max


Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com