mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Added an AsIs() function to the Syscall namespace.
This commit is contained in:
parent
196e958336
commit
09b1252821
2 changed files with 8 additions and 0 deletions
|
@ -78,6 +78,11 @@ namespace Sortix
|
|||
Scheduler::Switch(regs);
|
||||
}
|
||||
|
||||
void AsIs()
|
||||
{
|
||||
system_was_incomplete = 1;
|
||||
}
|
||||
|
||||
CPU::InterruptRegisters* InterruptRegs()
|
||||
{
|
||||
return (CPU::InterruptRegisters*) syscall_state_ptr;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue