removed unused segments selectors in assembly
This commit is contained in:
parent
f138d77e4d
commit
fd0915048d
1 changed files with 0 additions and 32 deletions
|
|
@ -82,38 +82,6 @@ GDTR:
|
||||||
DB 0xCF ; [ Flags: C=1100b = (granularity)|(32bit)|(!64bit)|(0) ] / [ Limits: (bits 16-19): F=1111b ]
|
DB 0xCF ; [ Flags: C=1100b = (granularity)|(32bit)|(!64bit)|(0) ] / [ Limits: (bits 16-19): F=1111b ]
|
||||||
DB 0x0 ; Base ( bits 24 -31 )
|
DB 0x0 ; Base ( bits 24 -31 )
|
||||||
|
|
||||||
.gdt_ss: equ $ - .gdt_top; the stack segment Aka KERNEL STACK
|
|
||||||
DW 0x0 ; Limit ( bits 0 -15 )
|
|
||||||
DW 0x0 ; Base ( bits 0 -15 )
|
|
||||||
DB 0x0 ; Base ( bits 16 -23 )
|
|
||||||
DB 0x96 ; [ Access Flags: 0x96=10010110b = (present)|(Privilege Ring 0=00b)|(1)|(data => 0)|(expand up => 1)|(readable)|(0) ]
|
|
||||||
DB 0xCF ; [ Flags: C=1100b = (granularity)|(32bit)|(!64bit)|(0) ] / [ Limits: (bits 16-19): F=1111b ]
|
|
||||||
DB 0x0 ; Base ( bits 24 -31 )
|
|
||||||
|
|
||||||
.gdt_es: equ $ - .gdt_top; the extra segment Aka USER CODE
|
|
||||||
DW 0xffff ; Limit ( bits 0 -15 )
|
|
||||||
DW 0x0 ; Base ( bits 0 -15 )
|
|
||||||
DB 0x0 ; Base ( bits 16 -23 )
|
|
||||||
DB 0xFE ; [ Access Flags: 0xFE=11111110b = (present)|(Privilege Ring 3=11b)|(1)|(code => 1)|(expand up => 1)|(readable)|(0) ]
|
|
||||||
DB 0xCF ; [ Flags: C=1100b = (granularity)|(32bit)|(!64bit)|(0) ] / [ Limits: (bits 16-19): F=1111b ]
|
|
||||||
DB 0x0 ; Base ( bits 24 -31 )
|
|
||||||
|
|
||||||
.gdt_fs: equ $ - .gdt_top; the other segment Aka USER DATA
|
|
||||||
DW 0xffff ; Limit ( bits 0 -15 )
|
|
||||||
DW 0x0 ; Base ( bits 0 -15 )
|
|
||||||
DB 0x0 ; Base ( bits 16 -23 )
|
|
||||||
DB 0xF2 ; [ Access Flags: 0xF2=11110010b = (present)|(Privilege Ring 3=11b)|(1)|(data => 0)|(expand down => 0)|(readable)|(0) ]
|
|
||||||
DB 0xCF ; [ Flags: C=1100b = (granularity)|(32bit)|(!64bit)|(0) ] / [ Limits: (bits 16-19): F=1111b ]
|
|
||||||
DB 0x0 ; Base ( bits 24 -31 )
|
|
||||||
|
|
||||||
.gdt_gs: equ $ - .gdt_top; the other segment Aka USER STACK
|
|
||||||
DW 0x0 ; Limit ( bits 0 -15 )
|
|
||||||
DW 0x0 ; Base ( bits 0 -15 )
|
|
||||||
DB 0x0 ; Base ( bits 16 -23 )
|
|
||||||
DB 0xF6 ; [ Access Flags: 0xF2=11110110b = (present)|(Privilege Ring 3=11b)|(1)|(data => 0)|(expand up => 1)|(readable)|(0) ]
|
|
||||||
DB 0xCF ; [ Flags: C=1100b = (granularity)|(32bit)|(!64bit)|(0) ] / [ Limits: (bits 16-19): F=1111b ]
|
|
||||||
DB 0x0 ; Base ( bits 24 -31 )
|
|
||||||
|
|
||||||
.gdt_bottom:
|
.gdt_bottom:
|
||||||
.ptr:
|
.ptr:
|
||||||
DW .gdt_bottom - .gdt_top - 1 ; length of the structure minus 1
|
DW .gdt_bottom - .gdt_top - 1 ; length of the structure minus 1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue