[PATCH] [POWERPC] Make Book-E debug handling SMP safe
Kumar Gala
galak at kernel.crashing.org
Wed Apr 16 00:36:32 EST 2008
On Apr 14, 2008, at 11:44 PM, Paul Mackerras wrote:
> Kumar Gala writes:
>
>> global_dbcr0 needs to be a per cpu set of save areas instead of a
>> single
>> global on all processors.
>
> Looks reasonable. At some point you might want to use a per-cpu
> variable instead of an array in order to reduce cacheline bouncing.
Can you point me at an example of this. Do we do any asm access with
per-cpu variables anywhere today?
>> 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).
>
> That should be OK.
Ok. I'll put it my powerpc-next tree.
- k
More information about the Linuxppc-dev
mailing list