Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\cyrix.c Create Date:2022-07-28 07:58:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Read NSC/Cyrix DEVID registers (DIR) to get more detailed info. about the CPU

Proto:static void __do_cyrix_devid(unsigned char *dir0, unsigned char *dir1)

Type:void

Parameter:

TypeParameterName
unsigned char *dir0
unsigned char *dir1
26  ccr3 = NSC/Cyrix CPU indexed register access. Must be inlined instead of* macros to ensure correct access ordering* Access order is always 0x22 (=offset), 0x23 (=value)
27  setCx86(CX86_CCR3, ccr3 ^ 0x80)
28  NSC/Cyrix CPU indexed register access. Must be inlined instead of* macros to ensure correct access ordering* Access order is always 0x22 (=offset), 0x23 (=value)
30  If NSC/Cyrix CPU indexed register access. Must be inlined instead of* macros to ensure correct access ordering* Access order is always 0x22 (=offset), 0x23 (=value) == ccr3 Then
31  ccr2 = NSC/Cyrix CPU indexed register access. Must be inlined instead of* macros to ensure correct access ordering* Access order is always 0x22 (=offset), 0x23 (=value)
32  setCx86(CX86_CCR2, ccr2 ^ 0x04)
33  NSC/Cyrix CPU indexed register access. Must be inlined instead of* macros to ensure correct access ordering* Access order is always 0x22 (=offset), 0x23 (=value)
35  If NSC/Cyrix CPU indexed register access. Must be inlined instead of* macros to ensure correct access ordering* Access order is always 0x22 (=offset), 0x23 (=value) == ccr2 Then dir0 = 0xfd
37  Else
39  dir0 = 0xfe
41  Else
42  setCx86(CX86_CCR3, ccr3)
45  dir0 = NSC/Cyrix CPU indexed register access. Must be inlined instead of* macros to ensure correct access ordering* Access order is always 0x22 (=offset), 0x23 (=value)
46  dir1 = NSC/Cyrix CPU indexed register access. Must be inlined instead of* macros to ensure correct access ordering* Access order is always 0x22 (=offset), 0x23 (=value)
Caller
NameDescribe
do_cyrix_devid
early_init_cyrix