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 /src/kernel/gdt.c | |
| parent | 083a88b7e1b2456fe10110b83027793348f3aa42 (diff) | |
| download | gftos-626bd9a53b1085b56ee54c900bfafdad79967725.tar.gz | |
added a couple small things, nothing really changed
Diffstat (limited to 'src/kernel/gdt.c')
| -rw-r--r-- | src/kernel/gdt.c | 12 |
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); |
