summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-16 20:39:33 -0400
committerIan Moffett <ian@osmora.org>2025-09-16 20:39:33 -0400
commite551bcde3cf1bc06aba9ecac07604bdfa5970f03 (patch)
tree16d99179073fff9a8cf69ddd0590a3278fa6f296
parentdf405924bd3d28dbe0e8e4a52c340610f0c7c4dc (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>
-rw-r--r--src/sys/include/arch/amd64/pcb.h3
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_ */