Do I find address of kernel correctly?
Posted: Sat Feb 22, 2020 3:30 am
Hello.
I write MMU and in order not to damage the kernel when managing memory, I try to find the beginning and end of the kernel in memory.
And I would like to know if I'm doing everything right.
In my linker script, I declared startkernel and endkernel, did I place them correctly?
In the kmain() code, I output the values of these variables to serial.log(I output debugging information there), but I get huge addresses and it seems to me that I am wrong somewhere.
When running in qemu, it gives me 128 Mebibytes of RAM, while writing that the kernel is outside of RAM.
Thanks.
I write MMU and in order not to damage the kernel when managing memory, I try to find the beginning and end of the kernel in memory.
And I would like to know if I'm doing everything right.
In my linker script, I declared startkernel and endkernel, did I place them correctly?
In the kmain() code, I output the values of these variables to serial.log(I output debugging information there), but I get huge addresses and it seems to me that I am wrong somewhere.
When running in qemu, it gives me 128 Mebibytes of RAM, while writing that the kernel is outside of RAM.
Thanks.