From b0ca4d17f93970881edf05f3cff206d47b7fa564 Mon Sep 17 00:00:00 2001 From: Test_User Date: Tue, 3 Jan 2023 22:06:23 -0500 Subject: more segments, fewer addresses (and 64-bit mode is outgrown... use 128-bit mode) --- cpu/access_control/gdt.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cpu/access_control/gdt.txt b/cpu/access_control/gdt.txt index a669dc4..c803ace 100644 --- a/cpu/access_control/gdt.txt +++ b/cpu/access_control/gdt.txt @@ -4,9 +4,9 @@ TODO: Specify a limit for them It uses the following format: (higher address) +---------------------+-------------------------+ - | upper 4 bits: flags | lower 3/4: base address | + | upper 4 bits: flags | lower 1/2: base address | +---------------------+-------------------------+ - | upper 4 bits: type | lower 3/4: limit | + | upper 4 bits: type | lower 1/2: limit | +---------------------+-------------------------+ | permissions required to use | +-----------------------------------------------+ @@ -42,7 +42,7 @@ permissions not allowed to use: 32-bit example: 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 +------------------------------------------------------------------------------------------------+ - | 0 1 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | + | 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 | | 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 | | 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | | 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 | @@ -54,13 +54,13 @@ flags: 0 1 0 0 not writable not executable -base address: 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 - 0x900000 +base address: 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 + 0x9000 type: 0 0 0 1 type 1: -limit: 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 +limit: 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0x400 permissions required: 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -- cgit v1.2.3