aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-10-24 19:56:11 -0400
committerKevin O'Connor <kevin@koconnor.net>2009-10-24 19:56:11 -0400
commitc604f2f6be0ad729c8e25958c946a8535ca391ee (patch)
tree561c46af38c11dbc55685f525202b7a9d0c12e09 /src/util.h
parenta5826b5ad482f44d293387dc7513e5e98802a54e (diff)
downloadseabios-c604f2f6be0ad729c8e25958c946a8535ca391ee.tar.gz
Improve debugging output from threads.
Show the "thread id" on each debug message sent from a thread. Also, cleanup translation dprintf() so it looks nicer withe thread output.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index c2214c9f..637fd2bc 100644
--- a/src/util.h
+++ b/src/util.h
@@ -139,6 +139,8 @@ static inline u8 readb(const void *addr) {
// util.c
inline u32 stack_hop(u32 eax, u32 edx, u32 ecx, void *func);
+extern struct thread_info MainThread;
+struct thread_info *getCurThread();
void run_thread(void (*func)(void*), void *data);
void wait_threads();
u8 checksum_far(u16 buf_seg, void *buf_far, u32 len);