mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-27 23:14:38 +00:00
Revert "Fix: x32 kernel failed to build"
This reverts commit 930b11a4003d5fb5411099c1e20e1f12a7ce0506.
This commit is contained in:
parent
bac24e520e
commit
b3a4487c71
@ -19,28 +19,36 @@ namespace FXSR
|
||||
{
|
||||
void _fxsave(void *mem_addr)
|
||||
{
|
||||
#ifdef a64
|
||||
__builtin_ia32_fxsave(mem_addr);
|
||||
#endif
|
||||
}
|
||||
|
||||
void _fxrstor(void *mem_addr)
|
||||
{
|
||||
#ifdef a64
|
||||
__builtin_ia32_fxrstor(mem_addr);
|
||||
#endif
|
||||
}
|
||||
|
||||
void _fxsave64(void *mem_addr)
|
||||
{
|
||||
#ifdef a64
|
||||
asmv("fxsaveq (%0)"
|
||||
:
|
||||
: "r"(mem_addr)
|
||||
: "memory");
|
||||
#endif
|
||||
}
|
||||
|
||||
void _fxrstor64(void *mem_addr)
|
||||
{
|
||||
#ifdef a64
|
||||
asmv("fxrstorq (%0)"
|
||||
:
|
||||
: "r"(mem_addr)
|
||||
: "memory");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user