From 3af69d229a1ce951540d786c8539b50ad31ce09b Mon Sep 17 00:00:00 2001 From: matsutsuka Date: Sat, 1 Sep 2007 01:09:25 +0000 Subject: [PATCH] Added some comments. --- cpu/z80/mtarch.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/cpu/z80/mtarch.h b/cpu/z80/mtarch.h index b4b9efbea..9c458be98 100644 --- a/cpu/z80/mtarch.h +++ b/cpu/z80/mtarch.h @@ -33,7 +33,7 @@ * Z80 machine-specific difinitions for supporting multithread. * * \author - * Takahide Matsutsuka + * Takahide Matsutsuka */ #ifndef __MTARCH_H__ #define __MTARCH_H__ @@ -49,10 +49,17 @@ struct mtarch_thread { * See details at mtarch_switch in mtarch.c */ u16_t *sp; + /* + * Stack is 2-byte wide, so please note that you need 2 * MTARCH_STACKSIZE + * bytes for the stack area for each thread. + */ u16_t stack[MTARCH_STACKSIZE]; }; +/* + * A function for debugging purpose, placed here by following other implementations. + */ int mtarch_stack_usage(struct mtarch_thread *t); #endif /* __MTARCH_H__ */ - +