right  Talk To Us!

Is there anything which must be considered when building linux drivers?

Binary modules for 2.6 kernels have been compiled with REGPARM enabled. This is the default kernel configuration on Fedora, RedHat and SuSE distributions. If the drivers are being loaded on any other distribution, the kernel *MUST* be compiled with the REGPARM option turned on. Failure to do so will cause a kernel panic when loading the drivers.

The relevant 2.6 kernel options that the Aculab drivers are built with are:

  1. 4k stacks,
  2. -mregparm=3,
  3. -mpreferred-stack-boundary=2