<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/syslinux.git/core/thread, branch multifs</title>
<subtitle>git.kernel.org: pub/scm/boot/syslinux/syslinux.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/'/>
<entry>
<title>debug: Adding -DDEBUG_THREAD</title>
<updated>2015-09-04T15:57:52+00:00</updated>
<author>
<name>Erwan Velu</name>
<email>erwanaliasr1@gmail.com</email>
</author>
<published>2015-08-19T05:07:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=74b6a2777e6351edc85aac21a69dd51be5e1e9aa'/>
<id>74b6a2777e6351edc85aac21a69dd51be5e1e9aa</id>
<content type='text'>
When debugging some syslinux code with debugging enabled, the threading
code is so verbose that it completly slow down syslinux but also is so
verbose that any other trace is invisible in the flood.

This commit aims at requesting people to explicitly enable the
threading logs by using -DDEBUG_THREAD.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When debugging some syslinux code with debugging enabled, the threading
code is so verbose that it completly slow down syslinux but also is so
verbose that any other trace is invisible in the flood.

This commit aims at requesting people to explicitly enable the
threading logs by using -DDEBUG_THREAD.
</pre>
</div>
</content>
</entry>
<entry>
<title>core: make mbox_post()/__sem_down_slow() check if valid</title>
<updated>2013-08-03T20:01:28+00:00</updated>
<author>
<name>Gene Cumm</name>
<email>gene.cumm@gmail.com</email>
</author>
<published>2013-08-03T20:01:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=ceb14335790f70378dddfbf0202d2bcda0c54a03'/>
<id>ceb14335790f70378dddfbf0202d2bcda0c54a03</id>
<content type='text'>
If the mailbox/semaphore is invalid, disallow additions.

Signed-off-by: Gene Cumm &lt;gene.cumm@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the mailbox/semaphore is invalid, disallow additions.

Signed-off-by: Gene Cumm &lt;gene.cumm@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>core: mbox/semaphore NULL checks</title>
<updated>2013-08-03T19:59:26+00:00</updated>
<author>
<name>Gene Cumm</name>
<email>gene.cumm@gmail.com</email>
</author>
<published>2013-08-03T19:59:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=dc3059be195f0b1c878273f648dcaf1b45c5a860'/>
<id>dc3059be195f0b1c878273f648dcaf1b45c5a860</id>
<content type='text'>
Also set mbox invalid and mbox pointer NULL when free()d

Signed-off-by: Gene Cumm &lt;gene.cumm@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also set mbox invalid and mbox pointer NULL when free()d

Signed-off-by: Gene Cumm &lt;gene.cumm@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pxe: always start the idle thread, in case we need it</title>
<updated>2012-05-30T02:33:20+00:00</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@zytor.com</email>
</author>
<published>2012-05-30T02:33:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=7699e996c613e51049e0bad6ade32215ac263289'/>
<id>7699e996c613e51049e0bad6ade32215ac263289</id>
<content type='text'>
Always start the idle thread, but leave it blocked unless we have an
indication that interrupts are not working.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Always start the idle thread, but leave it blocked unless we have an
indication that interrupts are not working.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>thread: Add magic number, debugging code, min stack size</title>
<updated>2012-03-30T23:13:02+00:00</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@zytor.com</email>
</author>
<published>2012-03-30T23:09:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=12b2033fc541241f1b5a286a1a80dd309fe2a708'/>
<id>12b2033fc541241f1b5a286a1a80dd309fe2a708</id>
<content type='text'>
Add a magic number to the thread control block; this helps check for
memory overwrites.

Add dprintf()s to the scheduler.

Force a minimum stack size.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a magic number to the thread control block; this helps check for
memory overwrites.

Add dprintf()s to the scheduler.

Force a minimum stack size.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>idle_thread: safer interrupt handling</title>
<updated>2012-03-28T06:02:38+00:00</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@zytor.com</email>
</author>
<published>2012-03-28T06:02:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=6b6d07cc4afdb8f1bf56f44f3fee6f02a590bb84'/>
<id>6b6d07cc4afdb8f1bf56f44f3fee6f02a590bb84</id>
<content type='text'>
Make sure we use "sti ; hlt" to make sure we don't go to sleep when we
suddenly have an interrupt coming in.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make sure we use "sti ; hlt" to make sure we don't go to sleep when we
suddenly have an interrupt coming in.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>thread: fix warnings</title>
<updated>2011-05-02T01:05:23+00:00</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@zytor.com</email>
</author>
<published>2011-05-02T01:05:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=f8e82f9f4dab637783b5dbcec61956bba1c57faf'/>
<id>f8e82f9f4dab637783b5dbcec61956bba1c57faf</id>
<content type='text'>
Fix set-but-not-used variable warnings and undefined references.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix set-but-not-used variable warnings and undefined references.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>thread: simplify the scheduler</title>
<updated>2011-04-30T19:21:57+00:00</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@zytor.com</email>
</author>
<published>2011-04-30T19:21:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=da6d596aae0ebd3d4f6042ae361812242981a46e'/>
<id>da6d596aae0ebd3d4f6042ae361812242981a46e</id>
<content type='text'>
need_schedule was no longer used by anything else, and schedule_lock
only verified if we were being called from inside sched_hook_func().
Make the localness of this data explicit.

While we're at it, call kaboom if we ever find ourselves without a
runnable thread (which should not be possible, as the idle thread is
not allowed to block.)

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
need_schedule was no longer used by anything else, and schedule_lock
only verified if we were being called from inside sched_hook_func().
Make the localness of this data explicit.

While we're at it, call kaboom if we ever find ourselves without a
runnable thread (which should not be possible, as the idle thread is
not allowed to block.)

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>exit_thread: easier form of the same test...</title>
<updated>2011-04-30T19:11:48+00:00</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@zytor.com</email>
</author>
<published>2011-04-30T19:11:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=c69a11a0e4e232965845b8fa3e059f10e6715ef8'/>
<id>c69a11a0e4e232965845b8fa3e059f10e6715ef8</id>
<content type='text'>
Instead of testing __schedule_lock explicitly, we can just call
kaboom() if the scheduler returns, since that can only happen if the
scheduler lock is set, and is in fact the reason we can't be here with
the scheduler locked in the first place.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of testing __schedule_lock explicitly, we can just call
kaboom() if the scheduler returns, since that can only happen if the
scheduler lock is set, and is in fact the reason we can't be here with
the scheduler locked in the first place.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>exit_thread: make sure we don't run under scheduler lock</title>
<updated>2011-04-30T19:09:41+00:00</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@zytor.com</email>
</author>
<published>2011-04-30T19:09:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=4db50faba162ad1c5803173ac562326934d016e1'/>
<id>4db50faba162ad1c5803173ac562326934d016e1</id>
<content type='text'>
If we ever end up in __exit_thread with the scheduler locked, we're
completely fscked.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If we ever end up in __exit_thread with the scheduler locked, we're
completely fscked.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
