revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-pc / kernel / spinislocked.c
blob7b2c75224e9ca903f2c5e48b7ba1ae478fd22c48
1 /*
2 Copyright © 2017, 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>
11 #include <kernel_debug.h>
13 #include <proto/kernel.h>
15 #define D(x)
17 AROS_LH1(int, KrnSpinIsLocked,
18 AROS_LHA(spinlock_t *, lock, A0),
19 struct KernelBase *, KernelBase, 50, Kernel)
21 AROS_LIBFUNC_INIT
23 D(bug("[Kernel] %s(0x%p)\n", __func__, lock));
25 if (lock->lock == SPINLOCK_UNLOCKED)
26 return (int)FALSE;
27 else
28 return (int)TRUE;
30 AROS_LIBFUNC_EXIT