summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/amd64/amd64/cpu_switch.S3
-rw-r--r--sys/amd64/amd64/swtch.s3
-rw-r--r--sys/i386/i386/swtch.s3
3 files changed, 3 insertions, 6 deletions
diff --git a/sys/amd64/amd64/cpu_switch.S b/sys/amd64/amd64/cpu_switch.S
index 793e634..a19baa7 100644
--- a/sys/amd64/amd64/cpu_switch.S
+++ b/sys/amd64/amd64/cpu_switch.S
@@ -174,6 +174,7 @@ ENTRY(cpu_switch)
je sw1
#endif
1:
+#endif
movl %cr3,%ebx /* The same address space? */
cmpl %ebx,%eax
#ifdef SWTCH_OPTIM_STATS
@@ -181,8 +182,6 @@ ENTRY(cpu_switch)
#else
je sw1
#endif
-#endif
-
#ifdef SWTCH_OPTIM_STATS
incl tlb_flush_count
#endif
diff --git a/sys/amd64/amd64/swtch.s b/sys/amd64/amd64/swtch.s
index 793e634..a19baa7 100644
--- a/sys/amd64/amd64/swtch.s
+++ b/sys/amd64/amd64/swtch.s
@@ -174,6 +174,7 @@ ENTRY(cpu_switch)
je sw1
#endif
1:
+#endif
movl %cr3,%ebx /* The same address space? */
cmpl %ebx,%eax
#ifdef SWTCH_OPTIM_STATS
@@ -181,8 +182,6 @@ ENTRY(cpu_switch)
#else
je sw1
#endif
-#endif
-
#ifdef SWTCH_OPTIM_STATS
incl tlb_flush_count
#endif
diff --git a/sys/i386/i386/swtch.s b/sys/i386/i386/swtch.s
index 793e634..a19baa7 100644
--- a/sys/i386/i386/swtch.s
+++ b/sys/i386/i386/swtch.s
@@ -174,6 +174,7 @@ ENTRY(cpu_switch)
je sw1
#endif
1:
+#endif
movl %cr3,%ebx /* The same address space? */
cmpl %ebx,%eax
#ifdef SWTCH_OPTIM_STATS
@@ -181,8 +182,6 @@ ENTRY(cpu_switch)
#else
je sw1
#endif
-#endif
-
#ifdef SWTCH_OPTIM_STATS
incl tlb_flush_count
#endif
OpenPOWER on IntegriCloud