diff options
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/cputable.c | 5 | ||||
-rw-r--r-- | arch/powerpc/mm/mem.c | 3 | ||||
-rw-r--r-- | arch/powerpc/platforms/iseries/htab.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/powermac/setup.c | 14 |
4 files changed, 13 insertions, 11 deletions
diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c index 214f3b088edf..1fb80baebc87 100644 --- a/arch/powerpc/kernel/cputable.c +++ b/arch/powerpc/kernel/cputable.c | |||
@@ -303,7 +303,7 @@ struct cpu_spec cpu_specs[] = { | |||
303 | .cpu_name = "601", | 303 | .cpu_name = "601", |
304 | .cpu_features = CPU_FTRS_PPC601, | 304 | .cpu_features = CPU_FTRS_PPC601, |
305 | .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR | | 305 | .cpu_user_features = COMMON_USER | PPC_FEATURE_601_INSTR | |
306 | PPC_FEATURE_UNIFIED_CACHE, | 306 | PPC_FEATURE_UNIFIED_CACHE | PPC_FEATURE_NO_TB, |
307 | .icache_bsize = 32, | 307 | .icache_bsize = 32, |
308 | .dcache_bsize = 32, | 308 | .dcache_bsize = 32, |
309 | }, | 309 | }, |
@@ -724,7 +724,8 @@ struct cpu_spec cpu_specs[] = { | |||
724 | .pvr_value = 0x00201400, | 724 | .pvr_value = 0x00201400, |
725 | .cpu_name = "403GCX", | 725 | .cpu_name = "403GCX", |
726 | .cpu_features = CPU_FTRS_40X, | 726 | .cpu_features = CPU_FTRS_40X, |
727 | .cpu_user_features = PPC_FEATURE_32 | PPC_FEATURE_HAS_MMU, | 727 | .cpu_user_features = PPC_FEATURE_32 | |
728 | PPC_FEATURE_HAS_MMU | PPC_FEATURE_NO_TB, | ||
728 | .icache_bsize = 16, | 729 | .icache_bsize = 16, |
729 | .dcache_bsize = 16, | 730 | .dcache_bsize = 16, |
730 | }, | 731 | }, |
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index 55b5860ed3c9..5e9206715f09 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c | |||
@@ -477,8 +477,7 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long address, | |||
477 | if (cpus_equal(vma->vm_mm->cpu_vm_mask, tmp)) | 477 | if (cpus_equal(vma->vm_mm->cpu_vm_mask, tmp)) |
478 | local = 1; | 478 | local = 1; |
479 | 479 | ||
480 | __hash_page(address, pte_val(pte) & (_PAGE_USER|_PAGE_RW), vsid, ptep, | 480 | __hash_page(address, 0, vsid, ptep, 0x300, local); |
481 | 0x300, local); | ||
482 | local_irq_restore(flags); | 481 | local_irq_restore(flags); |
483 | #endif | 482 | #endif |
484 | #endif | 483 | #endif |
diff --git a/arch/powerpc/platforms/iseries/htab.c b/arch/powerpc/platforms/iseries/htab.c index c00b8e9e2b3c..b3c6c3374ca6 100644 --- a/arch/powerpc/platforms/iseries/htab.c +++ b/arch/powerpc/platforms/iseries/htab.c | |||
@@ -68,7 +68,7 @@ static long iSeries_hpte_insert(unsigned long hpte_group, unsigned long va, | |||
68 | } | 68 | } |
69 | 69 | ||
70 | if (slot < 0) { /* MSB set means secondary group */ | 70 | if (slot < 0) { /* MSB set means secondary group */ |
71 | vflags |= HPTE_V_VALID; | 71 | vflags |= HPTE_V_SECONDARY; |
72 | secondary = 1; | 72 | secondary = 1; |
73 | slot &= 0x7fffffffffffffff; | 73 | slot &= 0x7fffffffffffffff; |
74 | } | 74 | } |
diff --git a/arch/powerpc/platforms/powermac/setup.c b/arch/powerpc/platforms/powermac/setup.c index da0cb165dfc6..50f5dd787900 100644 --- a/arch/powerpc/platforms/powermac/setup.c +++ b/arch/powerpc/platforms/powermac/setup.c | |||
@@ -669,7 +669,7 @@ static int pmac_check_legacy_ioport(unsigned int baseport) | |||
669 | 669 | ||
670 | static int __init pmac_declare_of_platform_devices(void) | 670 | static int __init pmac_declare_of_platform_devices(void) |
671 | { | 671 | { |
672 | struct device_node *np; | 672 | struct device_node *np, *npp; |
673 | 673 | ||
674 | np = find_devices("uni-n"); | 674 | np = find_devices("uni-n"); |
675 | if (np) { | 675 | if (np) { |
@@ -687,14 +687,16 @@ static int __init pmac_declare_of_platform_devices(void) | |||
687 | if (np) | 687 | if (np) |
688 | of_platform_device_create(np, "platinum", NULL); | 688 | of_platform_device_create(np, "platinum", NULL); |
689 | 689 | ||
690 | np = find_devices("u3"); | 690 | npp = of_find_node_by_name(NULL, "u3"); |
691 | if (np) { | 691 | if (npp) { |
692 | for (np = np->child; np != NULL; np = np->sibling) | 692 | for (np = NULL; (np = of_get_next_child(npp, np)) != NULL;) { |
693 | if (strncmp(np->name, "i2c", 3) == 0) { | 693 | if (strncmp(np->name, "i2c", 3) == 0) { |
694 | of_platform_device_create(np, "u3-i2c", | 694 | of_platform_device_create(np, "u3-i2c", NULL); |
695 | NULL); | 695 | of_node_put(np); |
696 | break; | 696 | break; |
697 | } | 697 | } |
698 | } | ||
699 | of_node_put(npp); | ||
698 | } | 700 | } |
699 | np = of_find_node_by_type(NULL, "smu"); | 701 | np = of_find_node_by_type(NULL, "smu"); |
700 | if (np) { | 702 | if (np) { |