Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 18 Next »

Description

OSCtxSw() is called from the macro OS_TASK_SW(), which in turn is called from OSSched() to perform a task-level context switch. Interrupts are disabled when OSCtxSw() is called.

Prior to calling OSCtxSw()OSTCBCurPtr to point at the OS_TCB of the task that is being switched out, and OSSched() sets OSTCBHighRdyPtr to point at the OS_TCB of the task being switched in.

Files

os.h/os_cpu_a.asm

Prototype

Arguments

None

Returned Values

None

Required Configuration

None

Callers

OSSched().

Notes/Warnings

None

Example Usage

The pseudocode for OSCtxSw() follows:

 

  • No labels