From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <81aadb7ee2c0cca1b61ea43271dd6766.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199705221959.TAA15764@whale.st.usm.edu> Date: 22 May 1997 15:53:57 -0400 From: Derek Atkins Subject: Re: LKMs and installing syscalls on Linux/alpha 2.0.27 (resend) Andreas Johansson writes: > To me it seems like a bug in Linux/alpha, see below. Not surprising... > So it seems gp is f*cked up (not loaded in ret_from_sys_call()). I remember > a similar problem with the nfs module some time ago (concerning > kernel_thread()). I even have the patch for that problem left: That sounds reasonable... [patch removed] I applied what of this patch I could to the 2.0.27 kernel.. No problems here. But this didn't solve the problem (not surprising -- it shouldn't have solved it). > My guess as to fixing your problem is this small patch: > > ----------------------------------------------------------------------- > --- arch/alpha/kernel/entry.S.orig Thu May 22 17:38:29 1997 > +++ arch/alpha/kernel/entry.S Thu May 22 17:41:24 1997 > @@ -521,6 +521,7 @@ > cmovne $26,0,$19 /* $19 = 0 => non-restartable */ > + ldgp $29,0($27) > /* check bottom half interrupts */ > bne $1,ret_from_handle_bh > ldq $3,bh_active > ldq $4,bh_mask > and $3,$4,$2 > ----------------------------------------------------------------------- This unfortunately sends the machine into a looping sereis of oopses. So, no, this didn't work. However... > I have no idea if ret_from_sys_call looks the same in 2.0.27, but if not, > just try to add > ldgp $29,0($27) > in the beginning of the function. ...I tried following this suggestion by putting the ldgp before the cmovne... But again it just looped in a series of oopses. So, thanks for the idea, but it didn't work. Any other ideas? > I am only guessing here, I am not pretending to be an expert on kernel > issues. Try this patch on your own risk, I haven't even tried it myself :) > If you are having great difficulcy compiling your own kernel I could be > persuaded to try the patch myself. Thats ok.. I appreciate the help. To whom should I report this bug to get it put into 2.0.31/2.1.x as appropriate??? > I think you should add the -mno-fp-regs compile flag. This is used on all > modules in the kernel, and I have had modules malfunctioning without it. > This does not solve your problem though. Shouldn't matter... I suspect that all -mno-fp-regs does is speed things up a bit, rather than functionally change anything. -derek -- 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