summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2022-10-04 00:36:35 +0300
committerToomas Soome <tsoome@me.com>2022-10-11 22:16:25 +0300
commit3cc2454804c6ebaa0b2a607ad425214c1e51c4ee (patch)
tree5ab6f22595ca6af3613fb2a3736d8a719116fd75 /usr/src
parent564d52366b33ac17bebd5b441ac47b668dfcb6cd (diff)
downloadillumos-gate-3cc2454804c6ebaa0b2a607ad425214c1e51c4ee.tar.gz
15037 cp_subr.s: Invalid instruction argument
Reviewed by: Dan Cross <cross@oxidecomputer.com> Reviewed by: Patrick Mooney <pmooney@pfmooney.com> Reviewed by: Rich Lowe <richlowe@richlowe.net> Approved by: Dan McDonald <danmcd@mnx.io>
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)