From: Derek Atkins <warlord@MIT.EDU>
Subject: Re: syscalls in modules
Date: 23 May 1997 10:17:07 -0400 [thread overview]
Message-ID: <42f9a57ee054d10a35512caeab5e1f71.axp-list@archive.invalid> (raw)
Thanks, this fixed the problem. I can now load syscalls into the
kernel and they work properly. Thanks!!!
So, to whom do I need to contact to get this patch into the mainline
Linux kernel. Specifically, I'd like to see this make it into 2.0.31
(assuming there is a 2.0.31) as well as the 2.1 kernels?
-derek
Richard Henderson <richard@stommel.tamu.edu> writes:
>
> Bother. I forgot to cc you on the reply I just made. Basically
> Andreas was right, but the patch was wrong. Try this:
>
> --- entry.S.orig Thu May 22 15:31:23 1997
> +++ entry.S Thu May 22 15:32:19 1997
> @@ -512,6 +512,7 @@
> beq $4,1f
> ldq $27,0($5)
> 1: jsr $26,($27),do_entSys
> + ldgp $29,0($26)
> blt $0,syscall_error /* the call failed */
> stq $0,0($30)
> stq $31,72($30) /* a3=0 => no error */
>
> And on a related point, you must use -fno-fp-regs, since the
> kernel does not save them on kernel entry and gcc has a habit
> of using them to avoid spilling int regs when it just needs
> to move data. Which is ordinarily a nice win, but...
>
> And similarly, I don't know if you are doing a 2.1 version yet
> but there you must use -ffixed-8 as well, as we co-opt $8 as
> a global register variable.
>
>
> r~
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL N1NWH
warlord@MIT.EDU PGP key available
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1997-05-23 14:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-05-23 14:17 Derek Atkins [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-05-28 17:48 syscalls in modules Derek Atkins
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox