diff --git a/sortix/syscall.cpp b/sortix/syscall.cpp index 1b423778..4f7f4fdf 100644 --- a/sortix/syscall.cpp +++ b/sortix/syscall.cpp @@ -78,6 +78,11 @@ namespace Sortix Scheduler::Switch(regs); } + void AsIs() + { + system_was_incomplete = 1; + } + CPU::InterruptRegisters* InterruptRegs() { return (CPU::InterruptRegisters*) syscall_state_ptr; diff --git a/sortix/syscall.h b/sortix/syscall.h index 3fd72656..d9541aad 100644 --- a/sortix/syscall.h +++ b/sortix/syscall.h @@ -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(); }