From f3df01f14e90849caa821ccda8ade6c953085964 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Mon, 24 Apr 2017 21:43:38 +0000 Subject: [PATCH] vf6: use c99 compatible asm syntax. using __asm__ instead of asm allows compilation under both gnu89 (old gcc defaults pre 5.x) and also c99 (gcc 5.x+ defaults) --- lib/vf6xx/vector_chipset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vf6xx/vector_chipset.c b/lib/vf6xx/vector_chipset.c index 476960c7..1c377015 100644 --- a/lib/vf6xx/vector_chipset.c +++ b/lib/vf6xx/vector_chipset.c @@ -27,7 +27,7 @@ static inline void pre_main(void) * For Vybrid we need to set the stack pointer manually * since the boot ROM has its own stack */ - asm ( \ + __asm__ ( \ "ldr sp,=_stack;" \ );