load kernel, pmode, interupts?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
McZ

load kernel, pmode, interupts?

Post by McZ »

I'm working on my stage 2 loader at the moment, and I have been planning to go with this aproach

bootsector: load stage2
bootsector: start stage2
stage2: enable a20
stage2: load kernel to some place in memory
stage2: enter pmode
stage2: start kernel
kernel: enable paging (can I do this here and now?)
kernel: enable interupt stuff (can I do this here and now?)
kernel: do some more init stuff
kernel: execute the user-application loop thing ?!

is this a good or bad idea? will it work this way or do I need to change the order of things?
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:load kernel, pmode, interupts?

Post by Pype.Clicker »

i don't see anything wrong with it, except the "loop user-application" stuff, which sounds strange to me ...
McZ

Re:load kernel, pmode, interupts?

Post by McZ »

well I havn't got that far so I don't really know what to call it, and what to put there really... but in my head it is a loop that give some time to each application that is running.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:load kernel, pmode, interupts?

Post by Solar »

He means "starting the scheduler". ;)
Every good solution is obvious once you've found it.
Post Reply