--- In Lennert Buytenhek <> wrote:
>
> On Thu, Mar 16, 2006 at 04:53:35PM -0800, Rich Wilson wrote:
>
> > I suspect you're having problems because you're not page aligned.
>
> That's odd, does the book say that? I always thought that ioremap()
> deals with non-page aligned addresses itself, and having a peek at
> the 2.6.16-rc5 source code (arch/arm/mm/ioremap.c) seems to confirm
> this..
I've been through the source for the ts9 kernel.... And the arm
ioremap does handle non-page-aligned requests....
I still can't figure out why, in the most basic sense,
readb(ioremap(0x11e00104,1)) in kernel mode gives a different result than
*((unsigned char *)mmap(0, getpagesize(), PROT_READ|PROT_WRITE,
MAP_SHARED, fd, 0x11e000104)) in userspace....
...
I've been through the source for 8250.c and a handful of others, and I
can't for the life of me figure out why those two are giving me
diffferent answers...
They should both point to the control register of the TSDIO-24 board...
--Yan
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|