1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:48:12 +00:00

Interrupts: Assert if trying to install an handler on syscall vector

Installing an interrupt handler on the syscall IDT vector can lead to
fatal results, so we must assert if that happens.
This commit is contained in:
Liav A 2020-03-14 20:19:38 +02:00 committed by Andreas Kling
parent f86be46c98
commit dbc536e917
3 changed files with 6 additions and 1 deletions

View file

@ -69,7 +69,7 @@ static int handle(RegisterState&, u32 function, u32 arg1, u32 arg2, u32 arg3);
void initialize()
{
register_user_callable_interrupt_handler(0x82, syscall_asm_entry);
register_user_callable_interrupt_handler(syscall_vector, syscall_asm_entry);
klog() << "Syscall: int 0x82 handler installed";
}