From e505b52d8c570625ade2ff9e8ed8b6b58528e152 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Thu, 3 Oct 2019 18:43:29 +0900 Subject: [PATCH] Add a pointer to struct task that points to the process the task is a part of --- kernel/include/arch.h | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/include/arch.h b/kernel/include/arch.h index 260707d..0cb7d74 100644 --- a/kernel/include/arch.h +++ b/kernel/include/arch.h @@ -39,6 +39,7 @@ struct task { u32_t t_tslice; u32_t t_rslice; + void *t_proc; } __attribute__((packed)); int cpu_get_id(void); -- 2.47.3