]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Change type of asid_cache to unsigned long
authorRalf Baechle <ralf@linux-mips.org>
Wed, 21 May 2014 09:42:10 +0000 (11:42 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 21 May 2014 10:25:39 +0000 (12:25 +0200)
commit81fc98aa3e5693e89ba5e0e77473ba83a5f8d3ea
tree537ff44f413665231fd7932dfdce6d9c34661f0b
parent47acda2a6dff060c4fccf89714d2c1a5f8732aea
MIPS: Change type of asid_cache to unsigned long

asid_cache must be unsigned long otherwise on 64 bit systems it will
become 0 if the value in get_new_mmu_context() reaches 0xffffffff and
in the end the assumption of ASID_FIRST_VERSION is not true anymore
thus leads to more dangerous things.

Initial patch by Yong Zhang <yong.zhang@windriver.com>

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Reported-by: libin <huawei.libin@huawei.com>
arch/mips/include/asm/cpu-info.h