2023-05-29 00:32:54 -07:00
|
|
|
#include "include/zcall.h"
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2023-06-20 15:03:33 -07:00
|
|
|
z_err_t SysCall1(uint64_t number, const void* first) {
|
2023-06-07 08:50:08 -07:00
|
|
|
z_err_t return_code;
|
2023-06-20 15:03:33 -07:00
|
|
|
asm("syscall" : "=a"(return_code) : "D"(number), "S"(first) : "rcx", "r11");
|
2023-06-06 16:24:03 -07:00
|
|
|
return return_code;
|
|
|
|
}
|