diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-16 20:39:33 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-16 20:39:33 -0400 |
commit | e551bcde3cf1bc06aba9ecac07604bdfa5970f03 (patch) | |
tree | 16d99179073fff9a8cf69ddd0590a3278fa6f296 /src/sys/include/arch/amd64/pcb.h | |
parent | df405924bd3d28dbe0e8e4a52c340610f0c7c4dc (diff) |
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 <ian@osmora.org>
Diffstat (limited to 'src/sys/include/arch/amd64/pcb.h')
-rw-r--r-- | src/sys/include/arch/amd64/pcb.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <machine/vas.h> +#include <machine/frame.h> /* * 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_ */ |