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