thread: Add magic number, debugging code, min stack size
commit12b2033fc541241f1b5a286a1a80dd309fe2a708
authorH. Peter Anvin <hpa@zytor.com>
Fri, 30 Mar 2012 23:09:03 +0000 (30 16:09 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 30 Mar 2012 23:13:02 +0000 (30 16:13 -0700)
treecb1b086db734708b092d70a7a6682c50b1f82a9f
parent9787a5c552d37b26550de38578c338fa92232545
thread: Add magic number, debugging code, min stack size

Add a magic number to the thread control block; this helps check for
memory overwrites.

Add dprintf()s to the scheduler.

Force a minimum stack size.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/include/thread.h
core/thread/root_thread.c
core/thread/schedule.c
core/thread/start_thread.c