Page 1 of 1
How do I get the address at the end of the kernel?
Posted: Sun Jun 29, 2025 1:05 pm
by Tomrs123
I'm working on the memory map part of my kernel, but I need to know the end of my kernel because I dont want to overwrite it (ill basically just modify the memory map to exclude the kernel). So how do I do that? Do I need to get something from the Multiboot info struct, something special i have to do to get that information to the kernel? My OS is in my signuature if that would help. Hope one of you can help!

Re: How do I get the address at the end of the kernel?
Posted: Sun Jun 29, 2025 1:23 pm
by iansjack
The multiboot boot information structure contains a memory map that lists all available memory.
Re: How do I get the address at the end of the kernel?
Posted: Sun Jun 29, 2025 1:32 pm
by Tomrs123
iansjack wrote: ↑Sun Jun 29, 2025 1:23 pm
The multiboot boot information structure contains a memory map that lists all available memory.
I know that. I got that in my OS, but the issue is it doesnt include where the kernel is loaded at and when it ends. It just says "oh, you have memory at 0x10000 with a length of whatever". At least, that's is what I've saw.
Re: How do I get the address at the end of the kernel?
Posted: Sun Jun 29, 2025 3:43 pm
by Tomrs123
Nevermind guys. I shouldve just searched it up.