include: sbi: rename sbi_misaligned_ldst.h to sbi_trap_ldst.h
authorBo Gan <ganboing@gmail.com>
Wed, 6 Mar 2024 02:35:35 +0000 (18:35 -0800)
committerAnup Patel <anup@brainfault.org>
Mon, 11 Mar 2024 05:06:35 +0000 (10:36 +0530)
Signed-off-by: Bo Gan <ganboing@gmail.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
include/sbi/sbi_misaligned_ldst.h [deleted file]
include/sbi/sbi_trap_ldst.h [new file with mode: 0644]
lib/sbi/sbi_trap.c
lib/sbi/sbi_trap_ldst.c

diff --git a/include/sbi/sbi_misaligned_ldst.h b/include/sbi/sbi_misaligned_ldst.h
deleted file mode 100644 (file)
index ab27eb4..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * SPDX-License-Identifier: BSD-2-Clause
- *
- * Copyright (c) 2019 Western Digital Corporation or its affiliates.
- *
- * Authors:
- *   Anup Patel <anup.patel@wdc.com>
- */
-
-#ifndef __SBI_MISALIGNED_LDST_H__
-#define __SBI_MISALIGNED_LDST_H__
-
-#include <sbi/sbi_types.h>
-
-struct sbi_trap_regs;
-
-int sbi_misaligned_load_handler(ulong addr, ulong tval2, ulong tinst,
-                               struct sbi_trap_regs *regs);
-
-int sbi_misaligned_store_handler(ulong addr, ulong tval2, ulong tinst,
-                                struct sbi_trap_regs *regs);
-
-#endif
diff --git a/include/sbi/sbi_trap_ldst.h b/include/sbi/sbi_trap_ldst.h
new file mode 100644 (file)
index 0000000..9bbd237
--- /dev/null
@@ -0,0 +1,23 @@
+/*
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2019 Western Digital Corporation or its affiliates.
+ *
+ * Authors:
+ *   Anup Patel <anup.patel@wdc.com>
+ */
+
+#ifndef __SBI_TRAP_LDST_H__
+#define __SBI_TRAP_LDST_H__
+
+#include <sbi/sbi_types.h>
+
+struct sbi_trap_regs;
+
+int sbi_misaligned_load_handler(ulong addr, ulong tval2, ulong tinst,
+                               struct sbi_trap_regs *regs);
+
+int sbi_misaligned_store_handler(ulong addr, ulong tval2, ulong tinst,
+                                struct sbi_trap_regs *regs);
+
+#endif
index dbf307c6894336e4f18b1a31134e3efaad74c901..145db4b448cd1b2496bfc8bd9c4897ac64c6d51a 100644 (file)
@@ -17,7 +17,7 @@
 #include <sbi/sbi_illegal_insn.h>
 #include <sbi/sbi_ipi.h>
 #include <sbi/sbi_irqchip.h>
-#include <sbi/sbi_misaligned_ldst.h>
+#include <sbi/sbi_trap_ldst.h>
 #include <sbi/sbi_pmu.h>
 #include <sbi/sbi_scratch.h>
 #include <sbi/sbi_timer.h>
index 71b6232e6689e7c7941ccb2c8210cf1aea544d1b..a9ae96e9ae13e73cb68fe11906885f6611ce862f 100644 (file)
@@ -11,7 +11,7 @@
 #include <sbi/riscv_encoding.h>
 #include <sbi/riscv_fp.h>
 #include <sbi/sbi_error.h>
-#include <sbi/sbi_misaligned_ldst.h>
+#include <sbi/sbi_trap_ldst.h>
 #include <sbi/sbi_pmu.h>
 #include <sbi/sbi_trap.h>
 #include <sbi/sbi_unpriv.h>