X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/d251b620d312e819923e55e223e0eb43b72a3bc6..12293ed1d71cd306ed9a5d021a79ba945fe4e680:/lunaix-os/includes/lunaix/process.h diff --git a/lunaix-os/includes/lunaix/process.h b/lunaix-os/includes/lunaix/process.h index 0b743d3..26f33bd 100644 --- a/lunaix-os/includes/lunaix/process.h +++ b/lunaix-os/includes/lunaix/process.h @@ -38,11 +38,22 @@ 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;