kgdb.c (84abd88a70090cf00f9e45c3a81680874f17626e) | kgdb.c (172ae2e7f8ff9053905a36672453a6d2ff95b182) |
---|---|
1/* 2 * PowerPC backend to the KGDB stub. 3 * 4 * 1998 (c) Michael AK Tesch (tesch@cs.wisc.edu) 5 * Copyright (C) 2003 Timesys Corporation. 6 * Copyright (C) 2004-2006 MontaVista Software, Inc. 7 * PPC64 Mods (C) 2005 Frank Rowand (frowand@mvista.com) 8 * PPC32 support restored by Vitaly Wool <vwool@ru.mvista.com> and --- 319 unchanged lines hidden (view full) --- 328 case 'c': 329 /* handle the optional parameter */ 330 if (kgdb_hex2long(&ptr, &addr)) 331 linux_regs->nip = addr; 332 333 atomic_set(&kgdb_cpu_doing_single_step, -1); 334 /* set the trace bit if we're stepping */ 335 if (remcom_in_buffer[0] == 's') { | 1/* 2 * PowerPC backend to the KGDB stub. 3 * 4 * 1998 (c) Michael AK Tesch (tesch@cs.wisc.edu) 5 * Copyright (C) 2003 Timesys Corporation. 6 * Copyright (C) 2004-2006 MontaVista Software, Inc. 7 * PPC64 Mods (C) 2005 Frank Rowand (frowand@mvista.com) 8 * PPC32 support restored by Vitaly Wool <vwool@ru.mvista.com> and --- 319 unchanged lines hidden (view full) --- 328 case 'c': 329 /* handle the optional parameter */ 330 if (kgdb_hex2long(&ptr, &addr)) 331 linux_regs->nip = addr; 332 333 atomic_set(&kgdb_cpu_doing_single_step, -1); 334 /* set the trace bit if we're stepping */ 335 if (remcom_in_buffer[0] == 's') { |
336#if defined(CONFIG_40x) || defined(CONFIG_BOOKE) | 336#ifdef CONFIG_PPC_ADV_DEBUG_REGS |
337 mtspr(SPRN_DBCR0, 338 mfspr(SPRN_DBCR0) | DBCR0_IC | DBCR0_IDM); 339 linux_regs->msr |= MSR_DE; 340#else 341 linux_regs->msr |= MSR_SE; 342#endif 343 kgdb_single_step = 1; 344 atomic_set(&kgdb_cpu_doing_single_step, --- 59 unchanged lines hidden --- | 337 mtspr(SPRN_DBCR0, 338 mfspr(SPRN_DBCR0) | DBCR0_IC | DBCR0_IDM); 339 linux_regs->msr |= MSR_DE; 340#else 341 linux_regs->msr |= MSR_SE; 342#endif 343 kgdb_single_step = 1; 344 atomic_set(&kgdb_cpu_doing_single_step, --- 59 unchanged lines hidden --- |