diff options
| author | Nic Gaffney <gaffney_nic@protonmail.com> | 2023-12-11 04:47:44 -0600 |
|---|---|---|
| committer | Nic Gaffney <gaffney_nic@protonmail.com> | 2023-12-11 04:47:44 -0600 |
| commit | 626bd9a53b1085b56ee54c900bfafdad79967725 (patch) | |
| tree | ff0cf34a11301e2cd362a4c7a2f568232b143a8a /tests | |
| parent | 083a88b7e1b2456fe10110b83027793348f3aa42 (diff) | |
| download | gftos-626bd9a53b1085b56ee54c900bfafdad79967725.tar.gz | |
added a couple small things, nothing really changed
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/compile_flags.txt | 1 | ||||
| -rwxr-xr-x | tests/test | bin | 20752 -> 0 bytes | |||
| -rw-r--r-- | tests/test_gdt.c | 21 |
3 files changed, 0 insertions, 22 deletions
diff --git a/tests/compile_flags.txt b/tests/compile_flags.txt deleted file mode 100644 index f8a2c60..0000000 --- a/tests/compile_flags.txt +++ /dev/null @@ -1 +0,0 @@ --I../src/include/ diff --git a/tests/test b/tests/test Binary files differdeleted file mode 100755 index f2cb106..0000000 --- a/tests/test +++ /dev/null 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); -} |
