reg_ops.h 341 B

1234567891011121314151617
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
  3. #ifndef __ABI_REG_OPS_H
  4. #define __ABI_REG_OPS_H
  5. #include <asm/reg_ops.h>
  6. static inline unsigned int mfcr_hint(void)
  7. {
  8. return mfcr("cr31");
  9. }
  10. static inline unsigned int mfcr_ccr2(void)
  11. {
  12. return mfcr("cr23");
  13. }
  14. #endif /* __ABI_REG_OPS_H */