From 03968c33eb014e3f6a85cc6b69bd9fac22bbdaad Mon Sep 17 00:00:00 2001 From: ngiddings Date: Sat, 23 Jul 2022 02:22:18 -0500 Subject: [PATCH] Redefined message struct --- include/kernel.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/kernel.h b/include/kernel.h index fac2710..de6c183 100644 --- a/include/kernel.h +++ b/include/kernel.h @@ -36,8 +36,9 @@ struct boot_info_t struct message_t { - uint16_t sender, type; - uint32_t param1, param2, param3; + unsigned long sender; + unsigned long code; + unsigned long args[6]; }; struct address_space_t @@ -84,4 +85,6 @@ int store_active_context(struct process_context_t *context, size_t size); struct process_context_t *get_active_context(); +int send_message(int recipient, struct message_t *message); + void panic(const char *message) __attribute__ ((noreturn));