Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\tboot.c Create Date:2022-07-28 07:53:11
Last Modify:2022-05-22 06:45:44 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:tboot_probe

Proto:void __init tboot_probe(void)

Type:void

Parameter:Nothing

52  If Not 0x058 Then Return
58  If Not e820__mapped_any(0x058 , 0x058 , E820_TYPE_RESERVED) Then
60  pr_warn("non-0 tboot_addr but it is not of type E820_TYPE_RESERVED\n")
61  Return
65  set_fixmap(FIX_TBOOT_BASE, 0x058 )
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  If memcmp( & tboot_uuid, & uuid, size of uuid ) Then
68  pr_warn("tboot at 0x%llx is invalid\n", 0x058 )
69  =
70  Return
72  If version < 5 Then
73  pr_warn("tboot version is invalid: %u\n", version)
74  =
75  Return
78  pr_info("found shared page at phys addr 0x%llx:\n", 0x058 )
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)
Caller
NameDescribe
setup_archsetup_arch - architecture-specific boot-time initializations* Note: On x86_64, fixmaps are ready for use even before this is called.