xref: /haiku/src/system/kernel/arch/arm64/arch_asm.S (revision 1deede7388b04dbeec5af85cae7164735ea9e70d)
1/*
2 * Copyright 2019 Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5#include <arch/arm/arch_cpu.h>
6#include <asm_defs.h>
7
8.text
9
10/* status_t arch_cpu_user_memcpy(void *to, const void *from, size_t size, addr_t *faultHandler) */
11FUNCTION(_arch_cpu_user_memcpy):
12	mov		x0, xzr
13	ret
14FUNCTION_END(_arch_cpu_user_memcpy)
15
16/* status_t arch_cpu_user_memset(void *to, char c, size_t count, addr_t *faultHandler) */
17FUNCTION(_arch_cpu_user_memset):
18	mov		x0, xzr
19	ret
20FUNCTION_END(_arch_cpu_user_memset)
21
22/* ssize_t arch_cpu_user_strlcpy(void *to, const void *from, size_t size, addr_t *faultHandler) */
23FUNCTION(_arch_cpu_user_strlcpy):
24	mov		x0, xzr
25	ret
26FUNCTION_END(_arch_cpu_user_strlcpy)
27
28/*!	\fn void arch_debug_call_with_fault_handler(cpu_ent* cpu,
29		jmp_buf jumpBuffer, void (*function)(void*), void* parameter)
30
31	Called by debug_call_with_fault_handler() to do the dirty work of setting
32	the fault handler and calling the function. If the function causes a page
33	fault, the arch_debug_call_with_fault_handler() calls longjmp() with the
34	given \a jumpBuffer. Otherwise it returns normally.
35
36	debug_call_with_fault_handler() has already saved the CPU's fault_handler
37	and fault_handler_stack_pointer and will reset them later, so
38	arch_debug_call_with_fault_handler() doesn't need to care about it.
39
40	\param cpu The \c cpu_ent for the current CPU.
41	\param jumpBuffer Buffer to be used for longjmp().
42	\param function The function to be called.
43	\param parameter The parameter to be passed to the function to be called.
44*/
45FUNCTION(arch_debug_call_with_fault_handler):
46	mov		x0, xzr
47	ret
48FUNCTION_END(arch_debug_call_with_fault_handler)
49