summaryrefslogtreecommitdiff
path: root/src/arch/riscv/trap_handler.c
diff options
context:
space:
mode:
authorMaximilian Brune <maximilian.brune@9elements.com>2024-03-07 22:56:27 +0100
committerMartin L Roth <gaumless@gmail.com>2024-03-09 23:47:19 +0000
commit5d0fa0de70145de85dcc6bd7c1ba0db19b864b89 (patch)
tree496dca4a6569a9c44e6c33f7709bc7febcafc531 /src/arch/riscv/trap_handler.c
parent56c3444d85a1b60fcc891910c9c60e5f75ba9197 (diff)
arch/riscv: Remove typedefs
typedefs violate our coding-style Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com> Change-Id: Id51eda53b6b53ed2cc66c0339c03c855c12c1bd8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/81124 Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philipp Hug <philipp@hug.cx>
Diffstat (limited to 'src/arch/riscv/trap_handler.c')
-rw-r--r--src/arch/riscv/trap_handler.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/riscv/trap_handler.c b/src/arch/riscv/trap_handler.c
index 4cbccc5892..f3968bb0a6 100644
--- a/src/arch/riscv/trap_handler.c
+++ b/src/arch/riscv/trap_handler.c
@@ -46,7 +46,7 @@ static const char *mstatus_to_previous_mode(uintptr_t ms)
return "unknown";
}
-static void print_trap_information(const trapframe *tf)
+static void print_trap_information(const struct trapframe *tf)
{
const char *previous_mode;
bool mprv = !!(tf->status & MSTATUS_MPRV);
@@ -69,7 +69,7 @@ static void print_trap_information(const trapframe *tf)
printk(BIOS_DEBUG, "Stored sp: %p\n", (void *)tf->gpr[2]);
}
-static void interrupt_handler(trapframe *tf)
+static void interrupt_handler(struct trapframe *tf)
{
uint64_t cause = tf->cause & ~0x8000000000000000ULL;
@@ -109,9 +109,9 @@ static void interrupt_handler(trapframe *tf)
}
}
-void (*trap_handler)(trapframe *tf) = default_trap_handler;
+void (*trap_handler)(struct trapframe *tf) = default_trap_handler;
-void default_trap_handler(trapframe *tf)
+void default_trap_handler(struct trapframe *tf)
{
if (tf->cause & 0x8000000000000000ULL) {
interrupt_handler(tf);