[uCsimm] RE: [UCLINUX] uclinux paging

From: fabien.klein@conexant.com
Date: Mon Apr 10 2000 - 13:05:34 EDT


Vadim

This won't work cause in my setup the first 512k are reserved for vector table and other stuff
Then the Flash is mapped at 0x400000 and finally the RAM at 0xa00000

During the setup the whole kernel (text+data) is moved at RAM start 0xa00000-0x1000000

static inline unsigned long page_address(struct page * page)
{
     return PAGE_OFFSET + PAGE_SIZE * page->map_nr;
}

ps:
is it normal that the inode pointer changes between read and write request?

(/dev/ram0 mounted on /var)

=> cp /etc/blabla /var
+++++ ext2_file_write (struct inode * inode, struct file * filp, const char * buf, int count)
(the inode address is around kernel addresses(low address) ie 0xa0xxxx)

more /var/blabla
++++++ generic_file_read(struct inode * inode, struct file * filp, char * buf, int count)
(here the inode address is around top memory (high addresses 0xfdxxxx)

   Have you tried the ramdisk driver?

   Fabien

"Vadim Lebedev" <vlebedev@aplio.fr> on 04/10/2000 05:57:38 PM

To: <fabien.klein@conexant.com>, <gnucsimm@www.reefhq.org.au>
cc: <ucsimm@uClinux.org>, <uclinux@c3po.kc-inc.net>
Subject: RE: [UCLINUX] uclinux paging

Fabien,

I think PAGE_OFFSET should be 0

Vadim

This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:35 EST