Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173385
b: refs/heads/master
c: ef269b3
h: refs/heads/master
i:
  173383: 9ee89a7
v: v3
  • Loading branch information
Matt Fleming authored and Paul Mundt committed Oct 10, 2009
1 parent 1f0b20c commit 4087cd6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3105121949b609964f370d42d1b90fe7fc01d6b1
refs/heads/master: ef269b32763b22100eda9c0bf99d462c6cd65377
13 changes: 7 additions & 6 deletions trunk/arch/sh/mm/pmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ static void __pmb_unmap(struct pmb_entry *pmbe)
int __uses_jump_to_uncached pmb_init(void)
{
unsigned int i;
long size;
long size, ret;

jump_to_uncached();

Expand All @@ -287,12 +287,13 @@ int __uses_jump_to_uncached pmb_init(void)
* P1 - provides a cached window onto physical memory
* P2 - provides an uncached window onto physical memory
*/
size = pmb_remap(P2SEG, __MEMORY_START, __MEMORY_SIZE,
PMB_WT | PMB_UB);
BUG_ON(size != __MEMORY_SIZE);
size = __MEMORY_START + __MEMORY_SIZE;

size = pmb_remap(P1SEG, __MEMORY_START, __MEMORY_SIZE, PMB_C);
BUG_ON(size != __MEMORY_SIZE);
ret = pmb_remap(P1SEG, 0x00000000, size, PMB_C);
BUG_ON(ret != size);

ret = pmb_remap(P2SEG, 0x00000000, size, PMB_WT | PMB_UB);
BUG_ON(ret != size);

ctrl_outl(0, PMB_IRMCR);

Expand Down

0 comments on commit 4087cd6

Please sign in to comment.