Page 1 of 1

load kernel, pmode, interupts?

Posted: Tue Oct 26, 2004 3:34 am
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?

Re:load kernel, pmode, interupts?

Posted: Tue Oct 26, 2004 5:58 am
by Pype.Clicker
i don't see anything wrong with it, except the "loop user-application" stuff, which sounds strange to me ...

Re:load kernel, pmode, interupts?

Posted: Wed Oct 27, 2004 4:05 am
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.

Re:load kernel, pmode, interupts?

Posted: Wed Oct 27, 2004 4:49 am
by Solar
He means "starting the scheduler". ;)