Skip to content

Commit 373adb7

Browse files
committed
Merge tag 'riscv/for-v5.5-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux
Pull RISC-V fixes from Paul Walmsley: "Two fixes for RISC-V: - Clear FP registers during boot when FP support is present, rather than when they aren't present - Move the header files associated with the SiFive L2 cache controller to drivers/soc (where the code was recently moved)" * tag 'riscv/for-v5.5-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: riscv: Fixup obvious bug for fp-regs reset riscv: move sifive_l2_cache.h to include/soc
2 parents 040a3c3 + dc6fcba commit 373adb7

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

arch/riscv/kernel/head.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ ENTRY(reset_regs)
251251
#ifdef CONFIG_FPU
252252
csrr t0, CSR_MISA
253253
andi t0, t0, (COMPAT_HWCAP_ISA_F | COMPAT_HWCAP_ISA_D)
254-
bnez t0, .Lreset_regs_done
254+
beqz t0, .Lreset_regs_done
255255

256256
li t1, SR_FS
257257
csrs CSR_STATUS, t1

drivers/edac/sifive_edac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <linux/edac.h>
1111
#include <linux/platform_device.h>
1212
#include "edac_module.h"
13-
#include <asm/sifive_l2_cache.h>
13+
#include <soc/sifive/sifive_l2_cache.h>
1414

1515
#define DRVNAME "sifive_edac"
1616

drivers/soc/sifive/sifive_l2_cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <linux/interrupt.h>
1010
#include <linux/of_irq.h>
1111
#include <linux/of_address.h>
12-
#include <asm/sifive_l2_cache.h>
12+
#include <soc/sifive/sifive_l2_cache.h>
1313

1414
#define SIFIVE_L2_DIRECCFIX_LOW 0x100
1515
#define SIFIVE_L2_DIRECCFIX_HIGH 0x104

arch/riscv/include/asm/sifive_l2_cache.h renamed to include/soc/sifive/sifive_l2_cache.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
*
55
*/
66

7-
#ifndef _ASM_RISCV_SIFIVE_L2_CACHE_H
8-
#define _ASM_RISCV_SIFIVE_L2_CACHE_H
7+
#ifndef __SOC_SIFIVE_L2_CACHE_H
8+
#define __SOC_SIFIVE_L2_CACHE_H
99

1010
extern int register_sifive_l2_error_notifier(struct notifier_block *nb);
1111
extern int unregister_sifive_l2_error_notifier(struct notifier_block *nb);
1212

1313
#define SIFIVE_L2_ERR_TYPE_CE 0
1414
#define SIFIVE_L2_ERR_TYPE_UE 1
1515

16-
#endif /* _ASM_RISCV_SIFIVE_L2_CACHE_H */
16+
#endif /* __SOC_SIFIVE_L2_CACHE_H */

0 commit comments

Comments
 (0)