Created
July 4, 2026 01:55
-
-
Save alexhulbert/8600193abf24568b761bc919fbd092b1 to your computer and use it in GitHub Desktop.
Kernel patch to dump TD HOB on boot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- a/init/main.c | |
| +++ b/init/main.c | |
| @@ -1617,3 +1617,13 @@ | |
| integrity_load_keys(); | |
| } | |
| + | |
| +#define TD_HOB_ADDR 0x809000 | |
| + | |
| +static int __init td_hob_dump(void) | |
| +{ | |
| + void *p = memremap(TD_HOB_ADDR, 0x2000, MEMREMAP_WB); | |
| + | |
| + print_hex_dump(KERN_INFO, "td_hob ", DUMP_PREFIX_OFFSET, 16, 1, p, 0x2000, false); | |
| + memunmap(p); | |
| + return 0; | |
| +} | |
| +late_initcall(td_hob_dump); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment