summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-07 19:32:12 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-07 19:32:12 +0200
commit5bce004d84da43ee6453fc80b1695e8126d53080 (patch)
treed894eb0794c04427cd36529cf8bb67b9f81ea268 /Kernel
parent891d4c4834d85696b50aeaf9d0209b619d8be85d (diff)
downloadserenity-5bce004d84da43ee6453fc80b1695e8126d53080.zip
Kernel: The kernel will never call mmx_memcpy() so prune it.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/StdLib.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/Kernel/StdLib.cpp b/Kernel/StdLib.cpp
index 25670a0e47..e146d643ee 100644
--- a/Kernel/StdLib.cpp
+++ b/Kernel/StdLib.cpp
@@ -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.