mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 06:02:07 +03:00
Kernel: The kernel will never call mmx_memcpy() so prune it.
This commit is contained in:
parent
891d4c4834
commit
5bce004d84
Notes:
sideshowbarker
2024-07-19 13:40:48 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/5bce004d84d
@ -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…
Reference in New Issue
Block a user