Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
1da177e4 | 2 | /* |
20d60d99 | 3 | * Copyright (C) 2007 Maciej W. Rozycki |
1da177e4 LT |
4 | */ |
5 | #ifndef _ASM_BUGS_H | |
6 | #define _ASM_BUGS_H | |
7 | ||
20d60d99 | 8 | #include <linux/bug.h> |
631330f5 | 9 | #include <linux/smp.h> |
20d60d99 | 10 | |
f03da6e2 RB |
11 | #include <asm/cpu.h> |
12 | #include <asm/cpu-info.h> | |
1da177e4 | 13 | |
20d60d99 MR |
14 | extern int daddiu_bug; |
15 | ||
16 | extern void check_bugs64_early(void); | |
17 | ||
1da177e4 LT |
18 | extern void check_bugs32(void); |
19 | extern void check_bugs64(void); | |
20 | ||
20d60d99 MR |
21 | static inline int r4k_daddiu_bug(void) |
22 | { | |
071d2f0b PB |
23 | if (!IS_ENABLED(CONFIG_CPU_R4X00_BUGS64)) |
24 | return 0; | |
25 | ||
20d60d99 MR |
26 | WARN_ON(daddiu_bug < 0); |
27 | return daddiu_bug != 0; | |
20d60d99 MR |
28 | } |
29 | ||
1da177e4 | 30 | #endif /* _ASM_BUGS_H */ |