Skip to content
  • Philippe Gerum's avatar
    cobalt/thread: pipeline: abstract synchronous single-stepping code · d0f63400
    Philippe Gerum authored and Jan Kiszka's avatar Jan Kiszka committed
    
    
    Although the synchronous single-stepping code has moved to the I-pipe
    section, we should be able to reuse the current logic nearly as is on
    top of Dovetail, with only minor adjustments.
    
    However, compared to the previous implementation, the single-stepping
    status (XNCONTHI) and the user return notifier are armed _after_ the
    personality handlers have run, in the relaxing path for the current
    thread (see xnthread_relax()). This change should not affect the
    overall logic, assuming no custom relax handler was depending on the
    original sequence of actions (which they should definitely not
    anyway).
    
    We keep this commit which does introduce a small functional change
    separated from the other scheduler-related modifications, as a
    convenience for chasing regressions if need be.
    
    Signed-off-by: default avatarPhilippe Gerum <rpm@xenomai.org>
    Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
    d0f63400