Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359120
b: refs/heads/master
c: 8668480
h: refs/heads/master
v: v3
  • Loading branch information
Jonas Bonn committed Feb 17, 2013
1 parent c055c79 commit 23b381d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 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: a81252d75e14cc2cf0ee45078ef143562a0bc279
refs/heads/master: 8668480eb79f0cbd79d6b584a10604d743853062
17 changes: 14 additions & 3 deletions trunk/arch/openrisc/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,26 @@ void __init paging_init(void)
unsigned long *dtlb_vector = __va(0x900);
unsigned long *itlb_vector = __va(0xa00);

printk(KERN_INFO "itlb_miss_handler %p\n", &itlb_miss_handler);
*itlb_vector = ((unsigned long)&itlb_miss_handler -
(unsigned long)itlb_vector) >> 2;

/* Soft ordering constraint to ensure that dtlb_vector is
* the last thing updated
*/
barrier();

printk(KERN_INFO "dtlb_miss_handler %p\n", &dtlb_miss_handler);
*dtlb_vector = ((unsigned long)&dtlb_miss_handler -
(unsigned long)dtlb_vector) >> 2;

printk(KERN_INFO "itlb_miss_handler %p\n", &itlb_miss_handler);
*itlb_vector = ((unsigned long)&itlb_miss_handler -
(unsigned long)itlb_vector) >> 2;
}

/* Soft ordering constraint to ensure that cache invalidation and
* TLB flush really happen _after_ code has been modified.
*/
barrier();

/* Invalidate instruction caches after code modification */
mtspr(SPR_ICBIR, 0x900);
mtspr(SPR_ICBIR, 0xa00);
Expand Down

0 comments on commit 23b381d

Please sign in to comment.