fix arm timer baremetal!

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-08-06 00:00:00 +00:00
parent b22c628c04
commit 84f88e5770
5 changed files with 53 additions and 20 deletions

View File

@@ -293,9 +293,9 @@ typedef struct {
void lkmc_vector_trap_handler(LkmcVectorExceptionFrame *exception);
/* Mistc assembly instructions. */
#define LKMC_SVC(immediate) __asm__ __volatile__("svc " #immediate : : : )
#define LKMC_WFI() __asm__ __volatile__ ("wfi" : : : "memory")
/* Misc assembly instructions. */
#define lkmc_svc(immediate) __asm__ __volatile__("svc " #immediate : : : )
#define lkmc_wfi() __asm__ __volatile__ ("wfi" : : : "memory")
/* Sysreg read and write functions, e.g.:
*