X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/94a87fe25c5ec021daf16edd64058ed6a37aba7d..728194869c3dc89b0e1c625480d486ada309ae40:/lunaix-os/includes/lunaix/process.h diff --git a/lunaix-os/includes/lunaix/process.h b/lunaix-os/includes/lunaix/process.h index e429060..26f33bd 100644 --- a/lunaix-os/includes/lunaix/process.h +++ b/lunaix-os/includes/lunaix/process.h @@ -38,14 +38,26 @@ struct proc_sig 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; + void* page_table; + + /* ---- critical section end ---- */ + 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; @@ -53,6 +65,7 @@ struct proc_info sigset_t sig_pending; sigset_t sig_mask; void* sig_handler[_SIG_NUM]; + pid_t pgid; struct lx_timer* timer; };