public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] patching sys_call_table from a module
@ 2001-07-03 13:45 chas williams
  2001-07-03 20:03 ` chas williams
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: chas williams @ 2001-07-03 13:45 UTC (permalink / raw)
  To: linux-ia64

afs patches the sys_call_table to provide support for various functions.
the existing doesnt seem to work right.  i figured out that the ia64
calls are offset by 1024.  but know i have a different problem:

during insmod i printk what i patch the table with:

sys_call_table[__NR_afs_syscall - 1024] = a000000000125bd0
afs_syscall a000000000125bd0

however, i get the following ksymoops when i try to use that syscall:

>>IP;  a000000000125bd1 <[libafs-2.4.5].bss.end+7e32/3fffffffffee2261>   <==>>b0;  e000000004415ce0 <ia64_ret_from_syscall+0/20>
>>b6;  e000000004402f60 <demine_args+0/a0>
>>b7;  e0000000044157b0 <ia64_switch_to+b0/120>
Trace; e00000000441a080 <show_stack+40/c0>
Trace; e00000000441a840 <show_regs+740/780>
Trace; e00000000442b830 <die_if_kernel+70/140>
Trace; e00000000442c510 <ia64_illegal_op_fault+130/220>
Trace; e000000004403ed0 <dispatch_illegal_op_fault+2b0/400>

so yes, a000000000125bd0 does seem to be [libafs-2.4.5].bss.end+7e32
however, if i look at the loadmap from the insmod, i see:

a0000000000f59e0 T afs_syscall

would this have anything to do with -mconstant-gp?


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-07-04 21:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-03 13:45 [Linux-ia64] patching sys_call_table from a module chas williams
2001-07-03 20:03 ` chas williams
2001-07-03 20:44 ` Don Dugger
2001-07-03 20:53 ` chas williams
2001-07-03 21:04 ` chas williams
2001-07-03 21:16 ` Don Dugger
2001-07-03 21:22 ` Don Dugger
2001-07-03 22:58 ` Luck, Tony
2001-07-04 15:31 ` chas williams
2001-07-04 21:34 ` Chas Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox