From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ronald G Minnich To: <9fans@cse.psu.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: [9fans] Question on mapping 0xfff00000 Date: Mon, 19 Mar 2001 23:06:26 -0700 Topicbox-Message-UUID: 71cd865e-eac9-11e9-9e20-41e7f4b1d025 I need to map FLASH at 0xfff00000 into my flash driver. I have tried a number of variations, and keep coming back to: flashbase = upamalloc(0xfff00000, 0x100000, 0); Return value is 0xfff00000. But, any reference to this address provokes a fault, which leaves me believing I've got this wrong, even though a walk through that code also looks like it does set up the PTEs in the right way. The southbridge chip (PIIX4E) also has the right bits set to enable FLASH at these high addresses, and I've tested those settings in Linux. The general problem is to map the last 2M of the 32-bit address space into memory, since on many boards that is the "reserved for BIOS flash" area. What am I doing wrong? What's the right way to do this. I'm new to this kernel, needless to say. I'm also very happy it is now open source ... ron