thermosphere: refactor crt0 + watchpoint init

This commit is contained in:
TuxSH 2019-08-06 22:26:28 +02:00
parent dc3f87a715
commit 9bc0ed2f70
13 changed files with 89 additions and 85 deletions

View file

@ -33,7 +33,17 @@
#define ALINLINE __attribute__((always_inline))
#define TEMPORARY __attribute__((section(".temp")))
#define TEMPORARY __attribute__((section(".tempbss")))
static inline void __dsb_sy(void)
{
__asm__ __volatile__ ("dsb sy" ::: "memory");
}
static inline void __isb(void)
{
__asm__ __volatile__ ("isb" ::: "memory");
}
bool overlaps(u64 as, u64 ae, u64 bs, u64 be);