summaryrefslogtreecommitdiff
path: root/src/kernel/idt.c
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2020-09-06 01:26:56 -0400
committerBenji Dial <benji6283@gmail.com>2020-09-06 01:26:56 -0400
commitcbc85f6e897808b29e2f712156e2fa4d073d8277 (patch)
tree9b27640a6e91b5d3f3ae2ec597cc276aea1c8ab9 /src/kernel/idt.c
parente8c6577617bffa4402c07c7aa20e3c24f03c1c20 (diff)
downloadportland-os-cbc85f6e897808b29e2f712156e2fa4d073d8277.tar.gz
small fixes
Diffstat (limited to 'src/kernel/idt.c')
-rw-r--r--src/kernel/idt.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/kernel/idt.c b/src/kernel/idt.c
index 460cfb0..31d597f 100644
--- a/src/kernel/idt.c
+++ b/src/kernel/idt.c
@@ -70,9 +70,7 @@ static char sc_get_key() {
}
static void *sc_allocate_ram(uint32_t pages) {
-//switch_to_kernel_cr3();
- void *result = pd_user_allocate_anywhere_writable(active_task->page_directory, pages);
-//switch_to_task_cr3();
+ return pd_user_allocate_anywhere_writable(active_task->page_directory, pages);
}
void const *syscall_table[] = {
@@ -90,7 +88,7 @@ extern void syscall_isr;
extern void quit_isr;
extern void yield_isr;
-void register_int(uint8_t n, void *isr, uint8_t dpl) {
+static void register_int(uint8_t n, void *isr, uint8_t dpl) {
idt[n].addr_low = (uint32_t)isr & 0xffff;
idt[n].addr_high = (uint32_t)isr >> 16;
idt[n].cs = 0x10;