From cd81f4cc73ea3302ed0356398525b0b56c4fca92 Mon Sep 17 00:00:00 2001 From: Chen Date: Mon, 17 Feb 2020 21:26:06 +0800 Subject: [PATCH] Add .align 4 to fix potential alignment problem, see issue #33 (#34) --- kernel/src/arch/riscv/boot/trap.asm | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/src/arch/riscv/boot/trap.asm b/kernel/src/arch/riscv/boot/trap.asm index 6b42ad5d4..479a35b38 100644 --- a/kernel/src/arch/riscv/boot/trap.asm +++ b/kernel/src/arch/riscv/boot/trap.asm @@ -116,6 +116,7 @@ _to_kernel: .endm .section .text + .align 4 .globl trap_entry trap_entry: SAVE_ALL