现在的位置: 首页 > 综合 > 正文

驱动系统重启方法

2013年10月08日 ⁄ 综合 ⁄ 共 481字 ⁄ 字号 评论关闭

1. out  0x92, 0x01 

主要对A20的控制
; Bit 0 - Setting to 1 causes a fast reset (Used to switch back to real mode)
; Bit 1 - 0: disable A20; 1: enable A20
; Bit 2 - Manufacturer defined
; Bit 3 - power on password bytes (CMOS bytes 0x38-0x3f or 0x36-0x3f). 0: accessible, 1: inaccessible

; Bits 4-5 - Manufacturer defined
; Bits 6-7 - 00: HDD activity LED off; any other value is "on"

2.out  0x64, 0xFF

8043 键盘控制器

; 0x60 读   读输入缓冲
; 0x60 写   写输出缓冲
; 0x64 读   读状态寄存器
; 0x64 写   发送命令到控制器

3 .NtShutdownSystem/ZwInitiatePowerAction

4. KeBugCheck(POWER_FAILURE_SIMULATE);

5. HalReturnToFirmware

抱歉!评论已关闭.