2 * Copyright 2007, Ingo Weinhold, bonefish@cs.tu-berlin.de.
3 * Distributed under the terms of the MIT License.
6 #include "fssh_kernel_export.h"
13 #include "fssh_errors.h"
17 fssh_spawn_kernel_thread(fssh_thread_func function
, const char *threadName
,
18 int32_t priority
, void *arg
)
25 fssh_user_memcpy(void *dest
, const void *source
, fssh_size_t length
)
27 memcpy(dest
, source
, length
);
33 fssh_dprintf(const char *format
, ...)
36 va_start(args
, format
);
38 vprintf(format
, args
);
45 fssh_kprintf(const char *format
, ...)
48 va_start(args
, format
);
50 vprintf(format
, args
);
57 fssh_dump_block(const char *buffer
, int size
, const char *prefix
)
63 fssh_panic(const char *format
, ...)
66 va_start(args
, format
);
68 vfprintf(stderr
, format
, args
);
79 fssh_kernel_debugger(const char *message
)
81 fssh_panic("%s", message
);
86 fssh_parse_expression(const char *string
)
93 fssh_add_debugger_command(const char *name
, fssh_debugger_command_hook hook
,
101 fssh_remove_debugger_command(char *name
, fssh_debugger_command_hook hook
)