diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/gdt.h | 4 | ||||
| -rw-r--r-- | src/include/print.h | 33 |
2 files changed, 17 insertions, 20 deletions
diff --git a/src/include/gdt.h b/src/include/gdt.h index 05f426e..06a0d96 100644 --- a/src/include/gdt.h +++ b/src/include/gdt.h @@ -1,6 +1,7 @@ #pragma once #include <stdint.h> #define FLAG 0b1100 + typedef struct Segment_Descriptor { uint16_t lim_low; uint16_t base_low; @@ -21,9 +22,6 @@ typedef struct GDT { Segment_Descriptor_t datadesc; } __attribute__((packed)) GDT_t; -uint8_t make_access(uint8_t DPL, uint8_t type, uint8_t exec, uint8_t direction, - uint8_t read_write); - uint16_t make_code(uint8_t priv, uint8_t dc, uint8_t rw); uint16_t make_data(uint8_t priv, uint8_t dc, uint8_t rw); diff --git a/src/include/print.h b/src/include/print.h index a8e228b..3b94c6e 100644 --- a/src/include/print.h +++ b/src/include/print.h @@ -1,26 +1,25 @@ #pragma once -#include <stddef.h> #include <stdint.h> // Define colors for printing enum { - PRINT_COLOR_BLACK = 0, - PRINT_COLOR_BLUE = 1, - PRINT_COLOR_GREEN = 2, - PRINT_COLOR_CYAN = 3, - PRINT_COLOR_RED = 4, - PRINT_COLOR_MAGENTA = 5, - PRINT_COLOR_BROWN = 6, - PRINT_COLOR_LIGHT_GRAY = 7, - PRINT_COLOR_DARK_GRAY = 8, - PRINT_COLOR_LIGHT_BLUE = 9, - PRINT_COLOR_LIGHT_GREEN = 10, - PRINT_COLOR_LIGHT_CYAN = 11, - PRINT_COLOR_LIGHT_RED = 12, - PRINT_COLOR_PINK = 13, - PRINT_COLOR_YELLOW = 14, - PRINT_COLOR_WHITE = 15, + PRINT_COLOR_BLACK = 0, + PRINT_COLOR_BLUE = 1, + PRINT_COLOR_GREEN = 2, + PRINT_COLOR_CYAN = 3, + PRINT_COLOR_RED = 4, + PRINT_COLOR_MAGENTA = 5, + PRINT_COLOR_BROWN = 6, + PRINT_COLOR_LIGHT_GRAY = 7, + PRINT_COLOR_DARK_GRAY = 8, + PRINT_COLOR_LIGHT_BLUE = 9, + PRINT_COLOR_LIGHT_GREEN = 10, + PRINT_COLOR_LIGHT_CYAN = 11, + PRINT_COLOR_LIGHT_RED = 12, + PRINT_COLOR_PINK = 13, + PRINT_COLOR_YELLOW = 14, + PRINT_COLOR_WHITE = 15, }; // Prototypes |
