Bump required catalog version to 2. Don't build
[AROS.git] / arch / arm-native / kernel / spinislocked.c
blobdfc229ad46df0a52ddad2355840cc893d644c74d
1 /*
2 Copyright © 2015, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/types/spinlock_s.h>
7 #include <aros/kernel.h>
8 #include <aros/libcall.h>
10 #include <kernel_base.h>
12 #include <proto/kernel.h>
14 AROS_LH1(int, KrnSpinIsLocked,
15 AROS_LHA(spinlock_t *, lock, A0),
16 struct KernelBase *, KernelBase, 41, Kernel)
18 AROS_LIBFUNC_INIT
20 if (lock->lock == 0)
21 return 0;
22 else
23 return 1;
25 AROS_LIBFUNC_EXIT