refactor: keep in mind the stack layout is crucial. Move context switching & signal...
[lunaix-os.git] / lunaix-os / includes / lunaix / process.h
index e429060ab5f785b9ffdcec9f12c6cb534bfc48aa..0b743d39c3058fff0d1d61b702ff149ae3a67d78 100644 (file)
@@ -42,10 +42,11 @@ struct proc_info
     struct proc_info* parent;
     isr_param intr_ctx; // size=76
     uintptr_t ustack_top;
+    void* page_table;
     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 +54,7 @@ struct proc_info
     sigset_t sig_pending;
     sigset_t sig_mask;
     void* sig_handler[_SIG_NUM];
+    pid_t pgid;
     struct lx_timer* timer;
 };