mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 23:42:13 +00:00
Kernel: The kernel will never call mmx_memcpy() so prune it.
This commit is contained in:
parent
891d4c4834
commit
5bce004d84
1 changed files with 0 additions and 6 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue