阅读:1128回复:2
0x1a中断?
“判断PCI机是否支持PCI”好象要产生0x1a中断。如何在linux下产生0x1a中断?
|
|
沙发#
发布于:2002-05-09 19:44
调用INT 0X1A 的B101功能,判断是否支持PCI。更详细的说明请参考
旧的程序员大本营光盘。 INT 1A - PCI BIOS v2.0c+ - INSTALLATION CHECK AX = B101h EDI = 00000000h Return: AH = 00h if installed CF clear EDX = 20494350h (\' ICP\') EDI = physical address of protected-mode entry point (see #00731) AL = PCI hardware characteristics (see #00730) BH = PCI interface level major version (BCD) BL = PCI interface level minor version (BCD) CL = number of last PCI bus in system EAX, EBX, ECX, and EDX may be modified all other flags (except IF) may be modified Notes: this function may require up to 1024 byte of stack; it will not enable interrupts if they were disabled before making the call some BIOSes do not change EDI, so applications looking for the protected-mode entry point should set EDI to 00000000h before calling this function |
|
|
板凳#
发布于:2002-05-10 14:36
dear syeagle:
您好!我按您说的试了一下: #include.... main() { asm(\"mov 0xb1,%ah\\n mov 0x01,%al\\n int $0x1a\"); } 编译通过,可是执行是报:segmentation fault! why? 3kx!!!!!!!!!!!!!!1 |
|