[PATCH 1/2] arm64: Re-order reserved_ttbr0 in linker script
Steve Capper
steve.capper at arm.com
Tue Nov 21 03:15:59 PST 2017
On Mon, Nov 20, 2017 at 04:25:22PM +0000, Mark Rutland wrote:
> On Fri, Nov 17, 2017 at 11:41:42AM +0000, Steve Capper wrote:
> > Currently one resolves the location of the reserved_ttbr0 for PAN by
> > taking a positive offset from swapper_pg_dir. In a future patch we wish
> > to extend the swapper s.t. its size is determined at link time rather
> > than comile time, rendering SWAPPER_DIR_SIZE unsuitable for such a low
> > level calculation.
> >
> > In this patch we re-arrange the order of the linker script s.t. instead
> > one computes reserved_ttbr0 by subtracting RESERVED_TTBR0_SIZE from
> > swapper_pg_dir.
> >
> > Signed-off-by: Steve Capper <steve.capper at arm.com>
>
> Looks sane to me. FWIW:
>
> Acked-by: Mark Rutland <mark.rutland at arm.com>
Thanks!
--
Steve
More information about the linux-arm-kernel
mailing list