acadia/zion/usr/zcall.cpp

12 lines
263 B
C++
Raw Normal View History

#include "include/zcall.h"
#include <stdint.h>
#include "usr/zcall_internal.h"
z_err_t SysCall1(uint64_t number, const void* first) {
z_err_t return_code;
asm("syscall" : "=a"(return_code) : "D"(number), "S"(first) : "rcx", "r11");
2023-06-06 16:24:03 -07:00
return return_code;
}