aboutsummaryrefslogtreecommitdiff
path: root/tests/test_gdt.c
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2023-12-11 04:47:44 -0600
committerNic Gaffney <gaffney_nic@protonmail.com>2023-12-11 04:47:44 -0600
commit626bd9a53b1085b56ee54c900bfafdad79967725 (patch)
treeff0cf34a11301e2cd362a4c7a2f568232b143a8a /tests/test_gdt.c
parent083a88b7e1b2456fe10110b83027793348f3aa42 (diff)
downloadgftos-626bd9a53b1085b56ee54c900bfafdad79967725.tar.gz
added a couple small things, nothing really changed
Diffstat (limited to 'tests/test_gdt.c')
-rw-r--r--tests/test_gdt.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/test_gdt.c b/tests/test_gdt.c
deleted file mode 100644
index 938e709..0000000
--- a/tests/test_gdt.c
+++ /dev/null
@@ -1,21 +0,0 @@
-#include "gdt.h"
-#include <stdint.h>
-#include <stdio.h>
-#include <stdlib.h>
-int main() {
-
- uint16_t code_info = make_code(0, 0, 1);
- uint16_t data_info = make_data(0, 0, 1);
- Segment_Descriptor_t null = make_descriptor(0, 0, 0);
- Segment_Descriptor_t code = make_descriptor(0, 0xFFFFF, code_info);
- Segment_Descriptor_t data = make_descriptor(0, 0xFFFFF, data_info);
- GDT_t *table = malloc(sizeof(GDT_t));
- *table = (GDT_t){null, code, data};
- GDTR_t gdtr = {(table + sizeof(GDT_t) - table - 1), (uint32_t)table};
-
- printf("%zu\n", sizeof(GDT_t));
- printf("0x%.16llX\n", null);
- printf("0x%.16llX\n", code);
- printf("0x%.16llX\n", data);
- printf("0x%.24llX\n", table);
-}