minor changes
This commit is contained in:
parent
8d7ce5c411
commit
2f33f55512
1 changed files with 3 additions and 1 deletions
|
@ -7,11 +7,13 @@ gdtr:
|
||||||
|
|
||||||
set_gdt:
|
set_gdt:
|
||||||
.func set_gdt
|
.func set_gdt
|
||||||
|
cli
|
||||||
|
xor %eax, %eax
|
||||||
mov 4(%esp), %eax
|
mov 4(%esp), %eax
|
||||||
mov %eax, gdtr+2
|
mov %eax, gdtr+2
|
||||||
mov 8(%esp), %ax
|
mov 8(%esp), %ax
|
||||||
mov %ax, gdtr
|
mov %ax, gdtr
|
||||||
lgdt gdtr
|
lgdt (gdtr)
|
||||||
ret
|
ret
|
||||||
.endfunc
|
.endfunc
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue