sysdep.h 428 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
  3. #ifndef __SYSDEP_H
  4. #define __SYSDEP_H
  5. #ifdef __ASSEMBLER__
  6. #if defined(__CK860__)
  7. #define LABLE_ALIGN \
  8. .balignw 16, 0x6c03
  9. #define PRE_BNEZAD(R)
  10. #define BNEZAD(R, L) \
  11. bnezad R, L
  12. #else
  13. #define LABLE_ALIGN \
  14. .balignw 8, 0x6c03
  15. #define PRE_BNEZAD(R) \
  16. subi R, 1
  17. #define BNEZAD(R, L) \
  18. bnez R, L
  19. #endif
  20. #endif
  21. #endif