diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-12-01 02:05:19 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-12-01 02:05:19 +0200 |
| commit | 131af4eec38752a27e6e56579fbf76178e022ec1 (patch) | |
| tree | 1940634f69a44395fc6945b25c5cbc8b68bba876 /include/apos/tcb.h | |
| parent | e25f1e7a8f8f2320546ad4950464713d85b47785 (diff) | |
| download | kmi-131af4eec38752a27e6e56579fbf76178e022ec1.tar.gz kmi-131af4eec38752a27e6e56579fbf76178e022ec1.zip | |
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.
Diffstat (limited to 'include/apos/tcb.h')
| -rw-r--r-- | include/apos/tcb.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/apos/tcb.h b/include/apos/tcb.h index c56a2b3..9f10e2f 100644 --- a/include/apos/tcb.h +++ b/include/apos/tcb.h @@ -391,17 +391,18 @@ bool running(struct tcb *t); /** * Save thread context for rpc call. + * Assumes t->rpc is pointing to the correct virtual memory. * * @param t Thread whose context to save. */ -void save_context(struct tcb *t); +void enter_rpc(struct tcb *t); /** * Load thread context from rpc call. * * @param t Thread whose context to restore. */ -void load_context(struct tcb *t); +void leave_rpc(struct tcb *t); /** * Check that we have enough rpc stack. |
