diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2020-07-01 16:17:51 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2020-07-01 16:17:51 +0000 |
commit | eeada9221b4f5a9a5e1ef2aeb374d6a8506ee068 (patch) | |
tree | 21e9b977f31bcfdbc639d613dd948564cd24be0f /sys/arm64/include/cpu.h | |
parent | d16a2e47844cc200a6f58858932e4a3937bad9f0 (diff) |
Notes
Diffstat (limited to 'sys/arm64/include/cpu.h')
-rw-r--r-- | sys/arm64/include/cpu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arm64/include/cpu.h b/sys/arm64/include/cpu.h index cd76385f10f5..7cd7461e528c 100644 --- a/sys/arm64/include/cpu.h +++ b/sys/arm64/include/cpu.h @@ -171,6 +171,10 @@ void identify_cpu(void); void install_cpu_errata(void); void swi_vm(void *v); +/* Functions to read the sanitised view of the special registers */ +bool extract_user_id_field(u_int, u_int, uint8_t *); +bool get_kernel_reg(u_int, uint64_t *); + #define CPU_AFFINITY(cpu) __cpu_affinity[(cpu)] #define CPU_CURRENT_SOCKET \ (CPU_AFF2(CPU_AFFINITY(PCPU_GET(cpuid)))) |