mirror of
https://github.com/kenshineto/kern.git
synced 2025-04-20 17: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
|
||||
|
||||
|
@ -176,4 +176,3 @@ code64:
|
|||
halt:
|
||||
hlt
|
||||
jmp halt
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue