Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Set up the logical destination ID.* Intel recommends to set DFR, LDR and TPR before enabling* an APIC. See e.g. "AP-388 82489DX User's Manual" (Intel* document number 292116). So here it goes...

Proto:void flat_init_apic_ldr(void)

Type:void

Parameter:Nothing

43  num = smp_processor_id()
44  id = 1UL << num
45  apic_write(APIC_DFR, APIC_DFR_FLAT)
46  val = apic_read(APIC_LDR) & ~APIC_LDR_MASK
47  val |= SET_APIC_LOGICAL_ID(id)
48  apic_write(APIC_LDR, val)