Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331451
b: refs/heads/master
c: 6e80cff
h: refs/heads/master
i:
  331449: ad6b6e1
  331447: da4ed3e
v: v3
  • Loading branch information
Michal Simek committed Oct 4, 2012
1 parent 29ad38a commit e68026e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 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: 9f78d3b5ab97a22a7e836312c495804ee4bca4ab
refs/heads/master: 6e80cff5430efb9dc8c12cb066e12c62d0a2d9d2
7 changes: 2 additions & 5 deletions trunk/arch/microblaze/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,11 @@ choice
config MICROBLAZE_4K_PAGES
bool "4k page size"

config MICROBLAZE_8K_PAGES
bool "8k page size"

config MICROBLAZE_16K_PAGES
bool "16k page size"

config MICROBLAZE_32K_PAGES
bool "32k page size"
config MICROBLAZE_64K_PAGES
bool "64k page size"

endchoice

Expand Down
6 changes: 2 additions & 4 deletions trunk/arch/microblaze/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@
#ifdef __KERNEL__

/* PAGE_SHIFT determines the page size */
#if defined(CONFIG_MICROBLAZE_32K_PAGES)
#define PAGE_SHIFT 15
#if defined(CONFIG_MICROBLAZE_64K_PAGES)
#define PAGE_SHIFT 16
#elif defined(CONFIG_MICROBLAZE_16K_PAGES)
#define PAGE_SHIFT 14
#elif defined(CONFIG_MICROBLAZE_8K_PAGES)
#define PAGE_SHIFT 13
#else
#define PAGE_SHIFT 12
#endif
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/microblaze/kernel/hw_exception_handler.S
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,13 @@ ex_handler_done:
* bits 20 and 21 are zero.
*/
andi r3, r3, PAGE_MASK
#ifdef CONFIG_MICROBLAZE_64K_PAGES
ori r3, r3, TLB_VALID | TLB_PAGESZ(PAGESZ_64K)
#elif CONFIG_MICROBLAZE_16K_PAGES
ori r3, r3, TLB_VALID | TLB_PAGESZ(PAGESZ_16K)
#else
ori r3, r3, TLB_VALID | TLB_PAGESZ(PAGESZ_4K)
#endif
mts rtlbhi, r3 /* Load TLB HI */
nop

Expand Down

0 comments on commit e68026e

Please sign in to comment.