How do I get the address at the end of the kernel?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Tomrs123
Member
Member
Posts: 47
Joined: Mon Aug 19, 2024 11:12 am
GitHub: https://github.com/ilikecoding-197

How do I get the address at the end of the kernel?

Post 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! :D
User avatar
iansjack
Member
Member
Posts: 4811
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: How do I get the address at the end of the kernel?

Post by iansjack »

The multiboot boot information structure contains a memory map that lists all available memory.
Tomrs123
Member
Member
Posts: 47
Joined: Mon Aug 19, 2024 11:12 am
GitHub: https://github.com/ilikecoding-197

Re: How do I get the address at the end of the kernel?

Post 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.
Tomrs123
Member
Member
Posts: 47
Joined: Mon Aug 19, 2024 11:12 am
GitHub: https://github.com/ilikecoding-197

Re: How do I get the address at the end of the kernel?

Post by Tomrs123 »

Nevermind guys. I shouldve just searched it up.
Post Reply