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
refactor: re-structure the kernel address space for a more integral layout.
[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 28cb76b97a797089cdceacac9a3323c373c0760a..26f33bd84dd9fbb21f753b5735a45a84458c2c5c 100644
(file)
--- a/
lunaix-os/includes/lunaix/process.h
+++ b/
lunaix-os/includes/lunaix/process.h
@@
-38,15
+38,26
@@
struct proc_sig
struct proc_info
{
struct proc_info
{
+ /*
+ Any change to *critical section*, including layout, size
+ must be reflected in kernel/asm/x86/interrupt.S to avoid
+ disaster!
+ */
+
+ /* ---- critical section start ---- */
+
pid_t pid;
struct proc_info* parent;
isr_param intr_ctx; // size=76
uintptr_t ustack_top;
pid_t pid;
struct proc_info* parent;
isr_param intr_ctx; // size=76
uintptr_t ustack_top;
+ void* page_table;
+
+ /* ---- critical section end ---- */
+
struct llist_header siblings;
struct llist_header children;
struct llist_header grp_member;
struct proc_mm mm;
struct llist_header siblings;
struct llist_header children;
struct llist_header grp_member;
struct proc_mm mm;
- void* page_table;
time_t created;
uint8_t state;
int32_t exit_code;
time_t created;
uint8_t state;
int32_t exit_code;