diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-10-24 19:56:11 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-10-24 19:56:11 -0400 |
commit | c604f2f6be0ad729c8e25958c946a8535ca391ee (patch) | |
tree | 561c46af38c11dbc55685f525202b7a9d0c12e09 /src/util.h | |
parent | a5826b5ad482f44d293387dc7513e5e98802a54e (diff) | |
download | seabios-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |