zhao
驱动牛犊
驱动牛犊
  • 注册日期2002-04-25
  • 最后登录2003-05-16
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1081回复:2

0x1a中断?

楼主#
更多 发布于:2002-05-09 14:05
  “判断PCI机是否支持PCI”好象要产生0x1a中断。如何在linux下产生0x1a中断?
shyeagle
驱动老牛
驱动老牛
  • 注册日期2002-04-30
  • 最后登录2007-07-31
  • 粉丝1
  • 关注1
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于: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
[url=http://www.01study.com]01空间网[/url] [url=http://www.01study.com/forum/dispbbs.asp?boardID=73&ID=193&skin=0]版主招募[/url] [img]http://shy2003.vip.sina.com/map/yjs.gif[/img]
zhao
驱动牛犊
驱动牛犊
  • 注册日期2002-04-25
  • 最后登录2003-05-16
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于: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
游客

返回顶部