Hey everyone,
So Ive been trying out OS development and everything has gone pretty good so far. I can output to the VGA controller and clear the screen, etc
I dont really have a problem just a curious question about something that I accidently did and seem to be stuck with now. Reading the bare bones tutorial on how to boot from grub using start1 and start2 in my img file, I call the command kernel 200+18 and then call boot. Which had worked perfectly fine until I accidently typed too quickly and ended up typing kernel 200+19. Good news was that it still managed to boot but now it seems I have to call 19 now all the time, instead of 18?
This is supposed to be the address of where the kernel is im assuming, what does the +18 do and why am I able to run with 200+19 now?
Thanks!
kernel 200+18
Re: kernel 200+18
We don't know, you tell us.mihok wrote:why am I able to run with 200+19 now?
You have the source, and the tools to debug and find out what is at the address of 200+18.
- thepowersgang
- Member
- Posts: 734
- Joined: Tue Dec 25, 2007 6:03 am
- Libera.chat IRC: thePowersGang
- Location: Perth, Western Australia
- Contact:
Re: kernel 200+18
If I recall correctly, the +18/+19 is the size of the data to load in sectors (or some similarly sized block of data).
May I note that this technique of loading is rather sensitive to size changes, it's better to set up a full grub install on the disk (with a filesystem).
May I note that this technique of loading is rather sensitive to size changes, it's better to set up a full grub install on the disk (with a filesystem).
Kernel Development, It's the brain surgery of programming.
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc
Re: kernel 200+18
Yes, moreover you can make GRUB installation more convenient (look at my last post here). But I don't remember what CPU mode (RM or PM) is active when GRUB boots "pure" sectors. Maybe "pure" sectors are booted in RM
If you have seen bad English in my words, tell me what's wrong, please.