[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] xen/arm32: head: Don't set r12 and update the documentation
- To: Julien Grall <julien@xxxxxxx>
- From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
- Date: Tue, 1 Mar 2022 13:41:51 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=l7+NjUtIl4PtuQwZtk4J6GpMswcXb9VYN05c0Y1IzzQ=; b=jSx+lcmEn7bWLI76bG14n2JpdV14ThzaEO4ojm7vtH/TOT/N4zYES5GQLGRkeaXFco8y2q/GDI9HrRXT7hKgK2W+F3ZWg5p2oWLFAfxIidJEgMACKJmUUxrrMWyxOL8roAVzt1It75fzjtoB4inSXQhMFy2+z+oCasN/v2aARc1m0LW9WhYhQv155WV8isouPvDTyEkuhpQR4ocqZ1W/QohfuG36EOpS5SBylpi5+GejFGpPZ7RF4AbY2kXLoQxH18lZGUhb5N9RTRzFET1lMR4/GP7mcl4sHRxQOMBnzZj3PNeHKCoCWl7gHhH6P0SR0BMyJbWyvCfxUDfbY2j8Uw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gfvXUOfQB1FtJc2fD/wR4pcc9MW6xp3IG7SsL6tyzYFHbgWQE1kwvs3j4o/dNblp8SktFyEqGEeslTO+laAQzcXMX7/VZjL8NircxpYBosbuAJ0yB6DmODd8M5Hrm5nDwG4T4vWjjOE4NY+9DbCa5cbemHf6Dk++LMYSzEYba5RGAUDMorB0l3TS48CVYcUIj1iqFUloZR04mmM96I28kVSsoV0Jlg6PpANJ4arLcNRA7fIxwKaGPHaWtikK9/HtPpx08jx/w7zphn7E33STav4JTlF7F5dcJP8X5YjYjjHtxoCKUEzJmNCP+qpM9JCwm4IzAnG8VZ2UcG4hqE8Knw==
- Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Michal Orzel <Michal.Orzel@xxxxxxx>, Julien Grall <jgrall@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Tue, 01 Mar 2022 13:42:18 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
- Thread-index: AQHYLKgtSgsY3bUkq0KDQmgeSYVnA6yqiuQA
- Thread-topic: [PATCH v2] xen/arm32: head: Don't set r12 and update the documentation
Hi Julien,
> On 28 Feb 2022, at 13:35, Julien Grall <julien@xxxxxxx> wrote:
>
> From: Julien Grall <jgrall@xxxxxxxxxx>
>
> Since commit 54c4ae18d158 ("xen/arm32: head: Rework and document
> launch()"), the boot code is setting r12 but not read it.
>
> So remove the two instructions setting r12 and update the documentation
> to show r12 has no specific purpose.
>
> Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>
Reviewed-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>
Cheers
Bertrand
>
> ---
> Changes in v2:
> - Don't set r12.
> ---
> xen/arch/arm/arm32/head.S | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/xen/arch/arm/arm32/head.S b/xen/arch/arm/arm32/head.S
> index 13cfc837d39c..7a906167efca 100644
> --- a/xen/arch/arm/arm32/head.S
> +++ b/xen/arch/arm/arm32/head.S
> @@ -79,7 +79,7 @@
> * r9 - paddr(start)
> * r10 - phys offset
> * r11 - UART address
> - * r12 - is_secondary_cpu
> + * r12 -
> * r13 - SP
> * r14 - LR
> * r15 - PC
> @@ -166,8 +166,6 @@ past_zImage:
> #endif
> PRINT("- Boot CPU booting -\r\n")
>
> - mov r12, #0 /* r12 := is_secondary_cpu */
> -
> bl check_cpu_mode
> bl cpu_init
> bl create_page_tables
> @@ -206,8 +204,6 @@ GLOBAL(init_secondary)
> adr r9, start /* r9 := paddr (start) */
> sub r10, r9, r0 /* r10 := phys-offset */
>
> - mov r12, #1 /* r12 := is_secondary_cpu */
> -
> mrc CP32(r1, MPIDR)
> bic r7, r1, #(~MPIDR_HWID_MASK) /* Mask out flags to get CPU ID */
>
> --
> 2.32.0
>
>
|