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:45
Last Modify:2020-03-16 21:44:10 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:smp_read_mpc

Proto:static int __init smp_read_mpc(struct mpc_table *mpc, unsigned early)

Type:int

Parameter:

TypeParameterName
struct mpc_table *mpc
unsignedearly
207  count = size of mpc
208  mpt = mpc + count
210  If Not Read/parse the MPC Then Return 0
214  If Not acpi_lapic Then register_lapic_address( APIC address )
217  If early Then Return 1
220  If 0 if not present Then smp_read_mpc_oem(mpc)
226  mpc_record(0)
228  When count < Size of table cycle
230  Case mpt == Followed by entries
232  If Not acpi_lapic Then MP_processor_info((structmpc_cpu * )mpt)
234  skip_entry( & mpt, & count, sizeof(structmpc_cpu))
235  Break
236  Case mpt == MP_BUS
237  MP_bus_info((structmpc_bus * )mpt)
238  skip_entry( & mpt, & count, sizeof(structmpc_bus))
239  Break
240  Case mpt == MP_IOAPIC
241  MP_ioapic_info((structmpc_ioapic * )mpt)
242  skip_entry( & mpt, & count, sizeof(structmpc_ioapic))
243  Break
244  Case mpt == MP_INTSRC
245  mp_save_irq((structmpc_intsrc * )mpt)
246  skip_entry( & mpt, & count, sizeof(structmpc_intsrc))
247  Break
248  Case mpt == MP_LINTSRC
249  MP_lintsrc_info((structmpc_lintsrc * )mpt)
250  skip_entry( & mpt, & count, sizeof(structmpc_lintsrc))
251  Break
252  Default
256  Break
258  mpc_record(1)
261  If Not num_processors Then pr_err("MPTABLE: no processors registered!\n")
263  Return num_processors
Caller
NameDescribe
check_physptr