summaryrefslogtreecommitdiff
path: root/src/arch/amd64/shim.c
diff options
context:
space:
mode:
authorSimon <sgkadesh@icloud.com>2024-01-27 00:15:34 -0500
committerSimon <sgkadesh@icloud.com>2024-01-27 00:15:34 -0500
commitc53069f9e19df4a7fa53aa06949c7c75d718e6d7 (patch)
treef86d015339c6071379da036995e22d59565f2c71 /src/arch/amd64/shim.c
parentoop (diff)
downloadcorn-c53069f9e19df4a7fa53aa06949c7c75d718e6d7.tar.gz
corn-c53069f9e19df4a7fa53aa06949c7c75d718e6d7.tar.bz2
corn-c53069f9e19df4a7fa53aa06949c7c75d718e6d7.zip
fixed freya's bad spacing
Diffstat (limited to 'src/arch/amd64/shim.c')
-rw-r--r--src/arch/amd64/shim.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/arch/amd64/shim.c b/src/arch/amd64/shim.c
index defa77b..0c2d418 100644
--- a/src/arch/amd64/shim.c
+++ b/src/arch/amd64/shim.c
@@ -1,6 +1,6 @@
#include <stdint.h>
-#define PG_PRESENT 0x0000'0000'0000'0001
+#define PG_PRESENT 0x0000'0000'0000'0001
#define PG_READ_WRITE 0x0000'0000'0000'0002
#define PG_USER_SUPERVISE 0x0000'0000'0000'0004
#define PG_WRITE_THROUGH 0x0000'0000'0000'0008
@@ -18,14 +18,14 @@ struct pml4 {
uint64_t accessed : 1;
uint64_t _reserved : 6;
uint64_t address : 40;
- uint64_t _reserved_2 : 11;
+ uint64_t _reserved_2 : 11;
uint64_t execute_disable : 1;
};
// 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;