Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAaronLopezGarcia committed Oct 28, 2024
1 parent e457bd1 commit dc31246
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions core/systemctrl/src/kubridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);

Expand Down

0 comments on commit dc31246

Please sign in to comment.