diff options
author | marcel <marcel@FreeBSD.org> | 2004-07-10 19:56:00 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-07-10 19:56:00 +0000 |
commit | 006d404cf77cb76437589bef7e0e1bb57c7bd79d (patch) | |
tree | ef114b5aee4601f2523b9d10bcaef23b379b7b6a /sys/i386/include/pcb.h | |
parent | 8a7d828338d290e43e0ba04946b945be561589c7 (diff) | |
download | FreeBSD-src-006d404cf77cb76437589bef7e0e1bb57c7bd79d.zip FreeBSD-src-006d404cf77cb76437589bef7e0e1bb57c7bd79d.tar.gz |
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.
Diffstat (limited to 'sys/i386/include/pcb.h')
-rw-r--r-- | sys/i386/include/pcb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/i386/include/pcb.h b/sys/i386/include/pcb.h index c88823a..3f32340 100644 --- a/sys/i386/include/pcb.h +++ b/sys/i386/include/pcb.h @@ -74,6 +74,9 @@ struct pcb { }; #ifdef _KERNEL +struct trapframe; + +void makectx(struct trapframe *, struct pcb *); void savectx(struct pcb *); #endif |