summaryrefslogtreecommitdiff
path: root/src/arch/i386/boot.s
blob: 74de9b77687c7d5f7283e9d40ee76ac1d8ebd9c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.section .text
.global _start
.type _start, @function
_start:
	mov $stack_top, %esp
	push %ebx // address of the Multiboot struct
	call kmain_early

.global halt_cpu
.type halt_cpu, @function
halt_cpu:
	cli
1:	hlt
	jmp 1b

.size _start, . - _start