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