declare an entry symbol, that always would be on beginning of bootsector
This commit is contained in:
parent
bafc09649c
commit
677d65b4dd
2 changed files with 5 additions and 1 deletions
|
|
@ -44,4 +44,5 @@ SECTIONS
|
|||
}
|
||||
}
|
||||
|
||||
ENTRY(entry)
|
||||
OUTPUT_FORMAT(binary)
|
||||
|
|
@ -1,6 +1,9 @@
|
|||
.section .text
|
||||
.code16
|
||||
|
||||
.globl entry
|
||||
|
||||
entry:
|
||||
# initialize stack
|
||||
mov $RAM_SEGMENT, %ax
|
||||
mov %ax, %ss
|
||||
|
|
@ -31,7 +34,7 @@
|
|||
push %es
|
||||
pop %ds
|
||||
|
||||
.entry:
|
||||
|
||||
call serial_init
|
||||
|
||||
mov $msg, %si
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue