Skip to contentSkip to conversation

xen/arm32: head: Update the documentation for register r12

PATCH In review Julien Grall 2 participants 3 messages Feb 28, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arm32: head: Update the documentation for register r12

From: Julien Grall <[email protected]>

Since commit 54c4ae18d158 ("xen/arm32: head: Rework and document launch()"), the boot code is not using the register r12.

So update the documentation to show r12 has no specific purpose.

---
 xen/arch/arm/arm32/head.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/arm/arm32/head.S +1 -1
index 13cfc837d39c..78274a1c034f 100644
@@ -79,7 +79,7 @@
  *   r9  - paddr(start)
  *   r10 - phys offset
  *   r11 - UART address
- *   r12 - is_secondary_cpu
+ *   r12 -
  *   r13 - SP
  *   r14 - LR
  *   r15 - PC
Signature · 1 line
2.32.0
#1 lore raw

Hi Julien,

Quoted 18 lines · Julien Grall

From: Julien Grall <[email protected]>

Since commit 54c4ae18d158 ("xen/arm32: head: Rework and document launch()"), the boot code is not using the register r12.

So update the documentation to show r12 has no specific purpose.

---
 xen/arch/arm/arm32/head.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/arm/arm32/head.S +0 -0
index 13cfc837d39c..78274a1c034f 100644

xen/arch/arm/arm32/head.S line 85

Quoted 8 lines
xen/arch/arm/arm32/head.S +1 -1
@@ -79,7 +79,7 @@
  *   r9  - paddr(start)
  *   r10 - phys offset
  *   r11 - UART address
- *   r12 - is_secondary_cpu
+ *   r12 -
  *   r13 - SP
  *   r14 - LR
  *   r15 - PC

FWICS, there are still 2 instructions in this file assigning #0 or #1 to r12 and each of them has a comment "/* r12 := is_secondary_cpu */".

So I have 2 questions:
1. Do we even need these instructions? (I do not think so)
2. If we need these instructions, do we need these comments?

Cheers,
Michal

#2 lore raw
Quoted 1 line · Michal Orzel

Hi Julien,

Hi Michal,

Thank you for the review.

Quoted 25 lines · Julien Grall
Quoted 23 lines

From: Julien Grall <[email protected]>

Since commit 54c4ae18d158 ("xen/arm32: head: Rework and document launch()"), the boot code is not using the register r12.

So update the documentation to show r12 has no specific purpose.

---
  xen/arch/arm/arm32/head.S | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/arm/arm32/head.S +1 -1
index 13cfc837d39c..78274a1c034f 100644
@@ -79,7 +79,7 @@
   *   r9  - paddr(start)
   *   r10 - phys offset
   *   r11 - UART address
- *   r12 - is_secondary_cpu
+ *   r12 -
   *   r13 - SP
Quoted 8 lines

xen/arch/arm/arm32/head.S line 85

Quoted 3 lines
xen/arch/arm/arm32/head.S +0 -0
   *   r14 - LR
   *   r15 - PC

FWICS, there are still 2 instructions in this file assigning #0 or #1 to r12 and each of them has a comment "/* r12 := is_secondary_cpu */". >
So I have 2 questions:
1. Do we even need these instructions? (I do not think so)

We don't need them. I will drop them and respin the patch.

Cheers,

Signature · 1 line
Julien Grall