diff options
| author | Wayne Lin <[email protected]> | 2022-10-07 10:26:53 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2022-10-11 08:46:01 +0800 |
| commit | ece0c6eef8606be94bbaec61fa9b690e157d1655 (patch) | |
| tree | 56b600c7c760a575c2f69741c28f9a2c89c0dabf /libcpu/arm | |
| parent | 5d014e8d31fb882c25063d58db89876d1eca9a96 (diff) | |
Move gtimer driver to libcpu.
Diffstat (limited to 'libcpu/arm')
| -rw-r--r-- | libcpu/arm/cortex-a/armv7.h | 6 | ||||
| -rw-r--r-- | libcpu/arm/cortex-a/gtimer.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libcpu/arm/cortex-a/armv7.h b/libcpu/arm/cortex-a/armv7.h index f284bb5255..325d0ed0ae 100644 --- a/libcpu/arm/cortex-a/armv7.h +++ b/libcpu/arm/cortex-a/armv7.h @@ -69,4 +69,10 @@ struct rt_hw_stack #define E_Bit (1<<9) #define J_Bit (1<<24) +#define PABT_EXCEPTION 0x1 +#define DABT_EXCEPTION 0x2 +#define UND_EXCEPTION 0x3 +#define SWI_EXCEPTION 0x4 +#define RESV_EXCEPTION 0xF + #endif diff --git a/libcpu/arm/cortex-a/gtimer.c b/libcpu/arm/cortex-a/gtimer.c index b35acc6e6f..fd5f96950c 100644 --- a/libcpu/arm/cortex-a/gtimer.c +++ b/libcpu/arm/cortex-a/gtimer.c @@ -86,7 +86,7 @@ static inline rt_uint64_t __get_cntp_cval(void) * This function assigns the given value to PL1 Physical Timer Control Register (CNTP_CTL). * param value: CNTP_CTL Register value to set */ -static inline void __set_cntp_ctl(uint32_t value) +static inline void __set_cntp_ctl(rt_uint32_t value) { __set_cp(15, 0, value, 14, 2, 1); } |
