uncached user space mapping with mmap() ???
Richard Williams
richard_williams at stratexnet.com
Fri Mar 5 10:02:34 EST 2004
Hi,
>> How could I do this on an MPC8xx?
>
>Open /dev/mem and just map the physical address of your
>registers. You don't even need your own driver. If you
>are mapping outside of the range of real memory, the mem
>driver will automatically give you uncached access.
I just tried this using pread but it wont let me seek to memory locations >= 0x80000000. perror returns "Invalid argument". The seek offset is a signed long int which indicates that it was intended to be limited to less then 0x80000000.
How do you access 3rd and 4th GB memory?
Richard
-----Original Message-----
From: owner-linuxppc-embedded at lists.linuxppc.org
[mailto:owner-linuxppc-embedded at lists.linuxppc.org]On Behalf Of Dan
Malek
Sent: Friday, March 05, 2004 6:00 AM
To: Steven Scholz
Cc: LinuxPPC
Subject: Re: uncached user space mapping with mmap() ???
Steven Scholz wrote:
> How could I do this on an MPC8xx?
Open /dev/mem and just map the physical address of your
registers. You don't even need your own driver. If you
are mapping outside of the range of real memory, the mem
driver will automatically give you uncached access.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list