From 025778e89e7d0fe3cd1ad53537c9cc6f3cd819cc Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 11 Sep 2022 21:50:55 +0300 Subject: riscv32 boots and advances as far as riscv64 --- common/tcb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'common/tcb.c') diff --git a/common/tcb.c b/common/tcb.c index 119898f..1e25f47 100644 --- a/common/tcb.c +++ b/common/tcb.c @@ -76,7 +76,10 @@ static id_t __alloc_tid(struct tcb *t) * Setup RPC stack. * * RPC stack is local to each thread, and should not be visible to other threads - * in the same process. + * in the same process. Currently maps the RPC stack in BASE_PAGE increments, to + * hopefully allow us to later quickly disallow access to programs lower down in + * the RPC call chain by turning off all stack pages lower than the current + * stack pointer. We shall see if this actually works or not. * * @param t Thread to setup RPC stack for. * @param bytes Minimum size of RPC stack. -- cgit v1.3