qemu-shutdown-x86.S 292 B

123456789101112131415161718
  1. movl $0x80000b80, %eax
  2. movw $0xcf8, %dx
  3. outl %eax, %dx
  4. movw $0xcfc, %dx
  5. inb %dx, %al
  6. orb $1, %al
  7. outb %al, %dx
  8. movl $0x80000b40, %eax
  9. movw $0xcf8, %dx
  10. outl %eax, %dx
  11. movl $0x7001, %eax
  12. movw $0xcfc, %dx
  13. outl %eax, %dx
  14. movw $0x2000, %ax
  15. movw $0x7004, %dx
  16. outw %ax, %dx