aboutsummaryrefslogtreecommitdiff
path: root/i686/paging.h
diff options
context:
space:
mode:
authoraqua <aqua@iserlohn-fortress.net>2022-11-02 23:09:18 +0200
committeraqua <aqua@iserlohn-fortress.net>2022-11-02 23:09:18 +0200
commit509bf85036b3c345f832558a299257effabba108 (patch)
tree0dda6c4fd5e072410d958b65af90755c5014b514 /i686/paging.h
parentmakefile: make all target the default (diff)
downloadkernel-509bf85036b3c345f832558a299257effabba108.tar.xz
fix compiler warnings
Diffstat (limited to 'i686/paging.h')
-rw-r--r--i686/paging.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/i686/paging.h b/i686/paging.h
index cff0506..f9c04a8 100644
--- a/i686/paging.h
+++ b/i686/paging.h
@@ -16,7 +16,7 @@ struct __attribute__((packed)) DirectoryEntry {
unsigned int __available__ : 3; // available to the OS
unsigned int address : 20;
};
-_Static_assert(sizeof(struct DirectoryEntry) == 4);
+_Static_assert(sizeof(struct DirectoryEntry) == 4, "DirectoryEntry size");
// DirectoryEntry4MB
// |31| | | | | | | | |22|21|20| | | | | | |13|12|11| | 9| 8| 7| 6| 5| 4| 3| 2| 1| 0|
@@ -38,7 +38,7 @@ struct __attribute__((packed)) DirectoryEntry4MB {
unsigned rsvd : 1; // 21
unsigned int address_low : 10;
};
-_Static_assert(sizeof(struct DirectoryEntry4MB) == 4);
+_Static_assert(sizeof(struct DirectoryEntry4MB) == 4, "DirectoryEntry4M size");
// TableEntry
// |31| | | | | | | | | | | | | | | | | | | |11| | 9| 8| 7| 6| 5| 4| 3| 2| 1| 0|
@@ -56,4 +56,4 @@ struct __attribute__((packed)) TableEntry {
unsigned int __available__ : 3; // available to the OS
unsigned int address : 20;
};
-_Static_assert(sizeof(struct TableEntry) == 4);
+_Static_assert(sizeof(struct TableEntry) == 4, "TableEntry size");