* [PATCH] ppc64: fix reloc_offset comment
@ 2005-05-06 3:35 Paul Mackerras
0 siblings, 0 replies; only message in thread
From: Paul Mackerras @ 2005-05-06 3:35 UTC (permalink / raw)
To: akpm, torvalds; +Cc: apw, anton, linux-kernel
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
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
---
===== arch/ppc64/kernel/misc.S 1.98 vs edited =====
--- 1.98/arch/ppc64/kernel/misc.S 2005-01-14 14:56:04 -05:00
+++ edited/arch/ppc64/kernel/misc.S 2005-03-22 21:35:48 -05:00
@@ -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.
*/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-05-06 4:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-06 3:35 [PATCH] ppc64: fix reloc_offset comment Paul Mackerras
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®