From 626bd9a53b1085b56ee54c900bfafdad79967725 Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Mon, 11 Dec 2023 04:47:44 -0600 Subject: added a couple small things, nothing really changed --- src/kernel/gdt.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/kernel/gdt.c') 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 -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); -- cgit v1.2.3