|
|
1.1 root 1: /* tag: defines the stacks, program counter and ways to access those
2: *
3: * Copyright (C) 2003 Patrick Mauritz, Stefan Reinauer
4: *
5: * See the file "COPYING" for further information about
6: * the copyright and warranty status of this work.
7: */
8:
9:
10: #include "config.h"
11: #include "kernel/stack.h"
12: #include "cross.h"
13:
14: #define dstacksize 512
15: int dstackcnt = 0;
16: cell dstack[dstacksize];
17:
18: #define rstacksize 512
19: int rstackcnt = 0;
20: cell rstack[rstacksize];
21:
22: /* Rstack value saved before entering forth interpreter in debugger */
23: int dbgrstackcnt = 0;
24:
25: #if defined(CONFIG_DEBUG_DSTACK) || defined(FCOMPILER)
26: void printdstack(void)
27: {
28: int i;
29: printk("dstack:");
30: for (i = 0; i <= dstackcnt; i++) {
31: printk(" 0x%" FMT_CELL_x , dstack[i]);
32: }
33: printk("\n");
34: }
35: #endif
36: #if defined(CONFIG_DEBUG_RSTACK) || defined(FCOMPILER)
37: void printrstack(void)
38: {
39: int i;
40: printk("rstack:");
41: for (i = 0; i <= rstackcnt; i++) {
42: printk(" 0x%" FMT_CELL_x , rstack[i]);
43: }
44: printk("\n");
45: }
46: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.