finsh_vm.h 873 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * File : finsh_vm.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2010-03-22 Bernard first version
  13. */
  14. #ifndef __FINSH_VM_H__
  15. #define __FINSH_VM_H__
  16. #include <finsh.h>
  17. #include "finsh_var.h"
  18. union finsh_value {
  19. char char_value;
  20. short short_value;
  21. long long_value;
  22. void* ptr;
  23. };
  24. extern union finsh_value* finsh_sp; /* stack pointer */
  25. extern u_char* finsh_pc; /* PC */
  26. /* stack */
  27. extern union finsh_value finsh_vm_stack[FINSH_STACK_MAX];
  28. /* text segment */
  29. extern u_char text_segment[FINSH_TEXT_MAX];
  30. void finsh_vm_run(void);
  31. //void finsh_disassemble(void);
  32. #endif