Make 16 bit GDT entry limits 0xffff

This commit is contained in:
mintsuki 2020-05-06 19:42:28 +02:00
parent 40a63ecb88
commit 2a276dc2d2
1 changed files with 8 additions and 16 deletions

View File

@ -16,30 +16,23 @@ db 00000000b ; Access
db 00000000b ; Granularity
db 0x00 ; Base (high 8 bits)
; Unreal mode
.UnrealCode:
dw 0xFFFF ; Limit
; 16-bit code
dw 0xffff ; Limit
dw 0x0000 ; Base (low 16 bits)
db 0x00 ; Base (mid 8 bits)
db 10011010b ; Access
db 10001111b ; Granularity
db 00000000b ; Granularity
db 0x00 ; Base (high 8 bits)
.UnrealData:
dw 0xFFFF ; Limit
; 16-bit data
dw 0xffff ; Limit
dw 0x0000 ; Base (low 16 bits)
db 0x00 ; Base (mid 8 bits)
db 10010010b ; Access
db 10001111b ; Granularity
db 00000000b ; Granularity
db 0x00 ; Base (high 8 bits)
; Protected mode
.PmodeCode:
; 32-bit code
dw 0xFFFF ; Limit
dw 0x0000 ; Base (low 16 bits)
db 0x00 ; Base (mid 8 bits)
@ -47,8 +40,7 @@ db 10011010b ; Access
db 11001111b ; Granularity
db 0x00 ; Base (high 8 bits)
.PmodeData:
; 32-bit data
dw 0xFFFF ; Limit
dw 0x0000 ; Base (low 16 bits)
db 0x00 ; Base (mid 8 bits)