From 09b1252821903e5f76e72b25fe79384a8ab16095 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sat, 5 Nov 2011 20:03:17 +0100 Subject: [PATCH] Added an AsIs() function to the Syscall namespace. --- sortix/syscall.cpp | 5 +++++ sortix/syscall.h | 3 +++ 2 files changed, 8 insertions(+) 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(); }