From fd344073dd9221fada4a0f9785f4be212782e051 Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Mon, 24 Sep 2007 16:38:25 +0900 Subject: [PATCH] --- yaml --- r: 68276 b: refs/heads/master c: d10040f7eb808cd984b563d1cf727a1020990a2e h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/sh/mm/cache-sh4.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index cf895a0e42ed..c246e881348a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1a442fe02d205d6980202b07f799ab9336e72ad7 +refs/heads/master: d10040f7eb808cd984b563d1cf727a1020990a2e diff --git a/trunk/arch/sh/mm/cache-sh4.c b/trunk/arch/sh/mm/cache-sh4.c index bbc226469aa1..6c36c2fb8199 100644 --- a/trunk/arch/sh/mm/cache-sh4.c +++ b/trunk/arch/sh/mm/cache-sh4.c @@ -2,7 +2,7 @@ * arch/sh/mm/cache-sh4.c * * Copyright (C) 1999, 2000, 2002 Niibe Yutaka - * Copyright (C) 2001 - 2006 Paul Mundt + * Copyright (C) 2001 - 2007 Paul Mundt * Copyright (C) 2003 Richard Curnow * * This file is subject to the terms and conditions of the GNU General Public @@ -44,7 +44,7 @@ static void (*__flush_dcache_segment_fn)(unsigned long, unsigned long) = static void compute_alias(struct cache_info *c) { c->alias_mask = ((c->sets - 1) << c->entry_shift) & ~(PAGE_SIZE - 1); - c->n_aliases = (c->alias_mask >> PAGE_SHIFT) + 1; + c->n_aliases = c->alias_mask ? (c->alias_mask >> PAGE_SHIFT) + 1 : 0; } static void __init emit_cache_params(void)