diff options
Diffstat (limited to 'arch/sparc64/mm/init.c')
-rw-r--r-- | arch/sparc64/mm/init.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c index 7faba33202a9..88eb6f6be562 100644 --- a/arch/sparc64/mm/init.c +++ b/arch/sparc64/mm/init.c | |||
@@ -1109,24 +1109,6 @@ static void __init tsb_phys_patch(void) | |||
1109 | } | 1109 | } |
1110 | } | 1110 | } |
1111 | 1111 | ||
1112 | /* Register this cpu's fault status area with the hypervisor. */ | ||
1113 | void __cpuinit sun4v_register_fault_status(void) | ||
1114 | { | ||
1115 | register unsigned long func asm("%o5"); | ||
1116 | register unsigned long arg0 asm("%o0"); | ||
1117 | int cpu = hard_smp_processor_id(); | ||
1118 | struct trap_per_cpu *tb = &trap_block[cpu]; | ||
1119 | unsigned long pa; | ||
1120 | |||
1121 | pa = kern_base + ((unsigned long) tb - KERNBASE); | ||
1122 | func = HV_FAST_MMU_FAULT_AREA_CONF; | ||
1123 | arg0 = pa; | ||
1124 | __asm__ __volatile__("ta %4" | ||
1125 | : "=&r" (func), "=&r" (arg0) | ||
1126 | : "0" (func), "1" (arg0), | ||
1127 | "i" (HV_FAST_TRAP)); | ||
1128 | } | ||
1129 | |||
1130 | /* paging_init() sets up the page tables */ | 1112 | /* paging_init() sets up the page tables */ |
1131 | 1113 | ||
1132 | extern void cheetah_ecache_flush_init(void); | 1114 | extern void cheetah_ecache_flush_init(void); |
@@ -1147,10 +1129,8 @@ void __init paging_init(void) | |||
1147 | tlb_type == hypervisor) | 1129 | tlb_type == hypervisor) |
1148 | tsb_phys_patch(); | 1130 | tsb_phys_patch(); |
1149 | 1131 | ||
1150 | if (tlb_type == hypervisor) { | 1132 | if (tlb_type == hypervisor) |
1151 | sun4v_patch_tlb_handlers(); | 1133 | sun4v_patch_tlb_handlers(); |
1152 | sun4v_register_fault_status(); | ||
1153 | } | ||
1154 | 1134 | ||
1155 | /* Find available physical memory... */ | 1135 | /* Find available physical memory... */ |
1156 | read_obp_memory("available", &pavail[0], &pavail_ents); | 1136 | read_obp_memory("available", &pavail[0], &pavail_ents); |