cpuport.h 533 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-10-03 Bernard The first version
  9. */
  10. #ifndef CPUPORT_H__
  11. #define CPUPORT_H__
  12. /* bytes of register width */
  13. #ifdef ARCH_CPU_64BIT
  14. #define STORE sd
  15. #define LOAD ld
  16. #define REGBYTES 8
  17. #else
  18. #define STORE sw
  19. #define LOAD lw
  20. #define REGBYTES 4
  21. #endif
  22. #endif