From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <42f9a57ee054d10a35512caeab5e1f71.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199705231420.KAA08017@zeus.achilles.net> Date: 23 May 1997 10:17:07 -0400 From: Derek Atkins Subject: Re: syscalls in modules 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 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