Skip to content

Commit

Permalink
sh: Fix up uncached offset for legacy 29-bit mode.
Browse files Browse the repository at this point in the history
The uncached_start was being set up properly for 32-bit but managed to
break 29-bit in the process, fix it up.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Mar 8, 2010
1 parent a8941da commit 40d1f00
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/sh/mm/uncached.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <linux/init.h>
#include <asm/sizes.h>
#include <asm/page.h>
#include <asm/addrspace.h>

/*
* This is the offset of the uncached section from its cached alias.
Expand All @@ -23,7 +24,11 @@ int virt_addr_uncached(unsigned long kaddr)

void __init uncached_init(void)
{
#ifdef CONFIG_29BIT
uncached_start = P2SEG;
#else
uncached_start = memory_end;
#endif
uncached_end = uncached_start + uncached_size;
}

Expand Down

0 comments on commit 40d1f00

Please sign in to comment.