you also might be sure you are doing a "make clean".  Once you compile
a non-smp kernel, and then switch to SMP, the "make" might not recompile
every source file.  ie do:

make oldconfig; make dep; make clean; make install

and see if you get errors.  If you do, reinstall the source as something
has gone wrong...

Robert Hyatt                    Computer and Information Sciences
[EMAIL PROTECTED]               University of Alabama at Birmingham
(205) 934-2213                  115A Campbell Hall, UAB Station 
(205) 934-5473 FAX              Birmingham, AL 35294-1170

On Tue, 20 Jul 1999, Kurt Garloff wrote:

> On Mon, Jul 19, 1999 at 05:41:30PM -0700, Raj, Ashok wrote:
> > Hello.
> > 
> > Iam trying to compile my module for SMP support but having problems with
> > some comile flags.
> > 
> > iam defining __SMP__ is there something else i need to define?
> > 
> > iam seeing NO_PROC_ID, current undefined...
> > 
> > am i missing any switches?
> 
> Try the options the kernel uses:
> gcc -D__KERNEL__ -I/usr/src/linux/include  -Wall -Wstrict-prototypes -O2
>  -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -DCPU=486
>  -DMODULE -D__SMP__ -c YOURMODULE.c -o YOURMODULE.o
> 
> You may use -fschedule-insns2 -mpentiumpro -DCPU=686 instead of
> -fno-strength-.... if compiling a 2.2 kernel for 686 with egcs-1.1.x
> 
> In 2.2, your the kernel configuration now includes the SMP switch:
> CONFIG_SMP, but you still should use -D__SMP__
> 
> Regards,
> -- 
> Kurt Garloff  <[EMAIL PROTECTED]>           SuSE GmbH, N�rnberg, FRG
> Linux kernel development;      SCSI drivers: tmscsim(DC390), DC395
> 

-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]

Reply via email to