From 61b64fdb1e47c164d2e306564542411c823d83e8 Mon Sep 17 00:00:00 2001 From: KATO Takenori Date: Wed, 29 Mar 2000 13:45:40 +0000 Subject: [PATCH] PC-98 BIOS copies the DX register into its work area. The value of it shows `CPUID' and it is useful to identify CPU. So, it is copied from BIOS work area to the cpu_id variable (PC-98 only). Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) --- sys/amd64/amd64/locore.S | 3 +++ sys/amd64/amd64/locore.s | 3 +++ sys/i386/i386/locore.s | 3 +++ 3 files changed, 9 insertions(+) diff --git a/sys/amd64/amd64/locore.S b/sys/amd64/amd64/locore.S index ae2a665caf3..bfbcad8b411 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 ae2a665caf3..bfbcad8b411 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 ae2a665caf3..bfbcad8b411 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