Nyanix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit b5a384fd18cf3bf4c4de10233092a8460e679f89
parent 99bb06ad448e0fb646dc6b17c2403d65ebf3dd8e
Author: k4m1 <k4m1@proton.intra.silverskin.com>
Date:   Tue, 19 Jun 2018 14:16:46 +0300

Updated boot.s

Diffstat:
src/boot.s | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/boot.s b/src/boot.s @@ -158,6 +158,22 @@ second_stage_entry: nop second_stage: add sp, 0x200 ; adjusting stack ptr + ; Next thing to do is to swap to unreal v8086 mode. + ; after that, we can start loading the kernel. + + ; procedure should be as follows: + ; + ; swapto v8086 + ; enable/toggle a20 + ; load 64-kilos of kernel + ; toggle a20 + ; load next 64 kb of kernel + ; ... + ; swapto 32-bit protected mode + ; load dummy GDT + ; validate kernel + ; jump to kernel. +