Anonymous user
Multiboot1 Bare Bones with NASM: Difference between revisions
Add _start symbol type and symbol size
[unchecked revision] | [unchecked revision] |
(Sync with the changes to the regular Bare Bones) |
(Add _start symbol type and symbol size) |
||
Line 43:
; bootloader will jump to this position once the kernel has been loaded. It
; doesn't make sense to return from this function as the bootloader is gone.
; Declare _start as a function symbol with the given symbol size.
section .text
global _start:function (_start.end - _start)
_start:
; The bootloader has loaded us into 32-bit protected mode on a x86
Line 93 ⟶ 94:
.hang: hlt
jmp .hang
.end:
</source>
|