From: Chas Williams <chas@cmf.nrl.navy.mil>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] patching sys_call_table from a module
Date: Wed, 04 Jul 2001 21:34:11 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590693005819@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590693005808@msgid-missing>
>You might be able to workaround this for now by providing a stub
>function in your module that sets "gp" and calls your real function.
i took at look at the what the modutil did when loading kernel modules.
the following stub seems to work with one small problem:
GLOBAL_ENTRY(afs_syscall_stub)
mov r8=-1
movl r15=0xa000000000034610 /* afs_syscall */;;
ld8 r16=[r15],8
mov r14=gp;;
ld8 gp=[r15]
mov b6=r16
br.few b6;;
END(afs_syscall_stub)
0xa000000000034610 is the descriptor for afs_syscall. if i use
movl r15,afs_syscall;; instead, insmod fails to load the module:
insmod: obj_ia64.c:258: obj_ia64_ins_imm64: Assertion `slot = 1' failed.
i guess i dont know afs_syscall until the module is actually loaded?
prev parent reply other threads:[~2001-07-04 21:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-ia64-105590693005819@msgid-missing \
--to=chas@cmf.nrl.navy.mil \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox