Kernel: The kernel will never call mmx_memcpy() so prune it.

This commit is contained in:
Andreas Kling 2019-06-07 19:32:12 +02:00
parent 891d4c4834
commit 5bce004d84
Notes: sideshowbarker 2024-07-19 13:40:48 +09:00

View File

@ -1,5 +1,4 @@
#include <AK/Assertions.h>
#include <AK/StdLibExtras.h>
#include <AK/Types.h>
#include <Kernel/kmalloc.h>
@ -7,11 +6,6 @@ extern "C" {
void* memcpy(void* dest_ptr, const void* src_ptr, size_t n)
{
#ifndef KERNEL
if (n >= 1024)
return mmx_memcpy(dest_ptr, src_ptr, n);
#endif
size_t dest = (size_t)dest_ptr;
size_t src = (size_t)src_ptr;
// FIXME: Support starting at an unaligned address.