From ed2b3cb5c94d86d590e39dc73b2086f3d7a96458 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Fri, 12 Aug 2011 21:00:15 +0200 Subject: [PATCH] Prevented user-space from issueing non-user-space interrupts. --- sortix/descriptor_tables.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sortix/descriptor_tables.cpp b/sortix/descriptor_tables.cpp index 1662751a..f94c88d4 100644 --- a/sortix/descriptor_tables.cpp +++ b/sortix/descriptor_tables.cpp @@ -186,8 +186,8 @@ namespace Sortix SetGate(45, (uint32_t) irq13, 0x08, 0x8E); SetGate(46, (uint32_t) irq14, 0x08, 0x8E); SetGate(47, (uint32_t) irq15, 0x08, 0x8E); - SetGate(128, (uint32_t) isr128, 0x08, 0x8E); // System Calls - SetGate(177, (uint32_t) isr177, 0x08, 0x8E); // System Calls + SetGate(128, (uint32_t) isr128, 0x08, 0x8E | 0x60); // System Calls + SetGate(177, (uint32_t) isr177, 0x08, 0x8E | 0x60); // System Calls idt_flush((uint32_t)&idt_ptr); #else @@ -203,7 +203,7 @@ namespace Sortix idt_entries[num].sel = sel; idt_entries[num].always0 = 0; - idt_entries[num].flags = flags | 0x60; + idt_entries[num].flags = flags; } } }