headers/bsd: Add sys/queue.h.
[haiku.git] / src / system / boot / arch / arm / kernel_stubs.cpp
blob817b779e2cfc9ef6415c25d4707af83d6a437bdb
1 /*
2 * Copyright 2012 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Michael Lotz, mmlr@mlotz.ch
7 */
9 // This file just collects stubs that allow kernel sources to be used in the
10 // bootloader more easily.
12 #include <OS.h>
13 #include <lock.h>
14 #include <arch_config.h>
17 extern "C" bool
18 in_command_invocation()
20 return false;
24 extern "C" void
25 abort_debugger_command()
30 extern "C" char
31 kgetc()
33 return -1;
37 extern "C" status_t
38 _mutex_lock(mutex*, void*)
40 return B_OK;
44 extern "C" void
45 _mutex_unlock(mutex*)
50 #ifdef ATOMIC_FUNCS_ARE_SYSCALLS
52 /* needed by packagefs */
53 extern "C" int32
54 atomic_add(vint32 *value, int32 addValue)
56 int32 old = *value;
57 *value += addValue;
58 return old;
61 #endif /*ATOMIC_FUNCS_ARE_SYSCALLS*/