mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-26 00:59:55 +00:00
Set the level of APM support to 1.1, before turning off the power state.
This commit is contained in:
1 parent
044d8501b5
commit
e9d94149ef
7 files changed
+19
-5
No files matched your search
+8
-1
@@ -260,12 +260,19 @@ ENTRY(grub_halt)
|
||||
xorw %bx, %bx
|
||||
int $0x15
|
||||
|
||||
/* connect APM (Is this really necessary?) */
|
||||
/* connect APM */
|
||||
movw $0x5301, %ax
|
||||
xorw %bx, %bx
|
||||
int $0x15
|
||||
jc EXT_C(hard_stop)
|
||||
|
||||
/* set APM protocol level - 1.1 or bust. (this covers APM 1.2 also) */
|
||||
movw $0x530E, %ax
|
||||
xorw %bx, %bx
|
||||
movw $0x0101, %cx
|
||||
int $0x15
|
||||
jc EXT_C(hard_stop)
|
||||
|
||||
/* set the power state to off */
|
||||
movw $0x5307, %ax
|
||||
movw $1, %bx
|
||||
|
||||
Reference in new issue
Block a user