add IPC to build && fix errors
This commit is contained in:
@@ -17,7 +17,7 @@ inline static enum SendIPCErrors send_ipc(int pid, ksys_ipc_msg* msg)
|
||||
asm_inline(
|
||||
"int $0x40"
|
||||
: "=a"(ret)
|
||||
: "a"(60), "b"(1), "c"(pid), "d"(msg), "S"(sizeof(ksys_ipc_msg) + msg->datalen)
|
||||
: "a"(60), "b"(2), "c"(pid), "d"(msg), "S"(sizeof(ksys_ipc_msg) + msg->datalen)
|
||||
);
|
||||
|
||||
return ret;
|
||||
@@ -28,10 +28,9 @@ int syscalls_DefineIPCBuffer(lua_State* L)
|
||||
uint32_t len = luaL_checkinteger(L, 1);
|
||||
ksys_ipc_buffer* buffer;
|
||||
|
||||
|
||||
define_ipc(buffer, len);
|
||||
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int syscalls_SendIPCMessage(lua_State* L)
|
||||
@@ -39,7 +38,7 @@ int syscalls_SendIPCMessage(lua_State* L)
|
||||
lua_pushinteger(
|
||||
L,
|
||||
send_ipc(
|
||||
lua_checkinteger(L, 1),
|
||||
luaL_checkinteger(L, 1),
|
||||
luaL_checkudata(L, 1, syscalls_IPC_msg_metatable_name)
|
||||
)
|
||||
);
|
||||
|
Reference in New Issue
Block a user