Add TSLOG events to initriscv()
Add the enter and exit events, similar to what's found in hammer_time() on amd64. We must use TSRAW as the pcpu isn't yet initialized. Reviewed by: markj Approved by: markj (mentor) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D20497
This commit is contained in:
parent
13a454c463
commit
b723e976be
@ -62,6 +62,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/syscallsubr.h>
|
||||
#include <sys/sysent.h>
|
||||
#include <sys/sysproto.h>
|
||||
#include <sys/tslog.h>
|
||||
#include <sys/ucontext.h>
|
||||
|
||||
#include <vm/vm.h>
|
||||
@ -816,6 +817,8 @@ initriscv(struct riscv_bootparams *rvbp)
|
||||
caddr_t kmdp;
|
||||
int i;
|
||||
|
||||
TSRAW(&thread0, TS_ENTER, __func__, NULL);
|
||||
|
||||
/* Set the pcpu data, this is needed by pmap_bootstrap */
|
||||
pcpup = &__pcpu[0];
|
||||
pcpu_init(pcpup, 0, sizeof(struct pcpu));
|
||||
@ -888,6 +891,8 @@ initriscv(struct riscv_bootparams *rvbp)
|
||||
kdb_init();
|
||||
|
||||
early_boot = 0;
|
||||
|
||||
TSEXIT();
|
||||
}
|
||||
|
||||
#undef bzero
|
||||
|
Loading…
x
Reference in New Issue
Block a user