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:
parent
83172e6a4b
commit
981a3ae4b3
12 changed files with 40 additions and 34 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue