xref: /nrf52832-nimble/rt-thread/components/finsh/finsh_vm.h (revision 104654410c56c573564690304ae786df310c91fc)
1 /*
2  * Copyright (c) 2006-2018, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2010-03-22     Bernard      first version
9  */
10 #ifndef __FINSH_VM_H__
11 #define __FINSH_VM_H__
12 
13 #include <finsh.h>
14 
15 #include "finsh_var.h"
16 
17 union finsh_value {
18     char    char_value;
19     short   short_value;
20     long    long_value;
21     void*   ptr;
22 };
23 
24 extern union finsh_value*   finsh_sp;       /* stack pointer */
25 extern uint8_t*             finsh_pc;       /* PC */
26 
27 /* stack */
28 extern union finsh_value    finsh_vm_stack[FINSH_STACK_MAX];
29 /* text segment */
30 extern uint8_t              text_segment[FINSH_TEXT_MAX];
31 
32 void finsh_vm_run(void);
33 //void finsh_disassemble(void);
34 
35 #endif
36