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:
parent
c767d551d3
commit
adccbef80d
1 changed files with 2 additions and 2 deletions
|
@ -30,8 +30,8 @@ void enter_syscall(struct exc_context *context)
|
||||||
* the instructions are always 2-byte aligned. Additionally, the PC
|
* the instructions are always 2-byte aligned. Additionally, the PC
|
||||||
* points to the instruction *after* the SVC, not SVC itself.
|
* points to the instruction *after* the SVC, not SVC itself.
|
||||||
*/
|
*/
|
||||||
if (((uintptr_t)regs->sp->pc & 0xfffffffe) != (uintptr_t)&__syscall_return_point) {
|
if (((uintptr_t)context->sp->pc & 0xfffffffe) != (uintptr_t)&__syscall_return_point) {
|
||||||
sc_set_rval(regs, -EACCES);
|
sc_set_rval(context, -EACCES);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Reference in a new issue