Task Switching in advanced microprocessor.pptx

SantoshRokade4 16 views 10 slides Aug 22, 2024
Slide 1
Slide 1 of 10
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10

About This Presentation

In advanced processor task switching is required for multitasking operation.


Slide Content

Task Switching 80486

Invisible Registers

Task State Segment ( TSS ) Each task is assigned a Task State segment TSS contains- Registers and flag contents Selector for tasks LDT Link to TSS of prviously executing task ( Call / INT )

TSS

Task Switch Call / Jump Directly Point Indirectly Point via Task Gate INT Indirect via Task Gate IRET

Task Switch using TSS - direct CALL / JMP - FAR Segment --- Selector 2. CPL & RPL <= DP[L if no --- exception 3. Check if TSS is in memory if no loaded into memory by exception ISR 4. Copied Current Task's Register content to Current Tasks TSS 5. Load TR with selector & descriptor of new task TSS 6. Registeer values copied from TSS into registers 7.New task Begins.

Task Switch using TSS - indirect - Task Gate CALL / JMP - FAR Segment --- Selector 2. CPL & RPL <= DP[L if no --- exception 3. Task Gate Selector --- Descriptor 4. Check if TSS is in memory if no loaded into memory by exception ISR 5. Copies Current Task's Register content to Current Tasks TSS 6. Load TR with selector & descriptor of new task TSS 7. Registeer values copied from TSS into registers 8.New task Begins.