Skip to contentSkip to conversation

ppc64: fix reloc_offset comment

PATCH New Paul Mackerras 1 participant 1 message May 6, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc64: fix reloc_offset comment

The code in reloc_offset is actually subtracting the address in the link register from the address calculated by the linker. Perhaps the extended mnemonic sub' replaced an original subf' and the comment just did not get updated.

bl 1f
1: mflr r3

        LOADADDR(r4,1b)
        sub     r3,r4,r3

---
===== arch/ppc64/kernel/misc.S 1.98 vs edited =====

arch/ppc64/kernel/misc.S +1 -1
@@ -32,7 +32,7 @@
 	.text
 
 /*
- * Returns (address we're running at) - (address we were linked at)
+ * Returns (address we were linked at) - (address we are running at)
  * for use before the text and data are mapped to KERNELBASE.
  */