Author: andrew
Date: Wed Jul 1 16:17:51 2020
New Revision: 362841
URL: https://svnweb.freebsd.org/changeset/base/362841
Log:
Move ID reading signatures to a better header
The functions to read the common user and kernel ID registers should be
in cpu.h rather than undefined.h as they are related to CPU details and
used by undefined instruction handlers.
Sponsored by: Innovate UK
Modified:
head/sys/arm64/include/cpu.h
head/sys/arm64/include/undefined.h
Modified: head/sys/arm64/include/cpu.h
==============================================================================
--- head/sys/arm64/include/cpu.h Wed Jul 1 15:42:48 2020
(r362840)
+++ head/sys/arm64/include/cpu.h Wed Jul 1 16:17:51 2020
(r362841)
@@ -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))))
Modified: head/sys/arm64/include/undefined.h
==============================================================================
--- head/sys/arm64/include/undefined.h Wed Jul 1 15:42:48 2020
(r362840)
+++ head/sys/arm64/include/undefined.h Wed Jul 1 16:17:51 2020
(r362841)
@@ -63,10 +63,6 @@ void *install_undef_handler(bool, undef_handler_t);
void remove_undef_handler(void *);
int undef_insn(u_int, struct trapframe *);
-/* 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 *);
-
#endif /* _KERNEL */
#endif
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"