[POWERPC] Make Book-E debug handling SMP safe
authorKumar Gala <galak@kernel.crashing.org>
Wed, 9 Apr 2008 21:15:40 +0000 (16:15 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 17 Apr 2008 06:01:40 +0000 (01:01 -0500)
commit4eaddb4d7ec380abe95523ba0bdbbe8558f7fef4
treefa7b3d5f464185b8c05fa4defeff98abee5c8a45
parent3dd82a1ea72438a545634b3ef90c53313d2caffa
[POWERPC] Make Book-E debug handling SMP safe

global_dbcr0 needs to be a per cpu set of save areas instead of a single
global on all processors.

Also, we switch to using DBCR0_IDM to determine if the user space app is
being debugged as its a more consistent way.  In the future we should
support features like hardware breakpoint and watchpoints which will
have DBCR0_IDM set but not necessarily DBCR0_IC (single step).

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/kernel/entry_32.S