Check for SYS/GL during library init. Reason is that
[AROS.git] / rom / kernel / spintrylock.c
blob1140f949379c23cceb93800d3bafd18a81523113
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>
12 #include <kernel_base.h>
14 /*****************************************************************************
16 NAME */
17 #include <proto/kernel.h>
19 AROS_LH2(spinlock_t *, KrnSpinTryLock,
21 /* SYNOPSIS */
22 AROS_LHA(spinlock_t *, lock, A0),
23 AROS_LHA(ULONG, mode, D0),
25 /* LOCATION */
26 struct KernelBase *, KernelBase, 42, Kernel)
28 /* FUNCTION
30 INPUTS
32 RESULT
34 NOTES
36 EXAMPLE
38 BUGS
40 SEE ALSO
42 INTERNALS
44 ******************************************************************************/
46 AROS_LIBFUNC_INIT
48 /* The implementation of this function is architecture-specific */
49 return lock;
51 AROS_LIBFUNC_EXIT