regparm issue on RHEL4 kernel with LiS 2.18.3

Kevin K <[email protected]> Mon, 27 Mar 2006 19:44:01 -0600
Newsgroups gmane.linux.kernel.streams
Message-ID <[email protected]>
Has anyone else noticed a problem with the Redhat Kernel compiled  
with the default register parameters?

I'm looking at porting a legacy set of modules written for LiS 2.12  
and the 2.4.18 kernel to the Red Hat 2.6.9-34 kernel.

The initial problem I encountered was that the open routine in the  
module was getting garbage in it's parameter.  I enabled debug  
output, and it showed that, just before it called my routine, it had  
the right parameters.

Finally, I ended up recompiling the kernel again with regparms turned  
off, and recompiled LiS correctly.  I required a modification to the  
Makefile, since the configure script didn't retrieve the  
configuration options correctly, then it finally started to work.

Note, I haven't tried the most recent version of Fast Streams yet.  I  
couldn't get the streams module to load successfully in the January  
version.  Unfortunately, I didn't save any of the error output.  I  
may give it another try in the not to distant future, if only because  
if it works, it will save a considerable amount of memory.  It is  
hard to believe how much memory the current version of streams is  
taking up :)