函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apic\apic_flat_64.c Create Date:2022-07-27 09:34:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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...

函数原型:void flat_init_apic_ldr(void)

返回类型:void

参数:

43  num等于当前cpu 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)