+ /*
+ 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
+ void* fxstate; // offset = 92 -> 64 -> 68 -> 20
+
+ /* ---- critical section end ---- */
+
+ struct llist_header tasks;