函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\tboot.c Create Date:2022-07-27 08:53:25
Last Modify:2022-05-22 06:45:44 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:tboot_probe

函数原型:void __init tboot_probe(void)

返回类型:void

参数:

52  如果非可信任启动地址则返回
58  如果非e820__mapped_any(可信任启动地址, 可信任启动地址, E820_TYPE_RESERVED)则
60  打印警告信息("non-0 tboot_addr but it is not of type E820_TYPE_RESERVED\n")
61  返回
65  set_fixmap(FIX_TBOOT_BASE, 可信任启动地址)
66  tboot = 'index to address' translation. If anyone tries to use the idx* directly without translation, we catch the bug with a NULL-deference* kernel oops. Illegal ranges of incoming indices are caught too.
67  如果内存比较
68  打印警告信息("tboot at 0x%llx is invalid\n", 可信任启动地址)
69  =
70  返回
72  如果version小于5则
73  打印警告信息("tboot version is invalid: %u\n", version)
74  =
75  返回
78  打印信息("found shared page at phys addr 0x%llx:\n", 可信任启动地址)
80  pr_debug("version: %d\n", version)
81  pr_debug("log_addr: 0x%08x\n", log_addr)
82  pr_debug("shutdown_entry: 0x%x\n", shutdown_entry)
83  pr_debug("tboot_base: 0x%08x\n", tboot_base)
84  pr_debug("tboot_size: 0x%x\n", tboot_size)
调用者
名称描述
setup_arch平台相关启动