+struct proc_sig
+{
+ int sig_num;
+ void* sigact;
+ void* sighand;
+ isr_param* saved_ictx;
+} __attribute__((packed));
+
+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; // offset = 0
+ struct proc_info* parent; // offset = 4
+ isr_param* intr_ctx; // offset = 8
+ ptr_t ustack_top; // offset = 84 -> 56 -> 60 -> 12
+ ptr_t page_table; // offset = 88 -> 60 -> 64 -> 16
+
+ /* ---- critical section end ---- */
+
+ struct llist_header tasks;