mirror of
https://github.com/tailix/loadwarka.git
synced 2024-11-11 13:50:54 -05:00
Disable interrupts, initialize segment registers and stack
This commit is contained in:
parent
d241701b21
commit
72da86a252
1 changed files with 9 additions and 0 deletions
|
@ -5,6 +5,15 @@
|
|||
.global _start
|
||||
.section .text
|
||||
_start:
|
||||
cli
|
||||
xor %ax, %ax
|
||||
mov %ax, %ss
|
||||
mov %ax, %ds
|
||||
mov %ax, %es
|
||||
mov %ax, %fs
|
||||
mov %ax, %gs
|
||||
mov $0x2000, %sp
|
||||
|
||||
mov $0x02, %ah
|
||||
mov $1, %al /* Sectors count */
|
||||
mov $0x80, %dl /* Drive */
|
||||
|
|
Loading…
Reference in a new issue