Messages in this thread | | | From | Roland McGrath <> | Subject | Re: [RFC Patch 6/9] Use virtual debug registers in process/thread handling code | Date | Wed, 15 Oct 2008 18:44:07 -0700 (PDT) |
| |
+/* + * Handle debug registers. This must be done _after_ current + * is updated. + */ + if (unlikely(test_tsk_thread_flag(next_p, TIF_DEBUG))) + switch_to_thread_hw_breakpoint(next_p);
It would be good if we could arrange that this works before current changes. That way it says in __switch_to_xtra, which is off the hot path.
If you are moving it, then you need to match that by removing _TIF_DEBUG from _TIF_WORK_CTXSW_NEXT.
Thanks, Roland
| |