阅读:1012回复:1
pci驱动问题!
调用INT 0X1A 的B101功能,判断是否支持PCI
#include.... main() { asm(\"mov $0xb1,%ah\\n //1 mov $0x01,%al\"); //2 asm(\"int $0x1a\"); //3 } 编译通过,可是单步执行到3时报:segmentation fault! why? 3kx!!!!!!!!!!!!!!1 |
|
最新喜欢:Beshy |
沙发#
发布于:2002-05-11 12:15
楼上老兄请仔细看一下我贴给你的东西,调用时除了功能号还有其它的东西。
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 SeeAlso: AX=B181h |
|
|