xref: /haiku/src/system/libroot/posix/string/arch/x86/arch_string.S (revision e6b30aee0fd7a23d6a6baab9f3718945a0cd838a)
1/*
2** Copyright 2001, Travis Geiselbrecht. All rights reserved.
3** Distributed under the terms of the NewOS License.
4*/
5
6#if !_KERNEL_MODE
7	// TODO: This should not even be compiled for the kernel. Fix the TODO in
8	// src/system/kernel/lib/Jamfile!
9
10#include <commpage.h>
11
12#define FUNCTION(x) .global x; .type x,@function; x
13
14.align 4
15FUNCTION(memcpy):
16	jmp	*(USER_COMMPAGE_ADDR + COMMPAGE_ENTRY_X86_MEMCPY * 4)
17
18#endif	// !_KERNEL_MODE
19