mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-01 10:29:16 +00:00
chore: Update makefiles & macros
This commit is contained in:
@ -35,9 +35,9 @@ struct SyscallData
|
||||
|
||||
using namespace Memory;
|
||||
|
||||
#if defined(a64)
|
||||
#if defined(__amd64__)
|
||||
typedef long arch_t;
|
||||
#elif defined(a32)
|
||||
#elif defined(__i386__)
|
||||
typedef int arch_t;
|
||||
#endif
|
||||
|
||||
@ -60,7 +60,7 @@ static SyscallData NativeSyscallsTable[sc_MaxSyscall] = {
|
||||
|
||||
uintptr_t HandleNativeSyscalls(SysFrm *Frame)
|
||||
{
|
||||
#if defined(a64)
|
||||
#if defined(__amd64__)
|
||||
if (unlikely(Frame->rax > sc_MaxSyscall))
|
||||
{
|
||||
fixme("Syscall %ld not implemented.", Frame->rax);
|
||||
@ -103,7 +103,7 @@ uintptr_t HandleNativeSyscalls(SysFrm *Frame)
|
||||
debug("< [%d:\"%s\"] = %d",
|
||||
Frame->rax, Syscall.Name, sc_ret);
|
||||
return sc_ret;
|
||||
#elif defined(a32)
|
||||
#elif defined(__i386__)
|
||||
if (unlikely(Frame->eax > sc_MaxSyscall))
|
||||
{
|
||||
fixme("Syscall %ld not implemented.", Frame->eax);
|
||||
@ -146,7 +146,7 @@ uintptr_t HandleNativeSyscalls(SysFrm *Frame)
|
||||
debug("< [%d:\"%s\"] = %d",
|
||||
Frame->eax, Syscall.Name, sc_ret);
|
||||
return sc_ret;
|
||||
#elif defined(aa64)
|
||||
#elif defined(__aarch64__)
|
||||
return -ENOSYS;
|
||||
#endif
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ private:
|
||||
public:
|
||||
AutoSwitchPageTable()
|
||||
{
|
||||
#if defined(a86)
|
||||
#if defined(__amd64__) || defined(__i386__)
|
||||
asmv("mov %%cr3, %0"
|
||||
: "=r"(Original));
|
||||
|
||||
@ -45,7 +45,7 @@ public:
|
||||
{
|
||||
debug("- %#lx %s(%d)", Original,
|
||||
thisProcess->Name, thisProcess->ID);
|
||||
#if defined(a86)
|
||||
#if defined(__amd64__) || defined(__i386__)
|
||||
asmv("mov %0, %%cr3"
|
||||
:
|
||||
: "r"(Original));
|
||||
|
Reference in New Issue
Block a user