main: Add entry point for NamedBufferData.
[mesa.git] / src / mapi / glapi / gen / gl_x86-64_asm.py
index a3548c2951e0ba9a0025bb8f8dae8a7ff1c68d75..5a69e0343b2bdb36d23bc57edc1503ab126decab 100644 (file)
@@ -138,10 +138,6 @@ class PrintGenericStubs(gl_XML.gl_print_base):
         print '#  define GL_PREFIX(n) GLNAME(CONCAT(gl,n))'
         print '# endif'
         print ''
-        print '#if defined(HAVE_PTHREAD) || defined(_WIN32)'
-        print '#  define THREADS'
-        print '#endif'
-        print ''
         print '\t.text'
         print ''
         print '#ifdef GLX_USE_TLS'
@@ -170,7 +166,7 @@ class PrintGenericStubs(gl_XML.gl_print_base):
         print '\tmovl\t(%rax), %edi'
         print '\tjmp\tpthread_getspecific@PLT'
         print ''
-        print '#elif defined(THREADS)'
+        print '#else'
         print ''
         print '\t.extern\t_glapi_get_dispatch'
         print ''
@@ -180,19 +176,6 @@ class PrintGenericStubs(gl_XML.gl_print_base):
 
 
     def printRealFooter(self):
-        print ''
-        print '#if defined(GLX_USE_TLS) && defined(__linux__)'
-        print '        .section ".note.ABI-tag", "a"'
-        print '        .p2align 2'
-        print '        .long   1f - 0f   /* name length */'
-        print '        .long   3f - 2f   /* data length */'
-        print '        .long   1         /* note length */'
-        print '0:      .asciz "GNU"      /* vendor name */'
-        print '1:      .p2align 2'
-        print '2:      .long   0         /* note data: the ABI tag */'
-        print '        .long   2,4,20    /* Minimum kernel version w/TLS */'
-        print '3:      .p2align 2        /* pad out section */'
-        print '#endif /* GLX_USE_TLS */'
         print ''
         print '#if defined (__ELF__) && defined (__linux__)'
         print '        .section .note.GNU-stack,"",%progbits'