To: None <port-arm@netbsd.org>
From: Hiroyuki Bessho <bsh@grotto.jp>
List: port-arm
Date: 09/19/2002 02:09:14
Hi,
Is it ok to modify sys/arch/arm/include/cpu.h as in following
patch?
I want to move prototype of atomic_{set,clear}_bit() so that I can
use them in inline functions that are defined in a header file which
is included from <machine/intr.h>.
I've checked kernels for evbarm/INTEGRATOR, hpcarm/IPAQ, and
acorn26 compiled ok with this change.
--
bsh.
===================================================================
RCS file: /usr/netbsd-master-cvs/syssrc/sys/arch/arm/include/cpu.h,v
retrieving revision 1.29
diff -u -u -r1.29 cpu.h
--- cpu.h 2002/08/16 15:25:54 1.29
+++ cpu.h 2002/09/14 15:52:27
@@ -81,6 +81,12 @@
#include <arm/cpuconf.h>
+#ifndef _LOCORE
+/* locore.S */
+void atomic_set_bit __P((u_int *address, u_int setmask));
+void atomic_clear_bit __P((u_int *address, u_int clearmask));
+#endif
+
#include <machine/intr.h>
#ifndef _LOCORE
#include <sys/user.h>
@@ -258,10 +264,6 @@
/*
* Random cruft
*/
-
-/* locore.S */
-void atomic_set_bit __P((u_int *address, u_int setmask));
-void atomic_clear_bit __P((u_int *address, u_int clearmask));
/* cpuswitch.S */
struct pcb;