1 /* SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2000, 2001 Paolo Alberelli
4 * Copyright (C) 2003 Paul Mundt
5 * Copyright (C) 2004 Richard Curnow
7 #ifndef __ASM_SH_BL_BIT_64_H
8 #define __ASM_SH_BL_BIT_64_H
10 #include <asm/processor.h>
12 #define SR_BL_LL 0x0000000010000000LL
14 static inline void set_bl_bit(void)
16 unsigned long long __dummy0
, __dummy1
= SR_BL_LL
;
18 __asm__
__volatile__("getcon " __SR
", %0\n\t"
20 "putcon %0, " __SR
"\n\t"
26 static inline void clear_bl_bit(void)
28 unsigned long long __dummy0
, __dummy1
= ~SR_BL_LL
;
30 __asm__
__volatile__("getcon " __SR
", %0\n\t"
32 "putcon %0, " __SR
"\n\t"
37 #endif /* __ASM_SH_BL_BIT_64_H */