__cpu_simple_lock_t changed to unsigned char on arm kernels almost
two years ago. Catchup here also, although it seems nothing uses acorn32 kernels with MULTIPROCESSOR.
This commit is contained in:
parent
af2c2b73f3
commit
77195e2b31
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: lock.h,v 1.7 2008/04/28 20:23:09 martin Exp $ */
|
||||
/* $NetBSD: lock.h,v 1.8 2008/10/12 20:52:56 pooka Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
|
||||
@ -41,10 +41,10 @@
|
||||
#include <arm/cpufunc.h>
|
||||
|
||||
static __inline int
|
||||
__swp(int __val, volatile int *__ptr)
|
||||
__swp(int __val, volatile unsigned char *__ptr)
|
||||
{
|
||||
|
||||
__asm volatile("swp %0, %1, [%2]"
|
||||
__asm volatile("swpb %0, %1, [%2]"
|
||||
: "=r" (__val) : "r" (__val), "r" (__ptr) : "memory");
|
||||
return __val;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user