Turn off QEMU ACPI-way since new releases don't have shutdown port
anymore.
This commit is contained in:
parent
a21eec9ec5
commit
5121223465
6 changed files with 51 additions and 27 deletions
|
@ -65,7 +65,7 @@ _start:
|
|||
|
||||
/* IOPERM. */
|
||||
movl $SYSCALL_ARCH, %eax
|
||||
pushl $iopl_arg1
|
||||
pushl $ioperm_arg1
|
||||
pushl $SYSCALL_ARCH_IOPERM
|
||||
pushl $0
|
||||
int $SYSCALL_INT
|
||||
|
@ -73,7 +73,7 @@ _start:
|
|||
|
||||
/* IOPERM. */
|
||||
movl $SYSCALL_ARCH, %eax
|
||||
pushl $iopl_arg2
|
||||
pushl $ioperm_arg2
|
||||
pushl $SYSCALL_ARCH_IOPERM
|
||||
pushl $0
|
||||
int $SYSCALL_INT
|
||||
|
@ -104,6 +104,6 @@ ioperm_arg1:
|
|||
.long 8
|
||||
.long 1
|
||||
ioperm_arg2:
|
||||
.long 0x1000
|
||||
.long 0x7000
|
||||
.long 8
|
||||
.long 1
|
||||
|
|
|
@ -85,6 +85,6 @@ ioperm_arg1:
|
|||
.long 8
|
||||
.long 1
|
||||
ioperm_arg2:
|
||||
.long 0x1000
|
||||
.long 0x7000
|
||||
.long 8
|
||||
.long 1
|
||||
|
|
|
@ -1,18 +1,17 @@
|
|||
movl $0x80000b80, %eax
|
||||
movw $0xcf8, %dx
|
||||
outl %eax, %dx
|
||||
movl $0x1001, %eax
|
||||
movw $0xcfc, %dx
|
||||
inb %al, %dx
|
||||
inb %dx, %al
|
||||
orb $1, %al
|
||||
outb %al, %dx
|
||||
|
||||
movl $0x80000b40, %eax
|
||||
movw $0xcf8, %dx
|
||||
outl %eax, %dx
|
||||
movl $0x1001, %eax
|
||||
movl $0x7001, %eax
|
||||
movw $0xcfc, %dx
|
||||
outl %eax, %dx
|
||||
movw $0x2000, %ax
|
||||
movw $0x1004, %dx
|
||||
movw $0x7004, %dx
|
||||
outw %ax, %dx
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue