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.
I'm trying to print out the length of memory, but either nothing prints out or sometimes I get can get some weird ASCII characters. Bochs doesn't seem to have any errors. Am I doing something wrong?
Why use absolute offsets? The compiler can do that for you if you give it the appropriate size offsets in a structure definition. Try looking up the Multiboot Header include file in the Multiboot Specification. Use it to strongly type your offsets and let the compiler do the work for you.
Also, remember that if you're using paging, a paged kernel (on x86) must ensure it accesses all memory addresses through virtual addresses. You should map some page to the regions in low memory where GRUB places the multiboot structures. Or if you identity map the 1st MB of RAM, it would be as easy as calculating offsets.
--All the best,
gravaera
17:56 < sortie> Paging is called paging because you need to draw it on pages in your notebook to succeed at it.