gsilvis / silvos

half-baked Silvis OS kernel
MIT License
4 stars 2 forks source link

Carefully consolidate the boot modules so that the kernel knows where… #41

Closed gsilvis closed 7 years ago

gsilvis commented 7 years ago

… they are

I'm not sure I like these changes. It does enable something that didn't work before, but it's still mega-hacky.

allanlw commented 7 years ago

Why do you only need alignment, not padding? Is last_used inclusive or exclusive?

Other than that looks good to me.

gsilvis commented 7 years ago

The multiboot spec lets you ask for your modules to be loaded at 4K-aligned addresses, with nothing else on their 4K pages. But, you don't need 4K gaps between them---going right up to the edge of the page is fine. last_used is exclusive---it's where you should write next

gsilvis commented 7 years ago

Now that we have #60, this is no longer going to happen.