Ignore:
Timestamp:
2024-01-18T16:31:40Z (18 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
1c1767f
Parents:
ed7e057
Message:

Call after_thread_ran_arch() before context switch

This is only used on sparc, and requires an additional window flush
before the register is sampled. Doing it this way allows switching
from one thread to another without the intermediary step of
a special scheduler context.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/proc/sun4u/scheduler.c

    red7e057 r29029ac0  
    7676{
    7777        if (THREAD->uspace) {
     78                asm volatile ("flushw");
     79
    7880                /* sample the state of the userspace window buffer */
    7981                THREAD->arch.uspace_window_buffer =
Note: See TracChangeset for help on using the changeset viewer.