diff options
Diffstat (limited to 'arch/x86/machine/tcb.h')
-rw-r--r-- | arch/x86/machine/tcb.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/x86/machine/tcb.h b/arch/x86/machine/tcb.h index 886237ee..bd0a793d 100644 --- a/arch/x86/machine/tcb.h +++ b/arch/x86/machine/tcb.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012 Richard Braun. + * Copyright (c) 2012, 2013 Richard Braun. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -31,6 +31,7 @@ * Architecture specific thread data. */ struct tcb { + unsigned long bp; unsigned long sp; unsigned long ip; }; @@ -82,6 +83,13 @@ tcb_switch(struct tcb *prev, struct tcb *next) } /* + * Dump the stack trace of a TCB. + * + * The thread associated to the TCB should not be running. + */ +void tcb_trace(const struct tcb *tcb); + +/* * Send a rescheduling interrupt to a remote processor. */ static inline void |