diff --git a/app/src/main/cpp/core/hos/kernel/svc.cpp b/app/src/main/cpp/core/hos/kernel/svc.cpp index c6d4a9e6..675e459e 100644 --- a/app/src/main/cpp/core/hos/kernel/svc.cpp +++ b/app/src/main/cpp/core/hos/kernel/svc.cpp @@ -8,7 +8,8 @@ using namespace core::cpu; namespace core::kernel { - static uint32_t OutputDebugString() { + static uint32_t OutputDebugString() + { std::string debug(GetRegister(UC_ARM64_REG_X1), '\0'); memory::Read((void*)debug.data(), GetRegister(UC_ARM64_REG_X0), GetRegister(UC_ARM64_REG_X1)); @@ -16,8 +17,10 @@ namespace core::kernel { return 0; } - static uint32_t GetInfo() { - switch(GetRegister(UC_ARM64_REG_X1)) { + static uint32_t GetInfo() + { + switch (GetRegister(UC_ARM64_REG_X1)) + { case 12: SetRegister(UC_ARM64_REG_X1, BASE_ADDRESS); break; @@ -165,7 +168,7 @@ namespace core::kernel { { std::pair* result = &(svcTable[svc]); - if(result->second) { + if (result->second) { uint32_t returnCode = result->second(); SetRegister(UC_ARM64_REG_W0, returnCode); return returnCode;