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?
load kernel, pmode, interupts?
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:load kernel, pmode, interupts?
i don't see anything wrong with it, except the "loop user-application" stuff, which sounds strange to me ...
Re:load kernel, pmode, interupts?
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?
He means "starting the scheduler".
Every good solution is obvious once you've found it.