arch/at91sam3x8e: fix compile error

Enabling CONFIG_CHECK_SYSCALL_SOURCE resulted in a
compile error because the corresponding code block
used an outdated variable name.  This commit fixes
the issue.
This commit is contained in:
anna 2022-09-26 12:59:37 +02:00
parent c767d551d3
commit adccbef80d
Signed by: fef
GPG key ID: EC22E476DC2D3D84

View file

@ -30,8 +30,8 @@ void enter_syscall(struct exc_context *context)
* the instructions are always 2-byte aligned. Additionally, the PC
* points to the instruction *after* the SVC, not SVC itself.
*/
if (((uintptr_t)regs->sp->pc & 0xfffffffe) != (uintptr_t)&__syscall_return_point) {
sc_set_rval(regs, -EACCES);
if (((uintptr_t)context->sp->pc & 0xfffffffe) != (uintptr_t)&__syscall_return_point) {
sc_set_rval(context, -EACCES);
return;
}
# endif