diff options
Diffstat (limited to 'arch/powerpc/kernel/misc_32.S')
-rw-r--r-- | arch/powerpc/kernel/misc_32.S | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/powerpc/kernel/misc_32.S b/arch/powerpc/kernel/misc_32.S index ae0d084b6a24..15f28e0de78d 100644 --- a/arch/powerpc/kernel/misc_32.S +++ b/arch/powerpc/kernel/misc_32.S | |||
@@ -426,8 +426,8 @@ _GLOBAL(__flush_dcache_icache) | |||
426 | BEGIN_FTR_SECTION | 426 | BEGIN_FTR_SECTION |
427 | blr | 427 | blr |
428 | END_FTR_SECTION_IFSET(CPU_FTR_COHERENT_ICACHE) | 428 | END_FTR_SECTION_IFSET(CPU_FTR_COHERENT_ICACHE) |
429 | rlwinm r3,r3,0,0,19 /* Get page base address */ | 429 | rlwinm r3,r3,0,0,31-PAGE_SHIFT /* Get page base address */ |
430 | li r4,4096/L1_CACHE_BYTES /* Number of lines in a page */ | 430 | li r4,PAGE_SIZE/L1_CACHE_BYTES /* Number of lines in a page */ |
431 | mtctr r4 | 431 | mtctr r4 |
432 | mr r6,r3 | 432 | mr r6,r3 |
433 | 0: dcbst 0,r3 /* Write line to ram */ | 433 | 0: dcbst 0,r3 /* Write line to ram */ |
@@ -467,8 +467,8 @@ END_FTR_SECTION_IFSET(CPU_FTR_COHERENT_ICACHE) | |||
467 | rlwinm r0,r10,0,28,26 /* clear DR */ | 467 | rlwinm r0,r10,0,28,26 /* clear DR */ |
468 | mtmsr r0 | 468 | mtmsr r0 |
469 | isync | 469 | isync |
470 | rlwinm r3,r3,0,0,19 /* Get page base address */ | 470 | rlwinm r3,r3,0,0,31-PAGE_SHIFT /* Get page base address */ |
471 | li r4,4096/L1_CACHE_BYTES /* Number of lines in a page */ | 471 | li r4,PAGE_SIZE/L1_CACHE_BYTES /* Number of lines in a page */ |
472 | mtctr r4 | 472 | mtctr r4 |
473 | mr r6,r3 | 473 | mr r6,r3 |
474 | 0: dcbst 0,r3 /* Write line to ram */ | 474 | 0: dcbst 0,r3 /* Write line to ram */ |
@@ -492,7 +492,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_COHERENT_ICACHE) | |||
492 | * void clear_pages(void *page, int order) ; | 492 | * void clear_pages(void *page, int order) ; |
493 | */ | 493 | */ |
494 | _GLOBAL(clear_pages) | 494 | _GLOBAL(clear_pages) |
495 | li r0,4096/L1_CACHE_BYTES | 495 | li r0,PAGE_SIZE/L1_CACHE_BYTES |
496 | slw r0,r0,r4 | 496 | slw r0,r0,r4 |
497 | mtctr r0 | 497 | mtctr r0 |
498 | #ifdef CONFIG_8xx | 498 | #ifdef CONFIG_8xx |
@@ -550,7 +550,7 @@ _GLOBAL(copy_page) | |||
550 | dcbt r5,r4 | 550 | dcbt r5,r4 |
551 | li r11,L1_CACHE_BYTES+4 | 551 | li r11,L1_CACHE_BYTES+4 |
552 | #endif /* MAX_COPY_PREFETCH */ | 552 | #endif /* MAX_COPY_PREFETCH */ |
553 | li r0,4096/L1_CACHE_BYTES - MAX_COPY_PREFETCH | 553 | li r0,PAGE_SIZE/L1_CACHE_BYTES - MAX_COPY_PREFETCH |
554 | crclr 4*cr0+eq | 554 | crclr 4*cr0+eq |
555 | 2: | 555 | 2: |
556 | mtctr r0 | 556 | mtctr r0 |