Syscall first parameter
This commit is contained in:
parent
bc3e8323bd
commit
aa0207cf67
|
@ -38,6 +38,11 @@
|
|||
//
|
||||
#define interrupt(n) asm volatile ("int %0" : : "N" (n) : "cc", "memory")
|
||||
|
||||
//
|
||||
// Trigger a system call
|
||||
//
|
||||
#define syscall(n) asm volatile ("movq %0, %rdi\nint $0x80" : : "N" (n) : "cc", "memory")
|
||||
|
||||
//
|
||||
// Returns whether IRQs are enabled
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue