函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:设置异常处理程序

函数原型:void __init trap_init(void)

返回类型:void

参数:

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()
调用者
名称描述
start_kernel启动内核