1 #include <lunaix/process.h>
5 update_thread_context(struct hart_state* state)
11 struct hart_state* parent = current_thread->hstate;
12 hart_push_state(parent, state);
13 current_thread->hstate = state;
16 state->depth = parent->depth + 1;
22 handle_exception(struct hart_state* hstate)
24 update_thread_context(hstate);