* Question concerning memory configuration
@ 2000-01-28 22:32 Jeff Harrell
2000-01-29 2:52 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Harrell @ 2000-01-28 22:32 UTC (permalink / raw)
To: sgi-mips
[-- Attachment #1: Type: text/plain, Size: 878 bytes --]
I have question concerning the memory configuration variables in the
MIPS/Linux
codebase. I am working on a board that has 64Mbytes (0x400 0000) of
SDRAM. We
are using an R4000 core and have the memory map setup so that KSEG0 &
KSEG1 both
map to address 0x0 in physical memory. On our embedded system we are
going to hard
code the variable mips_memory_upper (This eventually is stored in
memory_end). My
question is what I should initialize the value to? Do I treat the top
of memory as KSEG1
+ 64Mbytes? (i.e., 0xA400 0000) or do I initialize it realative to 0?
If anybody has any
insights in this area, any information would be greatly appreciated.
Thanks,
Jeff
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jeff Harrell Work: (801) 619-6104
Broadband Access group/TI
jharrell@ti.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[-- Attachment #2: Type: text/html, Size: 1198 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question concerning memory configuration
2000-01-28 22:32 Question concerning memory configuration Jeff Harrell
@ 2000-01-29 2:52 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2000-01-29 2:52 UTC (permalink / raw)
To: Jeff Harrell; +Cc: sgi-mips
On Fri, Jan 28, 2000 at 03:32:22PM -0700, Jeff Harrell wrote:
> I have question concerning the memory configuration variables in the
> MIPS/Linux codebase. I am working on a board that has 64Mbytes
> (0x400 0000) of SDRAM. We are using an R4000 core and have the memory
> map setup so that KSEG0 & KSEG1 both map to address 0x0 in physical
> memory. On our embedded system we are going to hard code the variable
> mips_memory_upper (This eventually is stored in memory_end). My
> question is what I should initialize the value to? Do I treat the top
> of memory as KSEG1 + 64Mbytes? (i.e., 0xA400 0000) or do I initialize it
> realative to 0? If anybody has any insights in this area, any
> information would be greatly appreciated.
I killed mips_memory_upper in 2.3.27. Now the kernel uses the same
bootmem functions as the other machines to implement that functionality.
I suggest you take a look at arch/mips64/sgi-ip27/ip27-memory.c for
a simple example how to use this interface.
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-01-29 3:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-28 22:32 Question concerning memory configuration Jeff Harrell
2000-01-29 2:52 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox