summaryrefslogtreecommitdiffstats
path: root/arch/x86/boot/kernel_entry.s
blob: e0fd13280ebe6b429200c6906dcfcb0f2ca169c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# bootsect.s loads the kernel and transfers control to SYSSEG address.
# We cannot be sure that the main() function will be exactly at this
# address.

# Therefore, we will use a small trick for entering the kernel correctly:
# Locate this small assembly routine at the beginning of the SYSSEG
# address => we can be sure that control will transfer to main()

.code32
.extern kernel_main
	call kernel_main
	jmp .