Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:trap_init

Proto:void __init trap_init(void)

Type:void

Parameter:Nothing

932  setup_cpu_entry_areas()
934  idt_setup_traps()
941  cea_set_pte(CPU_ENTRY_AREA_RO_IDT_VADDR, We need __phys_reloc_hide() here because gcc may assume that there is no* overflow during __pa() calculation and can optimize it unexpectedly.* Newer versions of gcc provide -fno-strict-overflow switch to handle this* case properly(idt_table), PAGE_KERNEL_RO)
943  address = Single page reserved for the readonly IDT mapping:
948  pu_init() initializes state that is per-CPU. Some data is already* initialized (naturally) in the bootstrap process, such as the GDT* and IDT. We reload them nevertheless, this function acts as a* 'CPU state barrier', nothing should get across.
950  idt_setup_ist_traps()
952  trap_init()
954  idt_setup_debugidt_traps()