aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/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 /src/kernel/gdt.c
parent083a88b7e1b2456fe10110b83027793348f3aa42 (diff)
downloadgftos-626bd9a53b1085b56ee54c900bfafdad79967725.tar.gz
added a couple small things, nothing really changed
Diffstat (limited to 'src/kernel/gdt.c')
-rw-r--r--src/kernel/gdt.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/kernel/gdt.c b/src/kernel/gdt.c
index cf0f487..96ddf67 100644
--- a/src/kernel/gdt.c
+++ b/src/kernel/gdt.c
@@ -1,18 +1,6 @@
#include "gdt.h"
#include <stdint.h>
-uint8_t make_access(uint8_t DPL, uint8_t type, uint8_t exec, uint8_t direction,
- uint8_t read_write) {
- uint8_t access = 0;
- access |= (1 << 7);
- access |= (DPL << 5);
- access |= (type << 4);
- access |= (exec << 3);
- access |= (direction << 2);
- access |= (read_write << 1); // 10
- return access;
-}
-
uint16_t make_code(uint8_t priv, uint8_t dc, uint8_t rw) {
uint16_t access = 0;
access |= (1 << 7);