Git - code.swisschili.sh
code.swisschili.sh
/
bluejay
/
3e57d7c3f70371f9acf95326c2f5c2cd0e8d2d15
/
.
/
src
/
kernel
/
x86_32
/
gdt_flush.s
blob: f1dd8acce90341ef5a4eeef30b5ada59293bd623 [
file
] [
log
] [
blame
]
[
bits
32
]
[
global gdt_flush
]
gdt_flush
:
mov eax
,
[
esp
+
4
]
lgdt
[
eax
]
;
Load GDT
mov ax
,
0x10
;
Offset of data segment
mov ds
,
ax
,
mov es
,
ax
mov fs
,
ax
mov gs
,
ax
mov ss
,
ax
jmp
0x08
:
.flush
;
Implicitly reloads the code segment
.flush
:
ret