1
0
Fork 0
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:
Alex Kotov 2022-01-27 02:24:24 +05:00
parent d241701b21
commit 72da86a252
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -5,6 +5,15 @@
.global _start .global _start
.section .text .section .text
_start: _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 $0x02, %ah
mov $1, %al /* Sectors count */ mov $1, %al /* Sectors count */
mov $0x80, %dl /* Drive */ mov $0x80, %dl /* Drive */