Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\mpparse.c Create Date:2022-07-28 08:25:42
Last Modify:2020-03-16 21:44:10 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Read/parse the MPC

Proto:static int __init smp_check_mpc(struct mpc_table *mpc, char *oem, char *str)

Type:int

Parameter:

TypeParameterName
struct mpc_table *mpc
char *oem
char *str
154  If memcmp(signature, MPC_SIGNATURE, 4) Then
155  pr_err("MPTABLE: bad signature [%c%c%c%c]!\n", signature[0], signature[1], signature[2], signature[3])
158  Return 0
160  If Checksum an MP configuration block. Then
161  pr_err("MPTABLE: checksum error!\n")
162  Return 0
164  If 0x01 != 0x01 && 0x01 != 0x04 Then
165  pr_err("MPTABLE: bad table version (%d)!!\n", 0x01 )
166  Return 0
168  If Not APIC address Then
169  pr_err("MPTABLE: null local APIC address!\n")
170  Return 0
172  memcpy(oem, oem, 8)
173  oem[8] = 0
174  pr_info("MPTABLE: OEM ID: %s\n", oem)
176  memcpy(str, productid, 12)
177  str[12] = 0
179  pr_info("MPTABLE: Product ID: %s\n", str)
181  pr_info("MPTABLE: APIC at: 0x%X\n", APIC address )
183  Return 1
Caller
NameDescribe
smp_read_mpc
update_mp_table