configure: when detecting linux include directory for kernel compiler use target...
[AROS.git] / rom / kernel / spinlock.c
blobcd0f2090ce9bd841234f965af823162b41a55858
1 /*
2 Copyright © 2015, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 */
8 #include <aros/types/spinlock_s.h>
9 #include <aros/kernel.h>
10 #include <aros/libcall.h>
11 #include <utility/hooks.h>
13 #include <kernel_base.h>
15 /*****************************************************************************
17 NAME */
18 #include <proto/kernel.h>
20 AROS_LH3(spinlock_t *, KrnSpinLock,
22 /* SYNOPSIS */
23 AROS_LHA(spinlock_t *, lock, A1),
24 AROS_LHA(struct Hook *, failhook, A0),
25 AROS_LHA(ULONG, mode, D0),
27 /* LOCATION */
28 struct KernelBase *, KernelBase, 43, Kernel)
30 /* FUNCTION
32 INPUTS
33 lock - spinlock to lock
34 failhook - called if the lock is already held
35 mode - type of lock to obtain.
37 RESULT
38 returns a pointer to the spinlock "handle".
40 NOTES
42 EXAMPLE
44 BUGS
46 SEE ALSO
48 INTERNALS
50 ******************************************************************************/
52 AROS_LIBFUNC_INIT
54 /* The implementation of this function is architecture-specific */
55 return lock;
57 AROS_LIBFUNC_EXIT