powerpc/mm: Introduce MMU features
[deliverable/linux.git] / arch / powerpc / kernel / vdso.c
index 65639a43e644888577d4bf92328f54c95aef99fb..e619d424f73d784380b2cc3e2a1fb5310b5227cc 100644 (file)
@@ -567,6 +567,11 @@ static __init int vdso_fixup_features(struct lib32_elfinfo *v32,
                do_feature_fixups(cur_cpu_spec->cpu_features,
                                  start64, start64 + size64);
 
+       start64 = find_section64(v64->hdr, "__mmu_ftr_fixup", &size64);
+       if (start64)
+               do_feature_fixups(cur_cpu_spec->mmu_features,
+                                 start64, start64 + size64);
+
        start64 = find_section64(v64->hdr, "__fw_ftr_fixup", &size64);
        if (start64)
                do_feature_fixups(powerpc_firmware_features,
@@ -583,6 +588,11 @@ static __init int vdso_fixup_features(struct lib32_elfinfo *v32,
                do_feature_fixups(cur_cpu_spec->cpu_features,
                                  start32, start32 + size32);
 
+       start32 = find_section32(v32->hdr, "__mmu_ftr_fixup", &size32);
+       if (start32)
+               do_feature_fixups(cur_cpu_spec->mmu_features,
+                                 start32, start32 + size32);
+
 #ifdef CONFIG_PPC64
        start32 = find_section32(v32->hdr, "__fw_ftr_fixup", &size32);
        if (start32)
This page took 0.023545 seconds and 5 git commands to generate.