1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:37:37 +00:00

Kernel: Don't use MMX memcpy() in the kernel.

I just discovered the hard way that clobbering FPU/MMX/SSE registers in the
kernel makes things very confusing for userspace (and other kernel threads.)

Let's banish all of those things from the kernel to keep things simple.
This commit is contained in:
Andreas Kling 2019-04-22 17:13:18 +02:00
parent 1d02c7b6f1
commit 6693cfb26a
3 changed files with 9 additions and 2 deletions

View file

@ -5,6 +5,7 @@
extern "C" {
#ifndef KERNEL
void* mmx_memcpy(void* dest, const void* src, size_t len)
{
ASSERT(len >= 1024);
@ -51,6 +52,7 @@ void* mmx_memcpy(void* dest, const void* src, size_t len)
memcpy(dest_ptr, src_ptr, len);
return dest;
}
#endif
#ifdef KERNEL