diff options
| author | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-01-18 23:16:56 -0500 | 
|---|---|---|
| committer | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-01-18 23:16:56 -0500 | 
| commit | ec7e798c70e54cf10e6dddf465cb7f741f760e79 (patch) | |
| tree | 4c55795e322a09bad030e1938de73f39bff29a28 /kernel/arch/i386/boot.asm | |
| parent | bb59107bd06a6a252b3743f17e55e3c17896db35 (diff) | |
added beginning and end kernel symbols
Diffstat (limited to 'kernel/arch/i386/boot.asm')
| -rw-r--r-- | kernel/arch/i386/boot.asm | 13 | 
1 files changed, 11 insertions, 2 deletions
| diff --git a/kernel/arch/i386/boot.asm b/kernel/arch/i386/boot.asm index b5dfe11..494d3ba 100644 --- a/kernel/arch/i386/boot.asm +++ b/kernel/arch/i386/boot.asm @@ -30,10 +30,19 @@ _start:      ; setup stack
      mov esp, stack_top
 -    ; get multiboot header data (for memory map)
 -    extern multiboot_main
 +    ; push the multiboot header data into the stack for later use
      push eax
      push ebx
 +
 +    ; setup paging (to map kernel to the higher half)
 +    ;mov eax, 0
 +    ;mov cr3, eax
 +    ;mov eax, cr0
 +    ;or eax, 0x80000001
 +    ;mov cr0, eax
 +
 +    ; get multiboot header data (for memory map)
 +    extern multiboot_main
      call multiboot_main
      extern _init
 | 
