Commit 41c3e334 authored by Barry Song's avatar Barry Song Committed by Mike Frysinger

Blackfin: access_ok: permit L1 stack

When apps run with their stack in L1, some system calls might be made
where a buffer is in the stack as an argument.  So make sure the core
Blackfin access code does not reject this memory location.
Signed-off-by: default avatarBarry Song <barry.song@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 027285e8
...@@ -493,6 +493,11 @@ int _access_ok(unsigned long addr, unsigned long size) ...@@ -493,6 +493,11 @@ int _access_ok(unsigned long addr, unsigned long size)
return 1; return 1;
#endif #endif
#ifndef CONFIG_EXCEPTION_L1_SCRATCH
if (in_mem_const(addr, size, (unsigned long)l1_stack_base, l1_stack_len))
return 1;
#endif
aret = in_async(addr, size); aret = in_async(addr, size);
if (aret < 2) if (aret < 2)
return aret; return aret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment