From 1b429c0fc28e5cd8b474ad5a1de1fa6f3d7c2e2a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 12 Jul 2021 18:14:44 +0200 Subject: Renamed files to match presentation --- src/loader/jmp.asm | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/loader/jmp.asm (limited to 'src/loader/jmp.asm') diff --git a/src/loader/jmp.asm b/src/loader/jmp.asm deleted file mode 100644 index f591dda..0000000 --- a/src/loader/jmp.asm +++ /dev/null @@ -1,28 +0,0 @@ -; MIT License, Copyright (c) 2021 Marvin Borner -; Exit the bootloader and clear registers - -bits 32 - -; Empty (invalid) idt -idt: - dd 0, 0 - -global jmp_kernel -jmp_kernel: - cli ; Disable interrupts because of invalid idt - lidt [idt] ; Load empty (invalid) idt - - xor eax, eax - lldt ax ; Clear LDT by pointing to nothing - - add esp, 4 - pop edi - add esp, 4 - - mov eax, 0x00000001 - mov cr0, eax ; Clear cr0 except protected mode - - xor eax, eax - mov cr4, eax ; Clear cr4 completely - - call edi ; Call custom (specified) jumper -- cgit v1.2.3