From ef3fe5853595c6cb419438ef80d7738c4c8da780 Mon Sep 17 00:00:00 2001 From: Federico Villa Date: Sun, 3 Mar 2024 18:26:50 +0100 Subject: [PATCH] Fixed clang-format --- src/syscall/control.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/syscall/control.h b/src/syscall/control.h index aff16d20..3822e766 100644 --- a/src/syscall/control.h +++ b/src/syscall/control.h @@ -60,13 +60,15 @@ class BrkSyscall : public BaseSyscall { // Retrieves the argument of the brk syscall, the new program break uint64_t newBreak = BaseSyscall::getArg(BaseSyscall::REG_FILE, 0); // Retrieve the current stack pointer from the processor handler - uint64_t stackPointer = ProcessorHandler::getProcessor()->getRegister(BaseSyscall::REG_FILE, 2); + uint64_t stackPointer = + ProcessorHandler::getProcessor()->getRegister(BaseSyscall::REG_FILE, 2); if (newBreak >= stackPointer) { - SystemIO::printString("Error: Attempted to allocate memory overlapping stack segment\n"); - BaseSyscall::setRet(BaseSyscall::REG_FILE, 0, -1); // Syscall error code - return; + SystemIO::printString( + "Error: Attempted to allocate memory overlapping stack segment\n"); + BaseSyscall::setRet(BaseSyscall::REG_FILE, 0, -1); // Syscall error code + return; } - + BaseSyscall::setRet(BaseSyscall::REG_FILE, 0, 0); } };