From dc312465ca002523c8e0857d9e360eff12dec02c Mon Sep 17 00:00:00 2001 From: JoseAaronLopezGarcia Date: Tue, 29 Oct 2024 00:21:13 +0100 Subject: [PATCH] refactor --- core/systemctrl/src/kubridge.c | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/core/systemctrl/src/kubridge.c b/core/systemctrl/src/kubridge.c index af0ce0483..7d8c71a95 100644 --- a/core/systemctrl/src/kubridge.c +++ b/core/systemctrl/src/kubridge.c @@ -255,7 +255,20 @@ int kuKernelCall(void *func_addr, struct KernelCallArg *args) k1 = pspSdkSetK1(0); level = sctrlKernelSetUserLevel(8); func = func_addr; - ret = (*func)(args->arg1, args->arg2, args->arg3, args->arg4, args->arg5, args->arg6, args->arg7, args->arg8, args->arg9, args->arg10, args->arg11, args->arg12); + ret = (*func)( + args->arg1, + args->arg2, + args->arg3, + args->arg4, + args->arg5, + args->arg6, + args->arg7, + args->arg8, + args->arg9, + args->arg10, + args->arg11, + args->arg12 + ); args->ret1 = (u32)(ret); args->ret2 = (u32)(ret >> 32); sctrlKernelSetUserLevel(level); @@ -277,7 +290,20 @@ static int kernel_call_stack(struct KernelCallArgExtendStack *args_stack) args = &args_stack->args; func = args_stack->func_addr; - ret = (*func)(args->arg1, args->arg2, args->arg3, args->arg4, args->arg5, args->arg6, args->arg7, args->arg8, args->arg9, args->arg10, args->arg11, args->arg12); + ret = (*func)( + args->arg1, + args->arg2, + args->arg3, + args->arg4, + args->arg5, + args->arg6, + args->arg7, + args->arg8, + args->arg9, + args->arg10, + args->arg11, + args->arg12 + ); args->ret1 = (u32)(ret); args->ret2 = (u32)(ret >> 32);