Reading Tim Robinsons' first memory management tutorial, I came across
So after a quick search on google, I found that I should putWe know the address of the start and end of our kernel (you can set a symbol to the end of the kernel image in
a GNU ld script, for example). From this we can work out how big the kernel is so that we can avoid
allocating memory from the kernel?s space ? to allocate memory from the middle of the kernel would be fatal.
Code: Select all
_endofkernel = ABSOLUTE(.) ;
Code: Select all
_endofkernel = . ;