globals.h 599 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * rt-loader header
  3. * (c) 2025 Markus Stockhausen
  4. */
  5. #ifndef _GLOBALS_H_
  6. #define _GLOBALS_H_
  7. #define UIMAGE_HDR_SIZE 64
  8. #define UIMAGE_OS_LINUX 5
  9. #define UIMAGE_COMP_NONE 0
  10. #define UIMAGE_COMP_LZMA 3
  11. #define KSEG0 0x80000000
  12. #define STACK_SIZE 0x10000
  13. #define HEAP_SIZE 0x40000
  14. #define MEMORY_ALIGNMENT 32
  15. #define CP0_COUNT $9
  16. #define CP0_COMPARE $11
  17. #define CP0_STATUS $12
  18. #define CP0_CAUSE $13
  19. #define CP0_WATCHLO $18
  20. #define CP0_WATCHHI $19
  21. #define printf(fmt, ...) npf_pprintf(board_putchar, NULL, fmt, ##__VA_ARGS__)
  22. #define snprintf npf_snprintf
  23. #endif // _GLOBALS_H_