arm64: Instrument initarm with TSLOG

The "function entry" needs to be recorded with TSRAW() rather than
TSENTER() since curthread is not yet defined.  (The same approach
is taken in amd64's hammer_time.)
This commit is contained in:
Colin Percival 2021-06-23 22:17:55 -07:00
parent 0acc529dc3
commit ccadcb8f33

View File

@ -1253,6 +1253,8 @@ initarm(struct arm64_bootparams *abp)
caddr_t kmdp;
bool valid;
TSRAW(&thread0, TS_ENTER, __func__, NULL);
boot_el = abp->boot_el;
/* Parse loader or FDT boot parametes. Determine last used address. */
@ -1383,6 +1385,8 @@ initarm(struct arm64_bootparams *abp)
}
early_boot = 0;
TSEXIT();
}
void