From e551bcde3cf1bc06aba9ecac07604bdfa5970f03 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 16 Sep 2025 20:39:33 -0400 Subject: kern/amd64: proc: Store trapframe in PCB Store a trapframe in the process control block so that state may be saved and restored between contexts Signed-off-by: Ian Moffett --- src/sys/include/arch/amd64/pcb.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sys/include/arch/amd64/pcb.h b/src/sys/include/arch/amd64/pcb.h index 852e28d..068dddb 100644 --- a/src/sys/include/arch/amd64/pcb.h +++ b/src/sys/include/arch/amd64/pcb.h @@ -31,14 +31,17 @@ #define _MACHINE_PCB_H_ 1 #include +#include /* * Represents MD specific process data * * @vas: Current virtual address space + * @tf: Processor state save */ struct md_pcb { struct vm_vas vas; + struct trapframe tf; }; #endif /* _MACHINE_PCB_H_ */ -- cgit v1.2.3