From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4047B907.5070902@embeddededge.com> Date: Thu, 04 Mar 2004 18:17:27 -0500 From: Dan Malek MIME-Version: 1.0 To: Richard Williams Cc: Steven Scholz , LinuxPPC Subject: Re: uncached user space mapping with mmap() ??? References: Content-Type: text/plain; charset=us-ascii; format=flowed Sender: owner-linuxppc-embedded@lists.linuxppc.org List-Id: Richard Williams wrote: > I just tried this using pread.... No, no. Open /dev/mem and use mmap() to map your physical address: mmap(NULL, , (PROT_READ|PROT_WRITE), MAP_SHARED, mem_fd, phys_addr); Then, use the pointer returned from mmap() as the base of your registers. -- Dan ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/