汇编
跳转到导航
跳转到搜索
指令
SIDT
将中断描述符表寄存器IDTR--64位宽,16~47Bit存有中断描述符表IDT基地址--的内容存入指定地址单元[1]。如检测 VMware 的代码[2]:
#include <stdio.h>
int main() {
unsigned char idtr[6];
asm("sidt %0" : "=m" (idtr));
if(0xff==idtr[5])
{
return 0;
}
else
{
return 1;
}
}
参见
外部链接
- Linux Assembly: resources
- Linux C编程一站式学习: 第 18 章 x86汇编程序基础
- Learn Arm Assembly - vmlinz's Blog
- GCC-Inline-Assembly-HOWTO
- Intel and AT&T Syntax
- How System Calls Work on Linux/i86
- GAS汇编(1):起步 - 行者无疆 始于足下 - 行走,思考,在路上
- 汇编第一记 - root_Yu_'s Blog - Happy coding I love ChenYu
- X86-64寄存器和栈帧 « 搜索技术博客-淘宝
- x86 - How to check if a binary requires SSE4 or AVX on Linux - Super User
- Implementing cooperative multitasking in Rust
- Intel® Intrinsics Guide