skyeye_defs.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #include "common/common_types.h"
  3. struct cpu_config_t
  4. {
  5. const char* cpu_arch_name; // CPU architecture version name.e.g. ARMv4T
  6. const char* cpu_name; // CPU name. e.g. ARM7TDMI or ARM720T
  7. u32 cpu_val; // CPU value; also call MMU ID or processor id;see
  8. // ARM Architecture Reference Manual B2-6
  9. u32 cpu_mask; // cpu_val's mask.
  10. u32 cachetype; // CPU cache type
  11. };
  12. enum {
  13. // No exception
  14. No_exp = 0,
  15. // Memory allocation exception
  16. Malloc_exp,
  17. // File open exception
  18. File_open_exp,
  19. // DLL open exception
  20. Dll_open_exp,
  21. // Invalid argument exception
  22. Invarg_exp,
  23. // Invalid module exception
  24. Invmod_exp,
  25. // wrong format exception for config file parsing
  26. Conf_format_exp,
  27. // some reference excess the predefiend range. Such as the index out of array range
  28. Excess_range_exp,
  29. // Can not find the desirable result
  30. Not_found_exp,
  31. // Unknown exception
  32. Unknown_exp
  33. };
  34. typedef u32 addr_t;