Added an AsIs() function to the Syscall namespace.

This commit is contained in:
Jonas 'Sortie' Termansen 2011-11-05 20:03:17 +01:00
parent 196e958336
commit 09b1252821
2 changed files with 8 additions and 0 deletions

View File

@ -78,6 +78,11 @@ namespace Sortix
Scheduler::Switch(regs);
}
void AsIs()
{
system_was_incomplete = 1;
}
CPU::InterruptRegisters* InterruptRegs()
{
return (CPU::InterruptRegisters*) syscall_state_ptr;

View File

@ -42,6 +42,9 @@ namespace Sortix
// that its return value shall be discarded.
void Incomplete();
// For when you want the syscall exit code not to modify registers.
void AsIs();
CPU::InterruptRegisters* InterruptRegs();
CPU::SyscallRegisters* SyscallRegs();
}