X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fpowerpc%2Fmm%2Fslb_low.S;h=abfaabf667bfb414b117429b9c6b9b101758c527;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=dbc1abbde0381f6a821a2d87fc1b55ab0b00deda;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/arch/powerpc/mm/slb_low.S b/arch/powerpc/mm/slb_low.S index dbc1abbde..abfaabf66 100644 --- a/arch/powerpc/mm/slb_low.S +++ b/arch/powerpc/mm/slb_low.S @@ -14,6 +14,7 @@ * 2 of the License, or (at your option) any later version. */ +#include #include #include #include @@ -58,19 +59,10 @@ _GLOBAL(slb_miss_kernel_load_linear) li r11,0 b slb_finish_load -1: /* vmalloc/ioremap mapping encoding bits, the "li" instructions below +1: /* vmalloc/ioremap mapping encoding bits, the "li" instruction below * will be patched by the kernel at boot */ -BEGIN_FTR_SECTION - /* check whether this is in vmalloc or ioremap space */ - clrldi r11,r10,48 - cmpldi r11,(VMALLOC_SIZE >> 28) - 1 - bgt 5f - lhz r11,PACAVMALLOCSLLP(r13) - b slb_finish_load -5: -END_FTR_SECTION_IFCLR(CPU_FTR_CI_LARGE_PAGE) -_GLOBAL(slb_miss_kernel_load_io) +_GLOBAL(slb_miss_kernel_load_virtual) li r11,0 b slb_finish_load @@ -104,7 +96,9 @@ _GLOBAL(slb_miss_user_load_huge) 1: #endif /* CONFIG_HUGETLB_PAGE */ - lhz r11,PACACONTEXTSLLP(r13) +_GLOBAL(slb_miss_user_load_normal) + li r11,0 + 2: ld r9,PACACONTEXTID(r13) rldimi r10,r9,USER_ESID_BITS,0