]> git.baikalelectronics.ru Git - kernel.git/commit
sparc: Fix user_addr_max() definition.
authorDavid S. Miller <davem@davemloft.net>
Thu, 24 May 2012 20:41:58 +0000 (13:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 May 2012 20:41:58 +0000 (13:41 -0700)
commita30ca626abdf2ca7c1e1a42e6040f3ab2cdeff35
tree1df9f89d287af436be4bd405e50dd3c1d48d354e
parent4b2f79e5327a9b3a5fc8e31f3959a99caeea2c99
sparc: Fix user_addr_max() definition.

We need to use TASK_SIZE because for 64-bit tasks the value
of STACK_TOP actually sits in the middle of the address space
so we'll get false-negatives.

Adjust the TASK_SIZE definition on sparc64 to accomodate this,
in the context in which user_addr_max() is used we have the
test_thread_flag() definition available but not the one for
test_tsk_thread_flag().

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/processor_64.h
arch/sparc/include/asm/uaccess.h