Re: Inconsistent "#ifdef __KERNEL__" on different architectures

Philip Blundell (philb@gnu.org)
Sun, 27 May 2001 23:10:00 +0100


--==_Exmh_-1121109888P
Content-Type: text/plain; charset=us-ascii

>--- include/asm-arm/atomic.h.old Sun May 27 22:30:58 2001
>+++ include/asm-arm/atomic.h Sun May 27 22:58:20 2001
>@@ -12,6 +12,7 @@
> * 13-04-1997 RMK Made functions atomic!
> * 07-12-1997 RMK Upgraded for v2.1.
> * 26-08-1998 PJB Added #ifdef __KERNEL__
>+ * 27-05-2001 APB Removed #ifdef __KERNEL__
> */
> #ifndef __ASM_ARM_ATOMIC_H
> #define __ASM_ARM_ATOMIC_H
>@@ -30,7 +31,6 @@

This is no good. The ARM kernel just doesn't provide any atomic primitives
that will work in user space. If you want atomicity you have to use
libpthread.

p.

--==_Exmh_-1121109888P
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Content-Type: text/plain; charset=us-ascii

>--- include/asm-arm/atomic.h.old Sun May 27 22:30:58 2001
>+++ include/asm-arm/atomic.h Sun May 27 22:58:20 2001
>@@ -12,6 +12,7 @@
> * 13-04-1997 RMK Made functions atomic!
> * 07-12-1997 RMK Upgraded for v2.1.
> * 26-08-1998 PJB Added #ifdef __KERNEL__
>+ * 27-05-2001 APB Removed #ifdef __KERNEL__
> */
> #ifndef __ASM_ARM_ATOMIC_H
> #define __ASM_ARM_ATOMIC_H
>@@ -30,7 +31,6 @@

This is no good. The ARM kernel just doesn't provide any atomic primitives
that will work in user space. If you want atomicity you have to use
libpthread.

p.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Exmh version 2.1.1 10/15/1999 (debian)

iD8DBQE7EXs4VTLPJe9CT30RAvUbAKDaa1jAUofWYw0z0u808GhOfWEj5QCfW2j+
n/gYS07GAolG6ISDUbOKDnY=
=2+Qj
-----END PGP SIGNATURE-----

--==_Exmh_-1121109888P--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/