Determining RAM size
Posted: Fri Jul 27, 2007 11:07 pm
Hi I have gone through the BRAN tutorial , and well i guess the next thing to do is make the memory manager. But for that i require 2 things
1)size of RAM
2)end of kernel in the memory
1)For the size of RAM i have come across the memory map (mmap_*) method, though i dont understand how its supposed to be used . i mean for every mmap structure ,
(if flag ==1)(RAM available)
current_size_RAM += sizeofstructure. ????
2)For the 2nd part , should I declare a variable at the end of the bss section in the linker script and then use that to determine the end of kernel??
I would be very grateful if someone could expalin this to me
1)size of RAM
2)end of kernel in the memory
1)For the size of RAM i have come across the memory map (mmap_*) method, though i dont understand how its supposed to be used . i mean for every mmap structure ,
(if flag ==1)(RAM available)
current_size_RAM += sizeofstructure. ????
2)For the 2nd part , should I declare a variable at the end of the bss section in the linker script and then use that to determine the end of kernel??
I would be very grateful if someone could expalin this to me