[Zion] Remove dead ZMessage struct.

This commit is contained in:
Drew Galbraith 2023-11-02 21:57:29 -07:00
parent e66706d381
commit 7dd10a3e53
5 changed files with 0 additions and 23 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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);
}

View File

@ -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");

View File

@ -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;
};