diff options
author | Freya Murphy <freya@freyacat.org> | 2024-01-27 00:12:52 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-01-27 00:12:52 -0500 |
commit | 8b216a67c997fbbab7d40dbb3badcdb460d6cc77 (patch) | |
tree | 43dad59c6185dce863515027ca1dc7f2e9624592 /src | |
parent | paging structs (diff) | |
download | corn-8b216a67c997fbbab7d40dbb3badcdb460d6cc77.tar.gz corn-8b216a67c997fbbab7d40dbb3badcdb460d6cc77.tar.bz2 corn-8b216a67c997fbbab7d40dbb3badcdb460d6cc77.zip |
oop
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/amd64/shim.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/arch/amd64/shim.c b/src/arch/amd64/shim.c index c72a59b..defa77b 100644 --- a/src/arch/amd64/shim.c +++ b/src/arch/amd64/shim.c @@ -11,13 +11,13 @@ // PAGE MAP LEVEL 4 ENTRY struct pml4 { uint64_t present : 1; - uint64_t rw : 1; + uint64_t rw : 1; uint64_t user_supervisor : 1; uint64_t write_through : 1; uint64_t cache_disable : 1; uint64_t accessed : 1; uint64_t _reserved : 6; - uint64_t address : 40; + uint64_t address : 40; uint64_t _reserved_2 : 11; uint64_t execute_disable : 1; }; @@ -25,7 +25,7 @@ struct pml4 { // PAGE DIRECTORY POINTER TABLE ENTRY struct pdpte { uint64_t present : 1; - uint64_t rw : 1; + uint64_t rw : 1; uint64_t user_supervisor : 1; uint64_t write_through : 1; uint64_t cache_disable : 1; @@ -41,7 +41,7 @@ struct pdpte { // PAGE DIRECTORY ENTRY struct pde { uint64_t present : 1; - uint64_t rw : 1; + uint64_t rw : 1; uint64_t user_supervisor : 1; uint64_t write_through : 1; uint64_t cache_disable : 1; @@ -57,7 +57,7 @@ struct pde { // PAGE TABLE ENTRY struct pte { uint64_t present : 1; - uint64_t rw : 1; + uint64_t rw : 1; uint64_t user_supervisor : 1; uint64_t write_through : 1; uint64_t cache_disable : 1; |