From 5a39cbaf691680e0efa60ed8fa28fa9f1232ecaa Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Sat, 10 Jul 2004 19:56:00 +0000 Subject: Implement makectx(). The makectx() function is used by KDB to create a PCB from a trapframe for purposes of unwinding the stack. The PCB is used as the thread context and all but the thread that entered the debugger has a valid PCB. This function can also be used to create a context for the threads running on the CPUs that have been stopped when the debugger got entered. This however is not done at the time of this commit. --- sys/amd64/include/pcb.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/amd64/include') diff --git a/sys/amd64/include/pcb.h b/sys/amd64/include/pcb.h index 73d8aa558795..305b7ff895fe 100644 --- a/sys/amd64/include/pcb.h +++ b/sys/amd64/include/pcb.h @@ -78,6 +78,9 @@ struct pcb { }; #ifdef _KERNEL +struct trapframe; + +void makectx(struct trapframe *, struct pcb *); void savectx(struct pcb *); #endif -- cgit v1.3