42-archive/kernel-rs/src/arch/x86/start.asm
2018-04-12 18:06:50 +02:00

17 lines
254 B
NASM

global x86_start
extern x86_rust_start
section .text
bits 32
x86_start:
mov ax, 0x10 ; 16 bytes (0x10) is where the offset for data section (gdt_ds)
mov ds, ax
mov ss, ax
mov es, ax
mov fs, ax
mov gs, ax
call x86_rust_start
HALT:
hlt
jmp HALT