lkml.org 
[lkml]   [2017]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 10/18] arm64: entry: Add exception trampoline page for exceptions from EL0
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.

\
 
 \ /
  Last update: 2017-12-01 14:32    [W:0.815 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site