Skip to content

Commit

Permalink
Add .align 4 to fix potential alignment problem, see issue #33 (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec authored Feb 17, 2020
1 parent a838a1f commit cd81f4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/src/arch/riscv/boot/trap.asm
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ _to_kernel:
.endm

.section .text
.align 4
.globl trap_entry
trap_entry:
SAVE_ALL
Expand Down

0 comments on commit cd81f4c

Please sign in to comment.