#include <stdint.h>
#include <string.h>
◆ allow_all_ports()
Allows all ports in the IOPB.
◆ block_all_ports()
Blocks all ports in the IOPB.
◆ gdt_init()
Initializes the GDT & TSS.
◆ set_entry()
static void set_entry |
( |
int |
i, |
|
|
uint32_t |
base, |
|
|
uint32_t |
limit, |
|
|
uint8_t |
access |
|
) |
| |
|
static |
Set a GDT entry.
- Parameters
-
i | The GDT entry to set. |
base | The base of the GDT entry. |
limit | The limit of the GDT entry. |
access | The access byte of the GDT entry. |
◆ write_tss()
static void write_tss |
( |
int32_t |
num, |
|
|
uint16_t |
ss0, |
|
|
uint32_t |
esp0 |
|
) |
| |
|
static |
Set a GDT entry.
- Parameters
-
num | The GDT entry to set. |
ss0 | The kernel stack selector. |
esp0 | The kernel stack pointer. |