![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 0003 #ifndef __ASM_REGS_OPS_H 0004 #define __ASM_REGS_OPS_H 0005 0006 #define mfcr(reg) \ 0007 ({ \ 0008 unsigned int tmp; \ 0009 asm volatile( \ 0010 "mfcr %0, "reg"\n" \ 0011 : "=r"(tmp) \ 0012 : \ 0013 : "memory"); \ 0014 tmp; \ 0015 }) 0016 0017 #define mtcr(reg, val) \ 0018 ({ \ 0019 asm volatile( \ 0020 "mtcr %0, "reg"\n" \ 0021 : \ 0022 : "r"(val) \ 0023 : "memory"); \ 0024 }) 0025 0026 #endif /* __ASM_REGS_OPS_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |