Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Describing Physical RAM Map to Linux
@ 2007-04-07 21:59 h h
  2007-04-08 23:11 ` Ralf Baechle
  0 siblings, 1 reply; 3+ messages in thread
From: h h @ 2007-04-07 21:59 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 593 bytes --]

Hi,

I have a very basic question -- When describing physical memory to the kernel in 
prom_init(), should we describe the physical memory region where kernel is loaded or leave it out?  We are using add_memory_region() call to describe physical memory to the kernel.  If we do describe the memory region where kernel is loaded, how will kernel know not to use these pages for User processes?

We are using 2.6.16 on Cavium/Octeon based platform. 

Thanks,
JJ



 
---------------------------------
Don't get soaked.  Take a quick peek at the forecast 
 with theYahoo! Search weather shortcut.

[-- Attachment #2: Type: text/html, Size: 778 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: Describing Physical RAM Map to Linux
@ 2007-04-10  0:31 h h
  0 siblings, 0 replies; 3+ messages in thread
From: h h @ 2007-04-10  0:31 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 1075 bytes --]




On Sat, Apr 07, 2007 at 02:59:15PM -0700, h h wrote:

> I have a very basic question -- When describing physical memory to the kernel 
> in prom_init(), should we describe the physical memory region where kernel is 
> loaded or leave it out?  We are using add_memory_region() call to describe 
> physical memory to the kernel.  If we do describe the memory region where 
> kernel is loaded, how will kernel know not to use these pages for User 
> processes?

Ralf wrote:
The kernel does this automatically.

---

Sorry I don't quite understand -- What does kernel do 
automatically?  
How does kernel automatically know how much RAM is 
installed?

If you mean kernel automatically reserves the memory
it is loaded in, my question is where is this being 
done? I am expecting calls to alloc_bootmem or 
reserve_bootmem with addresses for text/data/stack
regions of kernel, but I don't see them.

Any pointers would be appreciated.


Thanks,



       
---------------------------------
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.

[-- Attachment #2: Type: text/html, Size: 1734 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-10  0:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-07 21:59 Describing Physical RAM Map to Linux h h
2007-04-08 23:11 ` Ralf Baechle
  -- strict thread matches above, loose matches on Subject: below --
2007-04-10  0:31 h h

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox