Skip to contentSkip to conversation

Describing Physical RAM Map to Linux

DISCUSSION h h 2 participants 2 messages Apr 7, 2007 – Apr 8, 2007 MIPS

lore
Share & tools
lore

h h

author
#0 lore raw

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.

#1 lore raw
Quoted 2 lines · h h

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?

The kernel does this automatically.

Quoted 1 line

We are using 2.6.16 on Cavium/Octeon based platform.

Which atm are only supported by Cavium's proprietary version of Linux ...

Ralf