diff options
author | aqua <aqua@iserlohn-fortress.net> | 2023-03-05 14:38:54 +0200 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2023-03-05 14:38:54 +0200 |
commit | 787c1a6016dd2fdb51f20fcb5ca0ac5e461892d6 (patch) | |
tree | 7db9f5102adc3d50ca85a8175ce67465256b8908 /i686/test/gdt.c | |
parent | Add TARGETBIN and TARGETLIB rules (diff) | |
download | kernel-master.tar.xz |
Diffstat (limited to 'i686/test/gdt.c')
-rw-r--r-- | i686/test/gdt.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/i686/test/gdt.c b/i686/test/gdt.c deleted file mode 100644 index 2947b42..0000000 --- a/i686/test/gdt.c +++ /dev/null @@ -1,20 +0,0 @@ -#include "gdt.h" -#include <assert.h> -#include <stdlib.h> - -int -main() -{ - assert(*(uint8_t *)&null_access == 0x00); - assert(*(uint8_t *)&ktext_access == 0x9a); - assert(*(uint8_t *)&kdata_access == 0x92); - - struct SegmentDescriptor_t d; - SegmentDescriptor(&d, 0, 0, 0); - assert(*(uint64_t *)&d == 0); - - assert(ktextDescriptor == 0x10); - assert(kdataDescriptor == 0x18); - - return EXIT_SUCCESS; -} |