Optimized scheduling code. Old code is still available withing DEAD_CODE
and NEW_SCHED_Q definitions. Some minor problems are being traced at the moment. This commit is meant to backup my files. --- Jorrit
This commit is contained in:
@@ -165,7 +165,6 @@ timer_t *tp;
|
||||
* process given with a SYN_ALARM message.
|
||||
*/
|
||||
message m;
|
||||
m.NOTIFY_SOURCE = SYSTASK;
|
||||
m.NOTIFY_TYPE = SYN_ALARM;
|
||||
m.NOTIFY_ARG = get_uptime();
|
||||
m.NOTIFY_FLAGS = 0;
|
||||
|
||||
@@ -35,7 +35,7 @@ message *m_ptr; /* pointer to request message */
|
||||
/* Find the next process with pending signals. */
|
||||
for (rp = BEG_USER_ADDR; rp < END_PROC_ADDR; rp++) {
|
||||
if (rp->p_flags & PENDING) {
|
||||
m_ptr->SIG_PROC = proc_number(rp);
|
||||
m_ptr->SIG_PROC = rp->p_nr;
|
||||
m_ptr->SIG_MAP = rp->p_pending;
|
||||
sigemptyset(&rp->p_pending); /* ball is in PM's court */
|
||||
rp->p_flags &= ~PENDING; /* blocked by SIG_PENDING */
|
||||
|
||||
Reference in New Issue
Block a user