Added a stub for Syscall::Yield() which is used by broken code.

The whole system call interface is currently stupid.
This commit is contained in:
Jonas 'Sortie' Termansen 2012-03-17 15:14:42 +01:00
parent 798b421d16
commit 1ff0321400
2 changed files with 11 additions and 0 deletions

View File

@ -83,6 +83,12 @@ namespace Sortix
Scheduler::Switch(regs);
}
void Yield()
{
Panic("Syscall::Yield() is not implemented because it caused "
"instability and other issues.");
}
void AsIs()
{
system_was_incomplete = 1;

View File

@ -44,6 +44,11 @@ namespace Sortix
// that its return value shall be discarded.
void Incomplete();
// Call this prior to Incomplete() to signal that the scheduler should
// go run something else for a moment. The current thread will not be
// marked as blocking.
void Yield();
// For when you want the syscall exit code not to modify registers.
void AsIs();