git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: (vm) memory mapping support: mmap/munmap
[lunaix-os.git]
/
lunaix-os
/
includes
/
lunaix
/
process.h
diff --git
a/lunaix-os/includes/lunaix/process.h
b/lunaix-os/includes/lunaix/process.h
index c014443089bb557b35991bb7f1968c3873123a7b..1eacf127a28e31ea567a42f12b8b680e69533f8a 100644
(file)
--- a/
lunaix-os/includes/lunaix/process.h
+++ b/
lunaix-os/includes/lunaix/process.h
@@
-28,7
+28,7
@@
struct proc_mm
{
heap_context_t u_heap;
struct proc_mm
{
heap_context_t u_heap;
- struct
mm_region
regions;
+ struct
llist_header
regions;
};
struct proc_sigstate
};
struct proc_sigstate
@@
-93,6
+93,12
@@
struct proc_info
extern volatile struct proc_info* __current;
extern volatile struct proc_info* __current;
+static inline void
+block_current()
+{
+ __current->state = PS_BLOCKED;
+}
+
/**
* @brief 分配并初始化一个进程控制块
*
/**
* @brief 分配并初始化一个进程控制块
*