Make 16 bit GDT entry limits 0xffff
This commit is contained in:
parent
40a63ecb88
commit
2a276dc2d2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue