1 /* tag: defines the stacks, program counter and ways to access those
3 * Copyright (C) 2003 Patrick Mauritz, Stefan Reinauer
5 * See the file "COPYING" for further information about
6 * the copyright and warranty status of this work.
11 #include "kernel/stack.h"
14 #define dstacksize 512
16 cell dstack[dstacksize];
18 #define rstacksize 512
20 cell rstack[rstacksize];
22 /* Rstack value saved before entering forth interpreter in debugger */
25 #if defined(CONFIG_DEBUG_DSTACK) || defined(FCOMPILER)
26 void printdstack(void)
30 for (i = 0; i <= dstackcnt; i++) {
31 printk(" 0x%" FMT_CELL_x , dstack[i]);
36 #if defined(CONFIG_DEBUG_RSTACK) || defined(FCOMPILER)
37 void printrstack(void)
41 for (i = 0; i <= rstackcnt; i++) {
42 printk(" 0x%" FMT_CELL_x , rstack[i]);