kinst.h: make pointer to probe in kinst_cpu_state const

Fixes: 5b701ed19c ("kinst: start moving towards per-probe
trampolines")

Sponsored by: The FreeBSD Foundation
This commit is contained in:
Christos Margiolis 2023-07-19 19:56:10 +03:00
parent e967a9a5d5
commit 02402ec888

View file

@ -58,7 +58,7 @@ struct kinst_cpu_state {
/*
* Points to the probe whose trampoline we're currently executing.
*/
struct kinst_probe *kp;
const struct kinst_probe *kp;
/*
* Because we execute trampolines with interrupts disabled, we have to
* cache the CPU's status in order to restore it when we return from