[arm64] Fix MONO_CONTEXT_GET_CURRENT so it can be used multiple times in the same...
authorRodrigo Kumpera <kumpera@gmail.com>
Thu, 20 Aug 2015 21:23:53 +0000 (17:23 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Thu, 20 Aug 2015 21:31:07 +0000 (17:31 -0400)
mono/utils/mono-context.h

index 33a821a198a9bd57851f752fb29a49cd3619b75d..55f0ab0006538e02720089f7327aded67ae90b8a 100644 (file)
@@ -350,8 +350,8 @@ typedef struct {
                : "x30", "memory"                       \
        );                                                              \
        __asm__ __volatile__( \
-               "adr %0, L0\n" \
-               "L0:\n" \
+               "adr %0, L0%=\n" \
+               "L0%=:\n"       \
                : "=r" (ctx.pc)         \
                :                                       \
                : "memory"                       \