* [PATCH v2] ia64: fix comment bug of ia64_plt_template
@ 2010-11-22 3:33 Toshiyuki Okajima
0 siblings, 0 replies; only message in thread
From: Toshiyuki Okajima @ 2010-11-22 3:33 UTC (permalink / raw)
To: linux-ia64
Hi.
I found another comment bug in the same source.
Please fix it.
-------------------------------------------------------------------
From: Toshiyuki Okajima <toshi.okajima@jp.fujitsu.com>
This is a patch which fixes a comment bug in arch/ia64/kernel/module.c:
212 struct plt_entry {
213 /* Three instruction bundles in PLT. */
^^^^^
214 unsigned char bundle[2][16];
215 };
216
217 static const struct plt_entry ia64_plt_template = {
218 {
219 {
220 0x04, 0x00, 0x00, 0x00, 0x01, 0x00, /* [MLX] nop.m 0 */
221 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, /* movl gp=TARGET_GP */
222 0x00, 0x00, 0x00, 0x60
223 },
224 {
225 0x05, 0x00, 0x00, 0x00, 0x01, 0x00, /* [MLX] nop.m 0 */
226 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* brl.many gp=TARGET_GP */
^^^^^^^^^^^^
227 0x08, 0x00, 0x00, 0xc0
228 }
229 }
230 };
The correct comment is:
/* Three instruction bundles in PLT. */ => /* Two instruction bundles in PLT. */
/* brl.many gp=TARGET_GP */ => /* brl.many TARGET_IP */
Signed-off-by: Toshiyuki Okajima <toshi.okajima@jp.fujitsu.com>
---
arch/ia64/kernel/module.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/ia64/kernel/module.c b/arch/ia64/kernel/module.c
index 1481b0a..8b30b25 100644
--- a/arch/ia64/kernel/module.c
+++ b/arch/ia64/kernel/module.c
@@ -210,7 +210,7 @@ apply_imm21b (struct module *mod, struct insn *insn, uint64_t val)
#if USE_BRL
struct plt_entry {
- /* Three instruction bundles in PLT. */
+ /* Two instruction bundles in PLT. */
unsigned char bundle[2][16];
};
@@ -223,7 +223,7 @@ static const struct plt_entry ia64_plt_template = {
},
{
0x05, 0x00, 0x00, 0x00, 0x01, 0x00, /* [MLX] nop.m 0 */
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* brl.many gp=TARGET_GP */
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* brl.many TARGET_IP */
0x08, 0x00, 0x00, 0xc0
}
}
--
1.5.5.6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-22 3:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-22 3:33 [PATCH v2] ia64: fix comment bug of ia64_plt_template Toshiyuki Okajima
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.