summaryrefslogtreecommitdiff
path: root/src/boot.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot.s')
-rw-r--r--src/boot.s20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/boot.s b/src/boot.s
index 71017ff..dd43460 100644
--- a/src/boot.s
+++ b/src/boot.s
@@ -21,7 +21,6 @@ stack_top:
.section .data
-.intel_syntax noprefix
gdt:
null_gdt: /* null descriptor */
.quad 0x00
@@ -48,7 +47,6 @@ gdt:
.word end_gdt - gdt - 1
.int gdt
-.att_syntax
.section .text
.global _start
@@ -58,16 +56,14 @@ _start:
cli
-.intel_syntax noprefix
- lgdt [gdt_desc] /* load GDT */
- mov ax, 0x10
- mov ds, ax
- mov ss, ax
- mov es, ax
- mov fs, ax
- mov gs, ax
- jmp 0x08:continue
-.att_syntax
+ lgdt (gdt_desc) /* load GDT */
+ mov $0x10, %ax
+ mov %ax, %ds
+ mov %ax, %ss
+ mov %ax, %es
+ mov %ax, %fs
+ mov %ax, %gs
+ ljmp $0x08,$continue
continue:
call kernel_main