View Single Post
Old 08-14-02, 01:47 PM   #6
Registered User
Join Date: Aug 2002
Location: France
Posts: 6


I've spent some time trying to get this running...
#error is a problem, and I did two things :
- apply the mentionned patch,
but this still leas to error @ insmod :
- cli,
- save_flags
- restore_flags
are no more present in Linux-2.5.30.

So, I did another correction :
1 - I've added :
#include <linux/spinlock.h>

static spinlock_t NV_lock = SPIN_LOCK_UNLOCKED;
after all the #include, and I changed :
unsigned int
osCli(unsigned int flags)
/* save_flags(flags);
cli(); */
spin_lock_irqsave(&NV_lock, flags);
return flags;

unsigned int
osSti(unsigned int flags)
/* restore_flags(flags); */
spin_unlock_irqrestore(&NV_lock, flags);
return flags;

This is now compiling and insmod'ing, but when starting X,
the screen goes black and the machine freezes...

Ctrl-Alt-Sup is the way back to normality :-(

If someone has some other clue, U'r welcome !

rol is offline   Reply With Quote