I'm now using grub to load my kernel. Everything work fine, but I'm trying to use the memory map information provided by grub.
When using it with bochs (32 Mo RAM) I get the following memory map:
[1st zone] 0 - 9fc00: type 1
[2nd zone] 100000 - 1f00000: type 1
My kernel is loaded at 0x100000.
My problem is that I would like to use the 1st zone (in my memory manager), but I guess I must take care of some data stored there... I'm thinking of bios data structures, grub data structures.
Until now I've wasted the 1st zone, using only the 2nd one. Could you tell me how you did it ? What informations you saved before overwriting thet area ?
Thank you.
INeo
Memory map (again ?) & grub
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Memory map (again ?) & grub
Perica's tutorial (on Bona Fide) will teach you where are BIOS data in the zone 1. I don't know about GRUB datas, but i would say that if you first ask GRUB everything you'd like him to tell you, remap to a GDT of your own, etc. You're then free from scratching GRUB's memory.
Re:Memory map (again ?) & grub
@Pype: Thanks, that was what I was looking for. I didn't see it when I went there
For the grub data structures, I think I'll do as you said, saving everything I need somewhere else...
Thanks.
INeo
[attachment deleted by admin]
For the grub data structures, I think I'll do as you said, saving everything I need somewhere else...
Thanks.
INeo
[attachment deleted by admin]