Understanding Grub' internals

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
User avatar
jerryleecooper
Member
Member
Posts: 233
Joined: Mon Aug 06, 2007 6:32 pm
Location: Canada

Understanding Grub' internals

Post by jerryleecooper »

I want my operating system, or what will be an operating system (2 more weeks and version 0.01 will be released) to boot from my laptop. But being a turion, then a 64 bit architecture, the engineers treated low memory for low memory. The himem (more than 1mb) memory that 286 era people were talking about is no more. In this world of multicore, multigigahertz machine with multigigabytes of ram to spare, memore below 16 meg is low memory.
But how to keep my kernel lighweight on lowend systems as my new aptiva and be compatible with my "highend" laptop.
THe answer: grub. But I DON'T want to USE grub!
Don't worry, just study the code. But it's boring :shock:
There's an interrupt to read the ram partitioning, so I could use that.

edit. OK, I think I have found something.
Last edited by jerryleecooper on Wed Sep 05, 2007 6:02 pm, edited 1 time in total.
User avatar
jerryleecooper
Member
Member
Posts: 233
Joined: Mon Aug 06, 2007 6:32 pm
Location: Canada

Post by jerryleecooper »

Grub use some memory at 0x68000:

Code: Select all

#define GRUB_MEMORY_MACHINE_SCRATCH_ADDR	0x68000
Is it safe if I put my kernel there, and call the bios int to catch the memory map?
Post Reply