Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/include/armreg.h
Show First 20 Lines • Show All 938 Lines • ▼ Show 20 Lines | |||||
/* Saved Program Status Register */ | /* Saved Program Status Register */ | ||||
#define DBG_SPSR_SS (0x1 << 21) | #define DBG_SPSR_SS (0x1 << 21) | ||||
/* Monitor Debug System Control Register */ | /* Monitor Debug System Control Register */ | ||||
#define DBG_MDSCR_SS (0x1 << 0) | #define DBG_MDSCR_SS (0x1 << 0) | ||||
#define DBG_MDSCR_KDE (0x1 << 13) | #define DBG_MDSCR_KDE (0x1 << 13) | ||||
#define DBG_MDSCR_MDE (0x1 << 15) | #define DBG_MDSCR_MDE (0x1 << 15) | ||||
/* Debug Breakpoint Control Registers */ | |||||
#define DBG_BCR_EN 0x1 | |||||
#define DBG_BCR_PMC_SHIFT 1 | |||||
#define DBG_BCR_PMC (0x3 << DBG_BCR_PMC_SHIFT) | |||||
#define DBG_BCR_PMC_EL1 (0x1 << DBG_BCR_PMC_SHIFT) | |||||
#define DBG_BCR_PMC_EL0 (0x2 << DBG_BCR_PMC_SHIFT) | |||||
#define DBG_BCR_BAS_SHIFT 5 | |||||
#define DBG_BCR_BAS (0xf << DBG_BCR_BAS_SHIFT) | |||||
#define DBG_BCR_HMC_SHIFT 13 | |||||
#define DBG_BCR_HMC (0x1 << DBG_BCR_HMC_SHIFT) | |||||
#define DBG_BCR_SSC_SHIFT 14 | |||||
#define DBG_BCR_SSC (0x3 << DBG_BCR_SSC_SHIFT) | |||||
#define DBG_BCR_LBN_SHIFT 16 | |||||
#define DBG_BCR_LBN (0xf << DBG_BCR_LBN_SHIFT) | |||||
#define DBG_BCR_BT_SHIFT 20 | |||||
#define DBG_BCR_BT (0xf << DBG_BCR_BT_SHIFT) | |||||
/* Perfomance Monitoring Counters */ | /* Perfomance Monitoring Counters */ | ||||
#define PMCR_E (1 << 0) /* Enable all counters */ | #define PMCR_E (1 << 0) /* Enable all counters */ | ||||
#define PMCR_P (1 << 1) /* Reset all counters */ | #define PMCR_P (1 << 1) /* Reset all counters */ | ||||
#define PMCR_C (1 << 2) /* Clock counter reset */ | #define PMCR_C (1 << 2) /* Clock counter reset */ | ||||
#define PMCR_D (1 << 3) /* CNTR counts every 64 clk cycles */ | #define PMCR_D (1 << 3) /* CNTR counts every 64 clk cycles */ | ||||
#define PMCR_X (1 << 4) /* Export to ext. monitoring (ETM) */ | #define PMCR_X (1 << 4) /* Export to ext. monitoring (ETM) */ | ||||
#define PMCR_DP (1 << 5) /* Disable CCNT if non-invasive debug*/ | #define PMCR_DP (1 << 5) /* Disable CCNT if non-invasive debug*/ | ||||
#define PMCR_LC (1 << 6) /* Long cycle count enable */ | #define PMCR_LC (1 << 6) /* Long cycle count enable */ | ||||
Show All 20 Lines |