Re: SMP compile problem in locks....

Kurt Garloff (garloff@suse.de)
Tue, 20 Jul 1999 12:15:18 +0200


--ZwgA9U+XZDXt4+m+
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

On Mon, Jul 19, 1999 at 05:41:30PM -0700, Raj, Ashok wrote:
> Hello.
>=20
> Iam trying to compile my module for SMP support but having problems with
> some comile flags.
>=20
> iam defining __SMP__ is there something else i need to define?
>=20
> iam seeing NO_PROC_ID, current undefined...
>=20
> 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=3D486
-DMODULE -D__SMP__ -c YOURMODULE.c -o YOURMODULE.o

You may use -fschedule-insns2 -mpentiumpro -DCPU=3D686 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,
--=20
Kurt Garloff <garloff@suse.de> SuSE GmbH, N=FCrnberg, FRG
Linux kernel development; SCSI drivers: tmscsim(DC390), DC395

--ZwgA9U+XZDXt4+m+
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i

iQCVAwUBN5RMNhaQN/7O/JIVAQE3iQQAhjCXAEyyIgq60sDz7YqYQnfbR8F+7K2/
TvFV2eKRvnLMmaaTs9kC8AcdRmyVPoDbqGjZMym25T3qADGRsFPs21nj7Yr81MJ+
1JvmqcIk6aONsORnCfvidumOfTvkBCiIcbhyJVrAALk0zoLPHFV6KRZPxF4OTHgr
WwTBKxAUpsM=
=F+X1
-----END PGP SIGNATURE-----

--ZwgA9U+XZDXt4+m+--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/