]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sh: Fix cached/uncaced address calculation in 29bit mode
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Fri, 4 Nov 2011 13:13:50 +0000 (22:13 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Nov 2011 22:31:15 +0000 (14:31 -0800)
commitf5116ff776a68277c0b60ba57e74c7074b72ab65
tree67f567e8f27cde1f4dcbba22325963e5161e7bb3
parent6c43a5e42ca88c5770de53fb969a0b6f04d86982
sh: Fix cached/uncaced address calculation in 29bit mode

commit dfd3b596fbbfa48b8e7966ef996d587157554b69 upstream.

In the case of 29bit mode, CAC/UNCAC_ADDR does not return a right address.
This revises this problem by using P1SEGADDR and P2SEGADDR in 29bit mode.

Reported-by: Yutaro Ebihara <ebiharaml@si-linux.co.jp>
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Tested-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/sh/include/asm/page.h