Updates to x86 assembler support for Open Watcom and SNAP

This commit is contained in:
Kendall Bennett 2003-10-14 23:47:21 +00:00
parent 0f22705b0b
commit 9b77fb7dab
3 changed files with 10 additions and 11 deletions

View file

@ -1,6 +1,6 @@
#!/usr/bin/env python
# $Id: glx86asm.py,v 1.6 2002/06/11 01:26:58 brianp Exp $
# $Id: glx86asm.py,v 1.7 2003/10/14 23:47:21 kendallb Exp $
# Mesa 3-D graphics library
# Version: 4.1
@ -58,6 +58,7 @@ def PrintHead():
print '#define GLOBL_FN(x) GLOBL x'
print '#endif'
print ''
print 'SEG_TEXT'
print ''
print 'EXTERN GLNAME(_glapi_Dispatch)'
print ''

View file

@ -41,7 +41,7 @@
#include "glthread.h"
#if !(defined(USE_X86_ASM) || defined(USE_SPARC_ASM))
#if !(defined(USE_X86_ASM) || defined(USE_SPARC_ASM)) || defined(__SCITECH_SNAP__)
#if defined(WIN32)
#define KEYWORD1 GLAPI

View file

@ -1,4 +1,4 @@
/* $Id: common_x86.c,v 1.22 2003/02/04 02:22:51 brianp Exp $ */
/* $Id: common_x86.c,v 1.23 2003/10/14 23:47:22 kendallb Exp $ */
/*
* Mesa 3-D graphics library
@ -52,14 +52,12 @@ int _mesa_x86_cpu_features = 0;
/* No reason for this to be public.
*/
extern int _mesa_identify_x86_cpu_features(void);
extern GLuint _mesa_x86_has_cpuid(void);
extern void _mesa_x86_cpuid(GLuint op, GLuint *reg_eax, GLuint *reg_ebx, GLuint *reg_ecx, GLuint *reg_edx);
extern GLuint _mesa_x86_cpuid_eax(GLuint op);
extern GLuint _mesa_x86_cpuid_ebx(GLuint op);
extern GLuint _mesa_x86_cpuid_ecx(GLuint op);
extern GLuint _mesa_x86_cpuid_edx(GLuint op);
extern GLuint _ASMAPI _mesa_x86_has_cpuid(void);
extern void _ASMAPI _mesa_x86_cpuid(GLuint op, GLuint *reg_eax, GLuint *reg_ebx, GLuint *reg_ecx, GLuint *reg_edx);
extern GLuint _ASMAPI _mesa_x86_cpuid_eax(GLuint op);
extern GLuint _ASMAPI _mesa_x86_cpuid_ebx(GLuint op);
extern GLuint _ASMAPI _mesa_x86_cpuid_ecx(GLuint op);
extern GLuint _ASMAPI _mesa_x86_cpuid_edx(GLuint op);
static void message( const char *msg )
{