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)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 4 Nov 2011 13:13:50 +0000 (22:13 +0900)
commitdfd3b596fbbfa48b8e7966ef996d587157554b69
treeff2bd816426c4565e521a53b22742bf1169c2327
parent1a67a573b8d9f02211f36fbab50f6265dc49384a
sh: Fix cached/uncaced address calculation in 29bit mode

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>
Cc: stable@kernel.org
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/page.h