blob: 7f0e492c7d4205711766dc9b67cbb354ebc1025d (
plain)
1
2
3
4
5
6
7
8
9
|
#include <libk/stdio.h>
#include <syscall.h>
void syscall_handler()
{
uint64_t rax;
__asm__ volatile ("mov %%rax, %0;" : "=r"(rax) : :);
printf("syscall invoked with rax=0x%x\n", rax);
}
|