- struct boot_modent* modents = bhctx->mods.entries;
- for (size_t i = 0; i < bhctx->mods.mods_num; i++) {
- struct boot_modent* mod = &bhctx->mods.entries[i];
- if (streq(mod->str, "modksyms")) {
- assert(PG_ALIGNED(mod->start));
-
- ptr_t end = ROUNDUP(mod->end, PG_SIZE);
- ptr_t ksym_va =
- (ptr_t)vmap(mod->start, (end - mod->start), PG_PREM_R, 0);
-
- assert(ksym_va);
- trace_ctx.ksym_table = (struct ksyms*)ksym_va;
- }
- }