mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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)
This commit is contained in:
parent
af5d822f28
commit
61b64fdb1e
3 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue