mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 19:38:12 +00:00
Kernel: Tidy up kernel entry points a little bit
Now that we can see the kernel entry points all the time in profiles, let's tweak the names a little bit and switch to named exceptions.
This commit is contained in:
parent
e4267020c4
commit
e49d6cc7e9
2 changed files with 82 additions and 82 deletions
|
@ -4,12 +4,12 @@
|
|||
#include <Kernel/Syscall.h>
|
||||
#include <Kernel/VM/MemoryManager.h>
|
||||
|
||||
extern "C" void syscall_trap_entry(RegisterDump);
|
||||
extern "C" void syscall_trap_handler();
|
||||
extern "C" void syscall_handler(RegisterDump);
|
||||
extern "C" void syscall_asm_entry();
|
||||
|
||||
asm(
|
||||
".globl syscall_trap_handler \n"
|
||||
"syscall_trap_handler:\n"
|
||||
".globl syscall_asm_entry\n"
|
||||
"syscall_asm_entry:\n"
|
||||
" pushl $0x0\n"
|
||||
" pusha\n"
|
||||
" pushw %ds\n"
|
||||
|
@ -26,7 +26,7 @@ asm(
|
|||
" popw %fs\n"
|
||||
" popw %gs\n"
|
||||
" cld\n"
|
||||
" call syscall_trap_entry\n"
|
||||
" call syscall_handler\n"
|
||||
" popw %gs\n"
|
||||
" popw %gs\n"
|
||||
" popw %fs\n"
|
||||
|
@ -42,7 +42,7 @@ static int handle(RegisterDump&, u32 function, u32 arg1, u32 arg2, u32 arg3);
|
|||
|
||||
void initialize()
|
||||
{
|
||||
register_user_callable_interrupt_handler(0x82, syscall_trap_handler);
|
||||
register_user_callable_interrupt_handler(0x82, syscall_asm_entry);
|
||||
kprintf("Syscall: int 0x82 handler installed\n");
|
||||
}
|
||||
|
||||
|
@ -95,7 +95,7 @@ int handle(RegisterDump& regs, u32 function, u32 arg1, u32 arg2, u32 arg3)
|
|||
|
||||
}
|
||||
|
||||
void syscall_trap_entry(RegisterDump regs)
|
||||
void syscall_handler(RegisterDump regs)
|
||||
{
|
||||
auto& process = current->process();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue