summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEtienne Brateau <etienne.brateau@gmail.com>2020-03-28 21:56:34 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-03-29 11:45:05 +0200
commit86fb67f8f82d54fd00bd13a3f0293bf4c86f4f50 (patch)
tree23d11e4cc2ac8e91e83e9f04e9083aee5138cab1
parent534fe660fc8910ff77920ba12d5fcb66825b83e7 (diff)
spl: Fix assembly files
* x86_64/spl.S: fix instruction length
-rw-r--r--x86_64/spl.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/x86_64/spl.S b/x86_64/spl.S
index 073b84da..0c2c50cb 100644
--- a/x86_64/spl.S
+++ b/x86_64/spl.S
@@ -130,8 +130,8 @@ ENTRY(splx)
/* First make sure that if we're exitting from ipl7, IF is still cleared */
cmpl $SPL7,EXT(curr_ipl) /* from ipl7? */
jne 0f
- pushfl
- popl %eax
+ pushfq
+ popq %rax
testl $0x200,%eax /* IF? */
jz 0f
int3 /* Oops, interrupts got enabled?! */
@@ -210,8 +210,8 @@ spl:
/* First make sure that if we're exitting from ipl7, IF is still cleared */
cmpl $SPL7,EXT(curr_ipl) /* from ipl7? */
jne 0f
- pushfl
- popl %eax
+ pushfq
+ popq %rax
testl $0x200,%eax /* IF? */
jz 0f
int3 /* Oops, interrupts got enabled?! */