summaryrefslogtreecommitdiff
diff options
context:
space:
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