revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-pc / kernel / spininit.c
blob6be10adbffcfdaf158f508da60f2af9359e45850
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(void, KrnSpinInit,
18 AROS_LHA(spinlock_t *, lock, A0),
19 struct KernelBase *, KernelBase, 49, Kernel)
21 AROS_LIBFUNC_INIT
23 D(bug("[Kernel] %s(0x%p)\n", __func__, lock));
25 lock->lock = SPINLOCK_UNLOCKED;
26 lock->s_Owner = NULL;
28 return;
30 AROS_LIBFUNC_EXIT