Skip to contentSkip to conversation

ARM: add register documentation for __enable_mmu

PATCH New Russell King - ARM Linux 1 participant 1 message Oct 4, 2010 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 10/10 ARM: add register documentation for __enable_mmu

Add some additional documentation on register usage in __enable_mmu to help complete the overall picture.

---
 arch/arm/kernel/head.S |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
arch/arm/kernel/head.S +10 -0
index ed9ebe5..c11dd14 100644
@@ -303,6 +303,13 @@ __secondary_data:
  * Setup common bits before finally enabling the MMU.  Essentially
  * this is just loading the page table pointer and domain access
  * registers.
+ *
+ *  r0  = cp#15 control register
+ *  r1  = machine ID
+ *  r2  = atags pointer
+ *  r4  = page table pointer
+ *  r9  = processor ID
+ *  r13 = *virtual* address to jump to upon completion
  */
 __enable_mmu:
 #ifdef CONFIG_ALIGNMENT_TRAP
@@ -335,6 +342,9 @@ ENDPROC(__enable_mmu)
  * mailing list archives BEFORE sending another post to the list.
  *
  *  r0  = cp#15 control register
+ *  r1  = machine ID
+ *  r2  = atags pointer
+ *  r9  = processor ID
  *  r13 = *virtual* address to jump to upon completion
  *
  * other registers depend on the function called upon completion
Signature · 1 line
1.6.2.5