RE: How does /dev/mem work?
RE: How does /dev/mem work?
- Subject: RE: How does /dev/mem work?
- From: Hajime Inoue <email@hidden>
- Date: Sun, 8 Mar 2009 19:30:56 -0400
Thanks for the reply, Mike.
After looking at ppc code, it appears that you ALWAYS get garbage
from /dev/mem under i386 in xnu-517.12.7, and you get garbage under
ppc unless certain flags are set.
Does anyone know why sending garbage was chosen as the implementation?
Also, what is the alternative to /dev/mem on newer kernels? The pmap_*
interface would seem to be the proper thing to use, but am I right in
that it is not exported to KEXTs?
-Jim
-----Original Message-----
From: Michael Smith [mailto:email@hidden]
Sent: Monday, March 02, 2009 11:49 PM
To: Hajime Inoue
Cc: email@hidden
Subject: Re: How does /dev/mem work?
On Mar 2, 2009, at 2:17 PM, Hajime Inoue wrote:
> I'm trying to understand the /dev/mem code in older versions of
> Darwin. I'm new to xnu so I may simply not know some of the well
> known assumptions.
I don't believe that the code you're looking at works.
As a general rule, you don't get to play with /dev/mem under Darwin.
= Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden