Changeset c030818 in mainline for kernel/generic/src/proc/scheduler.c


Ignore:
Timestamp:
2023-02-05T14:43:59Z (22 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
33a3be8
Parents:
c1b073b7
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2022-08-20 12:17:49)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-05 14:43:59)
Message:

Move saved interrupt level from context_t to thread_t

Unlike the rest of the context structure, ipl is not
a register, and is (re)stored using a separate mechanism from
context_set()/_restore(). Therefore, it does not belong there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/scheduler.c

    rc1b073b7 rc030818  
    336336
    337337                        irq_spinlock_unlock(&THREAD->lock, false);
    338                         interrupts_restore(THREAD->saved_context.ipl);
     338                        interrupts_restore(THREAD->saved_ipl);
    339339
    340340                        return;
     
    347347                 *
    348348                 */
    349                 THREAD->saved_context.ipl = ipl;
     349                THREAD->saved_ipl = ipl;
    350350        }
    351351
Note: See TracChangeset for help on using the changeset viewer.