1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _GUARDED_STORAGE_H
3 #define _GUARDED_STORAGE_H
5 #include <linux/types.h>
52 #define GS_SET_BC_CB 2
53 #define GS_CLEAR_BC_CB 3
54 #define GS_BROADCAST 4
56 static inline void load_gs_cb(struct gs_cb
*gs_cb
)
58 asm volatile(".insn rxy,0xe3000000004d,0,%0" : : "Q" (*gs_cb
));
61 static inline void store_gs_cb(struct gs_cb
*gs_cb
)
63 asm volatile(".insn rxy,0xe30000000049,0,%0" : : "Q" (*gs_cb
));
66 static inline void save_gs_cb(struct gs_cb
*gs_cb
)
72 static inline void restore_gs_cb(struct gs_cb
*gs_cb
)
78 #endif /* _GUARDED_STORAGE_H */