Hardware 部分缩写整理

本文纯属个人笔记瞎粘贴性质。


HPET

High Precision Event Timer

An HPET chip consists of a 64-bit up-counter (main counter) counting at a frequency of at least 10 MHz, and a set of (at least 3, up to 256) comparators. These comparators are 32- or 64-bit wide. The HPET is programmed via a memory mapped I/O window that is discoverable via ACPI. The HPET circuit in modern PCs is integrated into the southbridge chip.


TSC:

Time Stamp Counter

The instruction RDTSC returns the TSC in EDX:EAX.

the TSC cannot be relied on to provide accurate results — unless great care is taken to correct the possible flaws: rate of tick and whether all cores (processors) have identical values in their time-keeping registers.There is no promise that the timestamp counters of multiple CPUs on a single motherboard will be synchronized.

这货可能不是单调递增,如果一个线程在多个核心上交替执行的话。它的tick频率也会随着CPU平率的改变而改变,而目前CPU为了节能都会根据loading是否重而改变自身频率。总之这货非专业勿用。。


APIC:

Advanced Programmable Interrupt Controller

Interrupt requests can be controlled using two ways:
1. At device end - An Interrupt Enable bit in a control register determines whether device is allowed to generate an interrupt request.
2. At processor end - A priority structure and an interrupt mask in the PS determine whether a given interrupt request is accepted.

Local APICs
LAPICs manage all external interrupts for some specific processor in an SMP system. In addition, it is able to accept and generate inter-processor interrupts (IPIs) between LAPICs. LAPICs may support up to 224 usable interrupt vectors from an I/O APIC. Vectors numbers 0 to 31, out of 0 to 255, are reserved for exception handling by x86 processors.
I/O APICs
I/O APICs contain a redirection table, which is used to route the interrupts it receives from peripheral buses to one or more local APICs.


待续。。。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值