1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:07:36 +00:00

Make VFS test environment build again.

This commit is contained in:
Andreas Kling 2018-11-07 12:05:51 +01:00
parent 83172e6a4b
commit 981a3ae4b3
12 changed files with 40 additions and 34 deletions

View file

@ -4,7 +4,9 @@
#ifdef SERENITY
#include "i386.h"
int sched_yield();
#else
#include <sched.h>
typedef int InterruptDisabler;
#endif
@ -14,8 +16,6 @@ void log_try_lock(const char*);
void log_locked(const char*);
void log_unlocked(const char*);
void yield();
namespace AK {
static inline dword CAS(volatile dword* mem, dword newval, dword oldval)
@ -51,7 +51,7 @@ public:
#endif
return;
}
yield();
sched_yield();
}
}