use GDT.Data

This commit is contained in:
Murphy 2025-04-03 21:27:30 -04:00
parent 248ca4bcf5
commit c5a24c3b5e
Signed by: freya
GPG key ID: 9FBC6FFD6D2DBF17

View file

@ -161,7 +161,7 @@ _start.SetEntry:
.code64
code64:
movw $16, %dx # set segment registers
movw $GDT.Data, %dx # set segment registers
movw %dx, %ds
movw %dx, %ss
@ -173,7 +173,6 @@ code64:
call main
cli
halt:
halt:
hlt
jmp halt