struct proc_mm
{
heap_context_t u_heap;
- struct mm_region regions;
+ struct llist_header regions;
};
struct proc_sigstate
extern volatile struct proc_info* __current;
+static inline void
+block_current()
+{
+ __current->state = PS_BLOCKED;
+}
+
/**
* @brief 分配并初始化一个进程控制块
*