1 #ifndef __LUNAIX_ARCH_HART_H
2 #define __LUNAIX_ARCH_HART_H
5 #include <lunaix/compiler.h>
22 struct hart_state* parent_state;
26 hart_flow_redirect(struct hart_state* state, ptr_t pc, ptr_t sp);
29 hart_pc(struct hart_state* state);
32 hart_sp(struct hart_state* state);
35 kernel_context(struct hart_state* hstate);
38 hart_stack_frame(struct hart_state* hstate);
41 hart_vector_stamp(struct hart_state* hstate);
44 hart_ecause(struct hart_state* hstate);
47 hart_parent_state(struct hart_state* hstate);
50 hart_push_state(struct hart_state* p_hstate, struct hart_state* hstate);
54 #endif /* __LUNAIX_ARCH_HART_H */