summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/amd64/amd64/locore.S3
-rw-r--r--sys/amd64/amd64/locore.s3
-rw-r--r--sys/i386/i386/locore.s3
3 files changed, 9 insertions, 0 deletions
diff --git a/sys/amd64/amd64/locore.S b/sys/amd64/amd64/locore.S
index ae2a665caf39..bfbcad8b411a 100644
--- a/sys/amd64/amd64/locore.S
+++ b/sys/amd64/amd64/locore.S
@@ -277,6 +277,9 @@ NON_GPROF_ENTRY(btext)
shrl $17,%eax
movb %al,R(_pc98_system_parameter)+1
3:
+
+ movw R(_pc98_system_parameter+0x86),%ax
+ movw %ax,R(_cpu_id)
#endif
call identify_cpu
diff --git a/sys/amd64/amd64/locore.s b/sys/amd64/amd64/locore.s
index ae2a665caf39..bfbcad8b411a 100644
--- a/sys/amd64/amd64/locore.s
+++ b/sys/amd64/amd64/locore.s
@@ -277,6 +277,9 @@ NON_GPROF_ENTRY(btext)
shrl $17,%eax
movb %al,R(_pc98_system_parameter)+1
3:
+
+ movw R(_pc98_system_parameter+0x86),%ax
+ movw %ax,R(_cpu_id)
#endif
call identify_cpu
diff --git a/sys/i386/i386/locore.s b/sys/i386/i386/locore.s
index ae2a665caf39..bfbcad8b411a 100644
--- a/sys/i386/i386/locore.s
+++ b/sys/i386/i386/locore.s
@@ -277,6 +277,9 @@ NON_GPROF_ENTRY(btext)
shrl $17,%eax
movb %al,R(_pc98_system_parameter)+1
3:
+
+ movw R(_pc98_system_parameter+0x86),%ax
+ movw %ax,R(_cpu_id)
#endif
call identify_cpu