aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2001-05-20 16:51:08 +0000
committerBruce Evans <bde@FreeBSD.org>2001-05-20 16:51:08 +0000
commitc2b095ab7270cafe81deba1dc90eadad01e99a8b (patch)
tree9bdc9c510ec0b451d6979d3fcdd8cf9f8c69e1ce /sys/amd64
parentc5c4ac3fb8a6667597ba88122eb7731612fe183f (diff)
Notes
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/cpu_switch.S5
-rw-r--r--sys/amd64/amd64/swtch.s5
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/amd64/amd64/cpu_switch.S b/sys/amd64/amd64/cpu_switch.S
index ed4525fa118b..180b87be8fc7 100644
--- a/sys/amd64/amd64/cpu_switch.S
+++ b/sys/amd64/amd64/cpu_switch.S
@@ -327,6 +327,8 @@ ENTRY(savectx)
* have to handle h/w bugs for reloading. We used to lose the
* parent's npx state for forks by forgetting to reload.
*/
+ pushfl
+ cli
movl PCPU(NPXPROC),%eax
testl %eax,%eax
je 1f
@@ -347,7 +349,8 @@ ENTRY(savectx)
pushl %eax
call bcopy
addl $12,%esp
+1:
+ popfl
#endif /* DEV_NPX */
-1:
ret
diff --git a/sys/amd64/amd64/swtch.s b/sys/amd64/amd64/swtch.s
index ed4525fa118b..180b87be8fc7 100644
--- a/sys/amd64/amd64/swtch.s
+++ b/sys/amd64/amd64/swtch.s
@@ -327,6 +327,8 @@ ENTRY(savectx)
* have to handle h/w bugs for reloading. We used to lose the
* parent's npx state for forks by forgetting to reload.
*/
+ pushfl
+ cli
movl PCPU(NPXPROC),%eax
testl %eax,%eax
je 1f
@@ -347,7 +349,8 @@ ENTRY(savectx)
pushl %eax
call bcopy
addl $12,%esp
+1:
+ popfl
#endif /* DEV_NPX */
-1:
ret