Thread (44 messages) 44 messages, 9 authors, 2017-12-12

[PATCH v2 10/18] arm64: entry: Add exception trampoline page for exceptions from EL0

From: mark.rutland@arm.com (Mark Rutland)
Date: 2017-12-01 13:32:05
Also in: lkml

On Thu, Nov 30, 2017 at 04:39:38PM +0000, Will Deacon wrote:
+	.macro tramp_ventry, regsize = 64
+	.align	7
+1:
+	.if	\regsize == 64
+	msr	tpidrro_el0, x30
+	.endif
+	tramp_map_kernel	x30
+	ldr	x30, =vectors
+	prfm	plil1strm, [x30, #(1b - tramp_vectors)]
+	msr	vbar_el1, x30
+	add	x30, x30, #(1b - tramp_vectors)
+	isb
+	br	x30
+	.endm
It might be worth a comment that the real vectors will restore x30 from
tpiddro_el0, since as-is, it looks like we're corrupting the value.

Otherwise, this looks good to me.

Thanks,
Mark.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help