summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2023-01-03 22:06:23 -0500
committerTest_User <hax@andrewyu.org>2023-01-03 22:06:23 -0500
commitb0ca4d17f93970881edf05f3cff206d47b7fa564 (patch)
tree85a50b5447f75bc6c0d130c4a168dc243be18e85
parent05476cc3ffd457f2d477edaf27998003bdaf7057 (diff)
downloadspecification-b0ca4d17f93970881edf05f3cff206d47b7fa564.tar.gz
specification-b0ca4d17f93970881edf05f3cff206d47b7fa564.zip
more segments, fewer addresses (and 64-bit mode is outgrown... use 128-bit mode)
-rw-r--r--cpu/access_control/gdt.txt12
1 files 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: <normal>
-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