Task Management notes IA-32-3A Chapter 6
2014-01-30 02:35
381 查看
1. What is task?
A task is a unit of work that a processor can dispatch, execute, and suspend.
2. Task Structure.
A task is made up of two parts: a task execution space and a task-state segment
(TSS). The task execution space consists of a code segment(cs), a stack segment(ss), and
one or more data segments(ds).
The TSS specifies the segments that make up the task execution space and provides
3. Executing a task.
Software or the processor can dispatch a task for execution in one of the following
ways:
*A explicit call to a task with the CALL instruction.
*A explicit jump to a task with the JMP instruction.
*An implicit call (by the processor) to an interrupt-handler task.
*An implicit call to an exception-handler task.
*A return (initiated with an IRET instruction) when the NT flag in the EFLAGS
register is set.
4. Data structure for handling task-related activities:
a storage place for task state information. In multitasking systems, the TSS also
provides a mechanism for linking tasks.
Task-state segment (TSS). including all the general registers, segment selectors, iomap base address, espX...Similar as trap frame in jos.
Task-gate descriptor. -> A way to access TSS descriptor( final goal is still access a task), maybe in GDT, LDT or IDT.
TSS descriptor. -> it's stored only in GDT, not LDT or IDT
Task register. 2 parts, visible part point to TSS descriptor in GDT, invisible part cache the segment descriptor. Use STR/LDR to w/r visible part.
NT flag in the EFLAGS register.
5. What's in GDT?
Different Segment Descriptors: Kernel text, Kernel data, User text, User data, TSS descriptors for each CPU.
A task is a unit of work that a processor can dispatch, execute, and suspend.
2. Task Structure.
A task is made up of two parts: a task execution space and a task-state segment
(TSS). The task execution space consists of a code segment(cs), a stack segment(ss), and
one or more data segments(ds).
The TSS specifies the segments that make up the task execution space and provides
3. Executing a task.
Software or the processor can dispatch a task for execution in one of the following
ways:
*A explicit call to a task with the CALL instruction.
*A explicit jump to a task with the JMP instruction.
*An implicit call (by the processor) to an interrupt-handler task.
*An implicit call to an exception-handler task.
*A return (initiated with an IRET instruction) when the NT flag in the EFLAGS
register is set.
4. Data structure for handling task-related activities:
a storage place for task state information. In multitasking systems, the TSS also
provides a mechanism for linking tasks.
Task-state segment (TSS). including all the general registers, segment selectors, iomap base address, espX...Similar as trap frame in jos.
Task-gate descriptor. -> A way to access TSS descriptor( final goal is still access a task), maybe in GDT, LDT or IDT.
TSS descriptor. -> it's stored only in GDT, not LDT or IDT
Task register. 2 parts, visible part point to TSS descriptor in GDT, invisible part cache the segment descriptor. Use STR/LDR to w/r visible part.
NT flag in the EFLAGS register.
5. What's in GDT?
Different Segment Descriptors: Kernel text, Kernel data, User text, User data, TSS descriptors for each CPU.
相关文章推荐
- 零元学Expression Blend 4 - Chapter 32 简单轻松的学会如何使用Visual States(上)
- Chapter 32:动态规划一 总结
- Chapter 2 Open Book——32
- English,The Da Vinci Code, Chapter 32
- Chapter 32: 动态规划小测总结 (USACO的???
- Chapter 1 First Sight——32
- ARMv8-A系列学习笔记(1)--Chapter 1 Introduction.The change from 32-bit to 64-bit
- apue 学习之 Chapter 4 - chown
- wxpython 32 位 ,python 64 位问题
- How to determine whether a file is 32 bit or 64 bit
- 【C Prime Plus】学习笔记,Chapter 10,数组和指针之三
- nyoj 32 组合数【简单dfs】
- Visualization Analysis and Design Tamara Munzner chapter 6 读书笔记
- Windows Phone 7实用开发技巧(32):照片角度处理
- 从1到n整数中1出现的次数——剑指offer面试题32
- some answers for chapter 3
- PCI 32,PCI 64和PCI-X,PCI-E图解差别
- Chapter 11 – Running the simulation
- UnsatisfiedLinkError:libwebviewchromium.so is 32-bit instead of 64-bit
- 《JAVA 语言程序设计基础篇》chapter 5 方法