mirror of
https://github.com/kenshineto/kern.git
synced 2025-04-21 01:27:24 +00:00
use GDT.Data
This commit is contained in:
parent
248ca4bcf5
commit
c5a24c3b5e
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue