[Tutorials] Getting memory info from GRUB
Posted: Wed Dec 10, 2014 7:54 am
I'm still working through the tutorials and hit another wall.
I try to get the memory info from Grub. The Wiki mentions here that the Bare Bone tutorials have prepared this for noobs like me.
So I simply changed the kernel_main of the Meaty Skeleton to fit the mentioned structure.
... no luck ...
After reading up a bit I moved the method structure to kernel_early ... no luck ... and changed the boot.S to push EAX and EBX right before the call.
Now I get the right magic number and a pointer that actually holds reasonable values.
Now my question: is this change correct or am I missing something important?
I try to get the memory info from Grub. The Wiki mentions here that the Bare Bone tutorials have prepared this for noobs like me.
So I simply changed the kernel_main of the Meaty Skeleton to fit the mentioned structure.
... no luck ...
After reading up a bit I moved the method structure to kernel_early ... no luck ... and changed the boot.S to push EAX and EBX right before the call.
Now I get the right magic number and a pointer that actually holds reasonable values.
Now my question: is this change correct or am I missing something important?