From: "prodyuth" <prodyuth@indiatimes.com>
To: linux-mm@kvack.org
Subject: Accessing memory above kernel load address
Date: Tue, 12 Feb 2002 22:35:33 +0530 [thread overview]
Message-ID: <200202121708.WAA21157@WS0005.indiatimes.com> (raw)
Hi all,
I am running linux on a MIPS board that has 16Mb of memory. The memory map starts from 0x8000 0000 to 0x8100 0000 ( 16MB . This space is KSEG0 in MIPS terminology)
I use a bootloader to bring up the linux kernel. The boot loader sits in address 0x8020 0000 to 0x8040 0000. The bootloader loads the Linux Kernel in physical address 0x8090 0000.
I have setup the RAM space available for Linux kernel as 16MB, starting from PAGE_OFFSET (0x8000 0000). But since the kernel is loaded at 0x8090 0000 it is unable to access the region which the bootloader was using earlier. (0x8000 0000 to 0x8090 0000) after the Linux kernel is up and running. How do I access that region?
I tried to open ("/dev/kmem") after the Linux kernel came up. When I did a read on /dev/kmem after opening it, the linux kernel just hanged.
When I did an lseek to 0x200000 and then tried to read /dev/kmem, the kernel crashed.
I did an lseek to 0x200000 because I want to access the memory region starting from 0x80200000.
The memory map is drawn here for clarification.
----------------------- <--- Address 0x8000 0000
| Bootloader memory |
----------------------- <--- Address 0x8090 0000
| Linux kernel memory |
---------------------- <--- Address 0x8100 0000
I cannot change the memory map.
Any pointers to help me will be greatly appreciated.
Thanks & regards,
Prodyut.
Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com
Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from http://www.planetm.co.in
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
reply other threads:[~2002-02-12 17:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200202121708.WAA21157@WS0005.indiatimes.com \
--to=prodyuth@indiatimes.com \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox