From 131af4eec38752a27e6e56579fbf76178e022ec1 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 1 Dec 2022 02:05:19 +0200 Subject: start looking into memory handling + Now 10M alloc/frees succeed, which totals more memory than the virtual machine has, so no too obvious leaks are occuring. For future debugging speed, changed 10M to 1M. + Also quick fix to rpcs, stacks are now assigned. Not entirely sure why they worked before this, but good that I found it. --- include/arch/proc.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/arch') diff --git a/include/arch/proc.h b/include/arch/proc.h index 6a2c036..84954c0 100644 --- a/include/arch/proc.h +++ b/include/arch/proc.h @@ -48,6 +48,15 @@ struct sys_ret get_args(struct tcb *t); */ void set_thread(struct tcb *t); +/** + * Set userspace stack. I think \ref set_thread() could be replaced with this, + * and it's more useful. + * + * @param t Thread whose stack to set. + * @param s Stack to give to thread. + */ +void set_stack(struct tcb *t, vm_t s); + /** * Get current userspace stack. * -- cgit v1.3