[coreboot-gerrit] Change in coreboot[master]: arch/riscv: Remove supervisor_trap_entry
Jonathan Neuschäfer (Code Review)
gerrit at coreboot.org
Sat Nov 25 00:03:52 CET 2017
Jonathan Neuschäfer has uploaded this change for review. ( https://review.coreboot.org/22595
Change subject: arch/riscv: Remove supervisor_trap_entry
......................................................................
arch/riscv: Remove supervisor_trap_entry
Coreboot only maintains a single trap entry, because it only runs in
machine mode.
Change-Id: I7324d9c8897d5c4e9d4784e7bc2a055890eab698
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer at gmx.net>
---
M src/arch/riscv/trap_util.S
1 file changed, 1 insertion(+), 9 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/22595/1
diff --git a/src/arch/riscv/trap_util.S b/src/arch/riscv/trap_util.S
index 3036f06..72a9ae1 100644
--- a/src/arch/riscv/trap_util.S
+++ b/src/arch/riscv/trap_util.S
@@ -107,15 +107,7 @@
.globl estack
.text
- .global supervisor_trap_entry
-supervisor_trap_entry:
- csrw mscratch, sp
- # load in the top of the machine stack
- la sp, _estack
- addi sp,sp,-MENTRY_FRAME_SIZE
- save_tf
- move a0,sp
- jal trap_handler
+
.global trap_entry
trap_entry:
csrw mscratch, sp
--
To view, visit https://review.coreboot.org/22595
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7324d9c8897d5c4e9d4784e7bc2a055890eab698
Gerrit-Change-Number: 22595
Gerrit-PatchSet: 1
Gerrit-Owner: Jonathan Neuschäfer <j.neuschaefer at gmx.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20171124/fc322f64/attachment-0001.html>
More information about the coreboot-gerrit
mailing list