diff options
Diffstat (limited to 'arch/powerpc/kernel/process.c')
-rw-r--r-- | arch/powerpc/kernel/process.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index db2497ccc111..957bded0020d 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
@@ -254,7 +254,7 @@ void do_dabr(struct pt_regs *regs, unsigned long address, | |||
254 | return; | 254 | return; |
255 | 255 | ||
256 | /* Clear the DAC and struct entries. One shot trigger */ | 256 | /* Clear the DAC and struct entries. One shot trigger */ |
257 | #if (defined(CONFIG_44x) || defined(CONFIG_BOOKE)) | 257 | #if defined(CONFIG_BOOKE) |
258 | mtspr(SPRN_DBCR0, mfspr(SPRN_DBCR0) & ~(DBSR_DAC1R | DBSR_DAC1W | 258 | mtspr(SPRN_DBCR0, mfspr(SPRN_DBCR0) & ~(DBSR_DAC1R | DBSR_DAC1W |
259 | | DBCR0_IDM)); | 259 | | DBCR0_IDM)); |
260 | #endif | 260 | #endif |
@@ -276,17 +276,15 @@ int set_dabr(unsigned long dabr) | |||
276 | { | 276 | { |
277 | __get_cpu_var(current_dabr) = dabr; | 277 | __get_cpu_var(current_dabr) = dabr; |
278 | 278 | ||
279 | #ifdef CONFIG_PPC_MERGE /* XXX for now */ | ||
280 | if (ppc_md.set_dabr) | 279 | if (ppc_md.set_dabr) |
281 | return ppc_md.set_dabr(dabr); | 280 | return ppc_md.set_dabr(dabr); |
282 | #endif | ||
283 | 281 | ||
284 | /* XXX should we have a CPU_FTR_HAS_DABR ? */ | 282 | /* XXX should we have a CPU_FTR_HAS_DABR ? */ |
285 | #if defined(CONFIG_PPC64) || defined(CONFIG_6xx) | 283 | #if defined(CONFIG_PPC64) || defined(CONFIG_6xx) |
286 | mtspr(SPRN_DABR, dabr); | 284 | mtspr(SPRN_DABR, dabr); |
287 | #endif | 285 | #endif |
288 | 286 | ||
289 | #if defined(CONFIG_44x) || defined(CONFIG_BOOKE) | 287 | #if defined(CONFIG_BOOKE) |
290 | mtspr(SPRN_DAC1, dabr); | 288 | mtspr(SPRN_DAC1, dabr); |
291 | #endif | 289 | #endif |
292 | 290 | ||
@@ -373,7 +371,7 @@ struct task_struct *__switch_to(struct task_struct *prev, | |||
373 | if (unlikely(__get_cpu_var(current_dabr) != new->thread.dabr)) | 371 | if (unlikely(__get_cpu_var(current_dabr) != new->thread.dabr)) |
374 | set_dabr(new->thread.dabr); | 372 | set_dabr(new->thread.dabr); |
375 | 373 | ||
376 | #if defined(CONFIG_44x) || defined(CONFIG_BOOKE) | 374 | #if defined(CONFIG_BOOKE) |
377 | /* If new thread DAC (HW breakpoint) is the same then leave it */ | 375 | /* If new thread DAC (HW breakpoint) is the same then leave it */ |
378 | if (new->thread.dabr) | 376 | if (new->thread.dabr) |
379 | set_dabr(new->thread.dabr); | 377 | set_dabr(new->thread.dabr); |
@@ -568,7 +566,7 @@ void flush_thread(void) | |||
568 | current->thread.dabr = 0; | 566 | current->thread.dabr = 0; |
569 | set_dabr(0); | 567 | set_dabr(0); |
570 | 568 | ||
571 | #if defined(CONFIG_44x) || defined(CONFIG_BOOKE) | 569 | #if defined(CONFIG_BOOKE) |
572 | current->thread.dbcr0 &= ~(DBSR_DAC1R | DBSR_DAC1W); | 570 | current->thread.dbcr0 &= ~(DBSR_DAC1R | DBSR_DAC1W); |
573 | #endif | 571 | #endif |
574 | } | 572 | } |