[RFC/PATCH] powerpc: provide APIs for validating and updating DABR

2009-02-17 Thread Nathan Lynch
A checkpointed task image may specify a value for the DABR (Data Access Breakpoint Register). The restart code needs to validate this value before making any changes to the current task. ptrace_set_debugreg encapsulates the bounds checking and platform dependencies of programming the DABR. Split

Re: [RFC/PATCH] powerpc: provide APIs for validating and updating DABR

2009-02-22 Thread Benjamin Herrenschmidt
> +/* for reprogramming DABR/DAC during restart of a checkpointed task */ > +extern bool debugreg_valid(unsigned long val); > +extern void debugreg_update(struct task_struct *task, unsigned long val); > + Please keep the "index" here. We may want to add support for IABR, and there is some WIP to