[boot-wrapper PATCH 01/12] Ensure `kernel_address` is aligned

Andre Przywara andre.przywara at arm.com
Fri Jul 30 08:11:52 PDT 2021


On Thu, 29 Jul 2021 16:20:39 +0100
Mark Rutland <mark.rutland at arm.com> wrote:

> We accidentally placed the `.align` directive after the `kernel_address`
> label, meaning that the label itself isn't necessarily aligned. Place
> the `.align` directive first to ensure this.
> 
> Signed-off-by: Mark Rutland <mark.rutland at arm.com>

Ouch, good catch!

Reviewed-by: Andre Przywara <andre.przywara at arm.com>

Cheers,
Andre

> ---
>  arch/aarch64/spin.S | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/aarch64/spin.S b/arch/aarch64/spin.S
> index 72603cf..ca05937 100644
> --- a/arch/aarch64/spin.S
> +++ b/arch/aarch64/spin.S
> @@ -30,8 +30,8 @@ start_no_el3:
>  	mov	x2, #0
>  	bl	first_spin
>  
> -kernel_address:
>  	.align 3
> +kernel_address:
>  	.long 0
>  
>  	.ltorg




More information about the linux-arm-kernel mailing list