X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/fa57b4a05aa12d594f40e0894e0ac6f810a7095c..642855f81fd03b9fd6540ac99c665b57b4b38cc8:/lunaix-os/includes/lunaix/process.h?ds=inline diff --git a/lunaix-os/includes/lunaix/process.h b/lunaix-os/includes/lunaix/process.h index c014443..ab5dde9 100644 --- a/lunaix-os/includes/lunaix/process.h +++ b/lunaix-os/includes/lunaix/process.h @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -28,7 +29,7 @@ struct proc_mm { heap_context_t u_heap; - struct mm_region regions; + vm_regions_t regions; }; struct proc_sigstate @@ -93,6 +94,12 @@ struct proc_info extern volatile struct proc_info* __current; +static inline void +block_current() +{ + __current->state = PS_BLOCKED; +} + /** * @brief 分配并初始化一个进程控制块 *