Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm64: change some format #14991

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions arch/arm64/src/common/arm64_syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,11 @@ uint64_t *arm64_syscall(uint64_t *regs)
/* Restore the cpu lock */

restore_critical_section(tcb, cpu);
#ifdef CONFIG_ARCH_ADDRENV
addrenv_switch(tcb);
#endif
break;

case SYS_switch_context:

/* Update scheduler parameters */
Expand All @@ -204,6 +208,9 @@ uint64_t *arm64_syscall(uint64_t *regs)
/* Restore the cpu lock */

restore_critical_section(tcb, cpu);
#ifdef CONFIG_ARCH_ADDRENV
addrenv_switch(tcb);
#endif
break;

#ifdef CONFIG_BUILD_KERNEL
Expand Down Expand Up @@ -315,18 +322,5 @@ uint64_t *arm64_syscall(uint64_t *regs)
break;
}

#ifdef CONFIG_ARCH_ADDRENV
/* Make sure that the address environment for the previously
* running task is closed down gracefully (data caches dump,
* MMU flushed) and set up the address environment for the new
* thread at the head of the ready-to-run list.
*/

if (SYS_restore_context == cmd || SYS_switch_context == cmd)
{
addrenv_switch(NULL);
}
#endif

return tcb->xcp.regs;
}