Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/include For consistency, define the _KERNEL ver...



details:   https://anonhg.NetBSD.org/src/rev/9e594b8fe993
branches:  trunk
changeset: 782897:9e594b8fe993
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sun Nov 25 20:40:30 2012 +0000

description:
For consistency, define the _KERNEL version of __swp() using a non-volatile
type, similar to how it is defined in non-KERNEL

Fixes the 'build.sh release' for evbarm-{eb,el}

diffstat:

 sys/arch/arm/include/lock.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 1bb36fb8c210 -r 9e594b8fe993 sys/arch/arm/include/lock.h
--- a/sys/arch/arm/include/lock.h       Sun Nov 25 19:52:05 2012 +0000
+++ b/sys/arch/arm/include/lock.h       Sun Nov 25 20:40:30 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lock.h,v 1.21 2012/08/31 17:29:08 matt Exp $   */
+/*     $NetBSD: lock.h,v 1.22 2012/11/25 20:40:30 pgoyette Exp $       */
 
 /*-
  * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
 #endif
 
 #if defined(_KERNEL)
-static __inline __cpu_simple_lock_t
+static __inline unsigned char
 __swp(__cpu_simple_lock_t __val, volatile __cpu_simple_lock_t *__ptr)
 {
 #ifdef _ARM_ARCH_6



Home | Main Index | Thread Index | Old Index