[quake3] quake3 on Solaris x86

Ludwig Nussel ludwig.nussel at suse.de
Tue Nov 1 15:02:37 EST 2005


vincent at cojot.name wrote:
> Here's a diff (backported from ioq2 code base) that fixes LoadTGA on
> Solaris/Sparc. I bet it applies to other arches too..
> I'm going to audit the tr_image* code to check for other fixes..
> [...]
> Program received signal SIGSEGV, Segmentation fault.
> 0x000be1a0 in VM_PrepareInterpreter (vm=0x9c2efc, header=0x51a4ab8) at
> ../qcommon/vm_interpreted.c:208 208                            
> codeBase[pc+0] = loadWord(&code[pc]); (gdb)

$SUBJECT says x86 but you are talking about SPARC right? I switched
both places to using memcpy rather than ugly casts. I suppose memcpy
can deal with unaligned data. Try rev 208.

cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\   SUSE LINUX Products GmbH, Development
 V_/_  http://www.suse.de/




More information about the quake3 mailing list