Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/arm/genassym.c
Show All 27 Lines | |||||
*/ | */ | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/cpuset.h> | #include <sys/cpuset.h> | ||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#include <sys/assym.h> | #include <sys/assym.h> | ||||
#include <sys/pcpu.h> | |||||
#include <sys/proc.h> | #include <sys/proc.h> | ||||
#include <sys/mbuf.h> | #include <sys/mbuf.h> | ||||
#include <sys/vmmeter.h> | #include <sys/vmmeter.h> | ||||
#include <sys/bus.h> | #include <sys/bus.h> | ||||
#include <vm/vm.h> | #include <vm/vm.h> | ||||
#include <vm/vm_param.h> | #include <vm/vm_param.h> | ||||
#include <vm/pmap.h> | #include <vm/pmap.h> | ||||
#include <vm/vm_map.h> | #include <vm/vm_map.h> | ||||
▲ Show 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
#ifdef VFP | #ifdef VFP | ||||
ASSYM(PCB_VFPSTATE, offsetof(struct pcb, pcb_vfpstate)); | ASSYM(PCB_VFPSTATE, offsetof(struct pcb, pcb_vfpstate)); | ||||
#endif | #endif | ||||
#if __ARM_ARCH >= 6 | #if __ARM_ARCH >= 6 | ||||
ASSYM(PC_CURPMAP, offsetof(struct pcpu, pc_curpmap)); | ASSYM(PC_CURPMAP, offsetof(struct pcpu, pc_curpmap)); | ||||
ASSYM(PC_BP_HARDEN_KIND, offsetof(struct pcpu, pc_bp_harden_kind)); | |||||
imp: do we need to publish the kind of BP hardening in use via a sysctl in case there's issues down… | |||||
Not Done Inline ActionsHard to say, I have not any strict opinion about this mmel: Hard to say, I have not any strict opinion about this
| |||||
Not Done Inline ActionsIMO no, but would be nice to have a printf in verbose boot. emaste: IMO no, but would be nice to have a printf in verbose boot. | |||||
Not Done Inline ActionsOK, I agree (And it's easy :) ) Is something like "CPU(%d) BP hardening kind: (not necessary | BPIALL | ICIALLU)" acceptable? mmel: OK, I agree (And it's easy :) ) Is something like "CPU(%d) BP hardening kind: (not necessary |… | |||||
ASSYM(PCPU_BP_HARDEN_KIND_NONE, PCPU_BP_HARDEN_KIND_NONE); | |||||
ASSYM(PCPU_BP_HARDEN_KIND_BPIALL, PCPU_BP_HARDEN_KIND_BPIALL); | |||||
ASSYM(PCPU_BP_HARDEN_KIND_ICIALLU, PCPU_BP_HARDEN_KIND_ICIALLU); | |||||
#endif | #endif | ||||
ASSYM(PAGE_SIZE, PAGE_SIZE); | ASSYM(PAGE_SIZE, PAGE_SIZE); | ||||
#if __ARM_ARCH < 6 | #if __ARM_ARCH < 6 | ||||
ASSYM(PMAP_DOMAIN_KERNEL, PMAP_DOMAIN_KERNEL); | ASSYM(PMAP_DOMAIN_KERNEL, PMAP_DOMAIN_KERNEL); | ||||
#endif | #endif | ||||
#ifdef PMAP_INCLUDE_PTE_SYNC | #ifdef PMAP_INCLUDE_PTE_SYNC | ||||
ASSYM(PMAP_INCLUDE_PTE_SYNC, 1); | ASSYM(PMAP_INCLUDE_PTE_SYNC, 1); | ||||
Show All 28 Lines |
do we need to publish the kind of BP hardening in use via a sysctl in case there's issues down the road?