gpt4 book ai didi

x86 - 为什么中断描述符表 (IDT) 中的偏移位分为两个字段?

转载 作者:行者123 更新时间:2023-12-02 09:10:41 25 4
gpt4 key购买 nike

对于 IA-32 架构,IDT 条目具有以下格式:

struct IDTDescr {
uint16_t offset_1; // offset bits 0..15
uint16_t selector; // a code segment selector in GDT or LDT
uint8_t zero; // unused, set to 0
uint8_t type_attr; // type and attributes, see below
uint16_t offset_2; // offset bits 16..31
};

为什么 offset_1offset_2 分开?是为了向后兼容吗?

最佳答案

向后兼容 8086 IVT(中断向量表)条目。它们由 16 位 PC 值和 16 位 CS 值组成——与 IDT 条目的前两个字段完全相同。

关于x86 - 为什么中断描述符表 (IDT) 中的偏移位分为两个字段?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52639193/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com