]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/powerpc/mm/mmu_context_nohash.c
powerpc/fsl-booke: Move loadcam_entry back to asm code to fix SMP ftrace
[mirror_ubuntu-artful-kernel.git] / arch / powerpc / mm / mmu_context_nohash.c
index 1f2d9ff098952d7b760b8d4e15adf7c709fae41d..ddfd7ad4e1d60ade761b5f039b745307d6ce5a82 100644 (file)
@@ -395,10 +395,18 @@ void __init mmu_context_init(void)
         * the PID/TID comparison is disabled, so we can use a TID of zero
         * to represent all kernel pages as shared among all contexts.
         *      -- Dan
+        *
+        * The IBM 47x core supports 16-bit PIDs, thus 65535 contexts. We
+        * should normally never have to steal though the facility is
+        * present if needed.
+        *      -- BenH
         */
        if (mmu_has_feature(MMU_FTR_TYPE_8xx)) {
                first_context = 0;
                last_context = 15;
+       } else if (mmu_has_feature(MMU_FTR_TYPE_47x)) {
+               first_context = 1;
+               last_context = 65535;
        } else {
                first_context = 1;
                last_context = 255;