]> xenbits.xensource.com Git - people/julieng/xen-unstable.git/commitdiff
x86: use tag in C UNLIKELY blocks, rather than a literal ".tag"
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 15 Dec 2015 13:16:09 +0000 (14:16 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 15 Dec 2015 13:16:09 +0000 (14:16 +0100)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/asm-x86/asm_defns.h

index 7cf440846dec559247f00aac6a2270cf0c7cd621..b5f79d824ba1b3fbc6d4ad4b8269ab4f262c17ba 100644 (file)
@@ -180,16 +180,16 @@ void ret_from_intr(void);
 
 #endif
 
-#define UNLIKELY_START(cond, tag)          \
-        "j" #cond " .Lunlikely%=.tag;\n\t" \
-        UNLIKELY_START_SECTION "\n\t"      \
-        SUBSECTION_LBL(unlikely) "\n"      \
-        ".Lunlikely%=.tag:"
+#define UNLIKELY_START(cond, tag)                   \
+        "j" #cond " .Lunlikely." #tag ".%=;\n\t"   \
+        UNLIKELY_START_SECTION "\n\t"               \
+        SUBSECTION_LBL(unlikely) "\n"               \
+        ".Lunlikely." #tag ".%=:"
 
 #define UNLIKELY_END(tag)                  \
-        "jmp .Llikely%=.tag;\n\t"          \
+        "jmp .Llikely." #tag ".%=;\n\t"    \
         UNLIKELY_END_SECTION "\n"          \
-        ".Llikely%=.tag:"
+        ".Llikely." #tag ".%=:"
 
 #endif