public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Don Dugger <n0ano@valinux.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] patching sys_call_table from a module
Date: Tue, 03 Jul 2001 21:16:35 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590693005812@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590693005808@msgid-missing>

Chas-

Looking back at your last message I think you are compiling your
module with the wrong flags.  My kernel uses the flag
`-mconstant-gp' which I didn't see in your flags list.  In general,
you must compile your modules with the same flags that were
used to compile the kernel.

On Tue, Jul 03, 2001 at 04:53:56PM -0400, chas williams wrote:
> >where the first element truly points to the function and the second
> >element contains the GP value for the function.
> 
> ok. i see. so i can now set the syscall table to the 'real' location
> for the afs_syscall routine.  however, i still run into trouble
> when invoking the syscall:
> 
> >>IP;  a000000000034250 <[mysyscall].text.end+11/31>   <==> >>b0;  a0000000000340e0 <[mysyscall].text.start+20/40>
> >>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; e000000004443fc0 <ia64_do_page_fault+760/800>
> Trace; e000000004415d00 <ia64_leave_kernel+0/2a0>
> Trace; a000000000034250 <[mysyscall].text.end+11/31>
> Trace; a0000000000340e0 <[mysyscall].text.start+20/40>
> Trace; a0000000000340e0 <[mysyscall].text.start+20/40>
> 
> i suspect that my afs_syscall() is trying to use the 'gp' which is
> probably not setup?
> 
> _______________________________________________
> Linux-IA64 mailing list
> Linux-IA64@linuxia64.org
> http://lists.linuxia64.org/lists/listinfo/linux-ia64

-- 
Don Dugger
"Censeo Toto nos in Kansa esse decisse." - D. Gale
n0ano@valinux.com
Ph: 303/938-9838


  parent reply	other threads:[~2001-07-03 21:16 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 [this message]
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

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-105590693005812@msgid-missing \
    --to=n0ano@valinux.com \
    --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