From: Brian P. <br...@va...> - 2001-06-06 23:25:19
|
"David S. Miller" wrote: > > Brian Paul writes: > > David, one comment: I see that glapi.c now has a dependency on > > the SPARC/sparc.h header file. One of my goals for the gl*.[ch] > > dispatch files is that they're a self-contained group and have > > no dependencies on any other Mesa source files since they're > > also used by libGL (which has no dependencies on Mesa). > > > > Is is possible to remove this dependency? > > I have to flush the instruction cache of the processor when I relocate > the data references in the instructions of the glapi sparc table. > > There is no standard library call to do this. > > I could use GCC inline assembly when that is the compiler being used, > but then this would still need a solution when a compiler other than > GCC is used. As it is now, the __glapi_sparc_icache_flush code is in the SPARC/glapi_sparc.S file. Can that file be compiled with a non-GCC assembler (such as the Solaris assembler)? Just curious. Don't fret too much over this. Since the assembly code is optional there's not a hard dependency. -Brian |