projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e23797
)
pm_call: only enable interrupts in PM if interrupts on in RM
author
H. Peter Anvin
<hpa@zytor.com>
Wed, 13 May 2009 22:29:13 +0000
(15:29 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Wed, 13 May 2009 22:29:13 +0000
(15:29 -0700)
When executing pm_call, only enable interrupts in PM if we were called
with interrupts enabled in RM.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/pm.inc
patch
|
blob
|
history
diff --git
a/core/pm.inc
b/core/pm.inc
index
46acded
..
bcc95ce
100644
(file)
--- a/
core/pm.inc
+++ b/
core/pm.inc
@@
-47,7
+47,11
@@
pm_call:
bits 32
.pm:
+ ; EAX points to the top of the RM stack, which is EFLAGS
+ test byte [eax+1],02h ; RM EFLAGS.IF
+ jz .no_sti
sti
+.no_sti:
call edx
mov bx,.rm
jmp enter_rm