summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/lib/commpage/amd64/cp_subr.s6
-rw-r--r--usr/src/lib/commpage/i386/cp_subr.s6
2 files changed, 6 insertions, 6 deletions
diff --git a/usr/src/lib/commpage/amd64/cp_subr.s b/usr/src/lib/commpage/amd64/cp_subr.s
index ebae0ed307..36664578ff 100644
--- a/usr/src/lib/commpage/amd64/cp_subr.s
+++ b/usr/src/lib/commpage/amd64/cp_subr.s
@@ -107,7 +107,7 @@
/* Query the CPU ID and stash it in r10 for later comparison */
movl $GETCPU_GDT_OFFSET, %edx
- lsl %dx, %edx
+ lsl %edx, %edx
movl %edx, %r10d
3:
@@ -163,7 +163,7 @@
8:
movl $GETCPU_GDT_OFFSET, %edx
- lsl %dx, %edx
+ lsl %edx, %edx
cmpl %edx, %r10d
jne 9f
movq (%r9, %rdx, 8), %rdx
@@ -209,7 +209,7 @@
ret
1:
mov $GETCPU_GDT_OFFSET, %eax
- lsl %ax, %eax
+ lsl %eax, %eax
ret
SET_SIZE(__cp_getcpu)
diff --git a/usr/src/lib/commpage/i386/cp_subr.s b/usr/src/lib/commpage/i386/cp_subr.s
index 83b7dcff56..4028a0874a 100644
--- a/usr/src/lib/commpage/i386/cp_subr.s
+++ b/usr/src/lib/commpage/i386/cp_subr.s
@@ -84,7 +84,7 @@
movl $0, (%esp)
mov $GETCPU_GDT_OFFSET, %eax
- lsl %ax, %eax
+ lsl %eax, %eax
movl %eax, 0x4(%esp)
movl CP_TSC_TYPE(%edi), %eax
@@ -131,7 +131,7 @@
* since the cpu_id was first checked.
*/
movl $GETCPU_GDT_OFFSET, %ecx
- lsl %cx, %ecx
+ lsl %ecx, %ecx
movl 0x4(%esp), %esi
cmpl %ecx, %esi
jne 9f
@@ -196,6 +196,6 @@
ret
1:
mov $GETCPU_GDT_OFFSET, %eax
- lsl %ax, %eax
+ lsl %eax, %eax
ret
SET_SIZE(__cp_getcpu)