powerpc: remove CONFIG_PCI_QSPAN
[linux/fpc-iii.git] / arch / csky / abiv1 / inc / abi / reg_ops.h
bloba153bd3918f7737cbe26f939561ecbc309d78fbc
1 /* SPDX-License-Identifier: GPL-2.0 */
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
4 #ifndef __ABI_REG_OPS_H
5 #define __ABI_REG_OPS_H
6 #include <asm/reg_ops.h>
8 #define cprcr(reg) \
9 ({ \
10 unsigned int tmp; \
11 asm volatile("cprcr %0, "reg"\n":"=b"(tmp)); \
12 tmp; \
15 #define cpwcr(reg, val) \
16 ({ \
17 asm volatile("cpwcr %0, "reg"\n"::"b"(val)); \
20 static inline unsigned int mfcr_hint(void)
22 return mfcr("cr30");
25 static inline unsigned int mfcr_ccr2(void) { return 0; }
27 #endif /* __ABI_REG_OPS_H */