2 Copyright © 2015, The AROS Development Team. All rights reserved.
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 /*****************************************************************************
18 #include <proto/kernel.h>
20 AROS_LH3(spinlock_t
*, KrnSpinLock
,
23 AROS_LHA(spinlock_t
*, lock
, A1
),
24 AROS_LHA(struct Hook
*, failhook
, A0
),
25 AROS_LHA(ULONG
, mode
, D0
),
28 struct KernelBase
*, KernelBase
, 43, Kernel
)
33 lock - spinlock to lock
34 failhook - called if the lock is already held
35 mode - type of lock to obtain.
38 returns a pointer to the spinlock "handle".
50 ******************************************************************************/
54 /* The implementation of this function is architecture-specific */