diff --git a/kernel-rs/src/arch/x86/boot.asm b/kernel-rs/src/arch/x86/boot.asm index ef54d30f..8355baf6 100644 --- a/kernel-rs/src/arch/x86/boot.asm +++ b/kernel-rs/src/arch/x86/boot.asm @@ -82,38 +82,6 @@ GDTR: DB 0xCF ; [ Flags: C=1100b = (granularity)|(32bit)|(!64bit)|(0) ] / [ Limits: (bits 16-19): F=1111b ] 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: .ptr: DW .gdt_bottom - .gdt_top - 1 ; length of the structure minus 1