All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [PATCH] Unfreeze timers when debugged target exits
@ 2008-05-09  9:29 Jan Kiszka
  2008-05-09  9:35 ` Gilles Chanteperdrix
  2008-05-09  9:44 ` Philippe Gerum
  0 siblings, 2 replies; 9+ messages in thread
From: Jan Kiszka @ 2008-05-09  9:29 UTC (permalink / raw)
  To: Xenomai-core

I expressed my skepticism about this global timer freeze before :->, and
now it hit me unpleasantly (Customer: "Is it normal that Xenomai stops
working after the gdb session?" Jan [scratching head]: "Hmm, no...").

After more scratching I think I found the reason: The target decided to
die after some fault, but Xenomai missed to unfreeze the timers. Patch
below fixes that.

Without hearing complains, this also goes into trunk/2.4.x later today.

Jan

---
 ksrc/nucleus/shadow.c |    3 +++
 1 file changed, 3 insertions(+)

Index: b/ksrc/nucleus/shadow.c
===================================================================
--- a/ksrc/nucleus/shadow.c
+++ b/ksrc/nucleus/shadow.c
@@ -2148,6 +2148,9 @@ static inline void do_taskexit_event(str
 	if (!thread)
 		return;
 
+	if (xnthread_test_info(thread, XNDEBUG))
+		unlock_timers();
+
 	if (xnpod_shadow_p())
 		xnshadow_relax(0);
 

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-05-09 12:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-09  9:29 [Xenomai-core] [PATCH] Unfreeze timers when debugged target exits Jan Kiszka
2008-05-09  9:35 ` Gilles Chanteperdrix
2008-05-09  9:40   ` Jan Kiszka
2008-05-09  9:44     ` Jan Kiszka
2008-05-09  9:47   ` Philippe Gerum
2008-05-09  9:44 ` Philippe Gerum
2008-05-09  9:53   ` Gilles Chanteperdrix
2008-05-09 10:06     ` Philippe Gerum
2008-05-09 12:27       ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.