Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* ISDN/Kernel 2.1.85
@ 1998-02-12  9:26 Hirsim{ki Mika
  0 siblings, 0 replies; only message in thread
From: Hirsim{ki Mika @ 1998-02-12  9:26 UTC (permalink / raw)


I recently got a 2.1.85 kernel compiled and running
in a 164LX box and my most serious problem so far 
has been (and still is) with the ISDN-support.

I have a Teles 16.3 (ISA) ISDN-card and it worked
fine in an intel-based linux box, so this really
shouldn't be a hardware problem. 

If I compile 2.1.85 from unmodified sources, "make
modules" will fail because of an internal compiler
error number 6. Reducing optimization level from
-O2 to -O1 seems to fix this problem, and the make
finishes OK. 

A number of "pointer to int" warnings are given,
though. Then, when I'm trying to "modprobe hisax",
with isdn and all other related modules loaded
and with proper io, irq and type set, I get a 
oops -1, and a message saying that kernel pager
is somehow confused.

I've traced the problem to a part of code found
in fsm.c, hisax.h and isdnl2.c. There is a pointer:

int *jumpmatrix;

which, as far as I can understand, is used to store 
pointers to functions. These pointers are later 
recovered and called. Calling them (in FsmEvent(), 
in file fsm.c) is what trips the kernel pager and,
frustratingly, leaves the hisax-module partially
loaded ("uninitialized") so that it can't be removed 
with rmmod.  
 
Apparently storing functions' pointers into an int-
sized array and calling them later is not very 
healthy. ;) So, how can I fix this? Changing the
jumpmatrix into "long int *" didn't help. Loading
this kind of module only froze the system.

--
Mika Hirsimaki

-- 
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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-02-12  9:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-02-12  9:26 ISDN/Kernel 2.1.85 Hirsim{ki Mika

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox