kernel/x86_64: remove memset and memcpy from commpage

Operating Systems / Haiku - Paweł Dziepak [quarnos.org] - 14 September 2014 12:16 UTC

There is absolutely no reason for these functions to be in commpage, they don't do anything that involves the kernel in any way.

Additionaly, this patch rewrites memset and memcpy to C++, current implementation is quite simple (though it may perform surprisingly well when dealing with large buffers on cpus with ermsb). Better
versions are coming soon.

f2f9107 kernel/x86_64: remove memset and memcpy from commpage
.../system/arch/x86_64/arch_commpage_defs.h | 6 +-
src/system/kernel/arch/x86/32/syscalls.cpp | 16 ++++
src/system/kernel/arch/x86/arch_cpu.cpp | 15 +---
src/system/kernel/lib/arch/x86_64/Jamfile | 7 +-
src/system/kernel/lib/arch/x86_64/arch_string.S | 85 --------------------
.../libroot/posix/string/arch/x86_64/Jamfile | 4 +-
.../libroot/posix/string/arch/x86_64/arch_string.S | 22 -----
.../posix/string/arch/x86_64/arch_string.cpp | 31 +++++++
8 files changed, 55 insertions(+), 131 deletions(-)

Upstream: cgit.haiku-os.org


  • Share