X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/e0ee3d449aacd33a84cb1f58961e55f9f06acb46..f09e806d5032150564df39a2f7b1192c4d84cf15:/lunaix-os/arch/x86/boot.S diff --git a/lunaix-os/arch/x86/boot.S b/lunaix-os/arch/x86/boot.S deleted file mode 100644 index 29746ee..0000000 --- a/lunaix-os/arch/x86/boot.S +++ /dev/null @@ -1,34 +0,0 @@ -#include "multiboot.h" - -.section .multiboot - .long MB_MAGIC - .long MB_ALIGNED_4K_MEM_MAP - .long CHECKSUM(MB_ALIGNED_4K_MEM_MAP) - -.section .bss - /* According to System V ABI, the stack must be aligned at 16 bytes boundary */ - .align 16 - stack_bottom: - .skip 16318, 0 - stack_top: - -.section .text - .global start_ - .type start_, @function - start_: - movl $stack_top, %esp - /* - TODO: kernel init - 1. Load GDT - 2. Load IDT - 3. Enable paging - */ - call _kernel_init - - pushl %ebx - call _kernel_main - - cli - j_: - hlt - jmp j_ \ No newline at end of file