Add kprintf for DEBUG(); differentiated from printf()
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* @author xamidev <xamidev@riseup.net>
|
||||
* @brief System call handling
|
||||
* @license GPL-3.0-only
|
||||
*/
|
||||
|
||||
#include <arch/x86.h>
|
||||
#include <kernel.h>
|
||||
|
||||
struct cpu_status_t* syscall_handler(struct cpu_status_t* regs)
|
||||
{
|
||||
DEBUG("Syscall %lx with argument %lx", regs->rdi, regs->rsi);
|
||||
|
||||
switch (regs->rdi)
|
||||
{
|
||||
case 0:
|
||||
break;
|
||||
case 1:
|
||||
break;
|
||||
default:
|
||||
regs->rsi = 0xdeadbeef;
|
||||
break;
|
||||
}
|
||||
|
||||
return regs;
|
||||
}
|
||||
Reference in New Issue
Block a user