[Zion] Remove dead ZMessage struct.
This commit is contained in:
parent
e66706d381
commit
7dd10a3e53
|
@ -8,7 +8,6 @@
|
|||
#include "lib/message_queue.h"
|
||||
#include "object/ipc_object.h"
|
||||
#include "object/kernel_object.h"
|
||||
#include "usr/zcall_internal.h"
|
||||
|
||||
class Channel;
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#include "object/ipc_object.h"
|
||||
#include "object/kernel_object.h"
|
||||
#include "object/thread.h"
|
||||
#include "usr/zcall_internal.h"
|
||||
|
||||
class Port;
|
||||
|
||||
|
|
|
@ -54,12 +54,6 @@ glcr::ErrorCode PortRecv(ZPortRecvReq* req) {
|
|||
RET_ERR(ValidateCapability<Port>(port_cap, kZionPerm_Read));
|
||||
|
||||
auto port = port_cap->obj<Port>();
|
||||
ZMessage message{
|
||||
.num_bytes = *req->num_bytes,
|
||||
.data = const_cast<void*>(req->data),
|
||||
.num_caps = *req->num_caps,
|
||||
.caps = req->caps,
|
||||
};
|
||||
return port->Recv(req->num_bytes, req->data, req->num_caps, req->caps);
|
||||
}
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
#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");
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "include/ztypes.h"
|
||||
|
||||
struct ZMessage {
|
||||
uint64_t num_bytes;
|
||||
void* data;
|
||||
|
||||
uint64_t num_caps;
|
||||
z_cap_t* caps;
|
||||
};
|
Loading…
Reference in New Issue