Thilo Schulz
f5deb4a88b
Fix return values for several syscall functions, patch by Zack Middleton ( #5018 )
2011-06-06 15:08:00 +00:00
Thilo Schulz
eec06674fa
( #5016 ) - Calls to trap_CM_PointContents don't update their origins based on moving entities (water). Patch by Ensiform
2011-06-06 15:05:10 +00:00
Thilo Schulz
960dca2cd4
Makefile fix for mips architecture ( #4995 ):
...
Fixes the \n in the $ARCH variable for IRIX/mips
Patch by Patrick Baggett
2011-06-06 15:03:27 +00:00
Thilo Schulz
bd2b704c91
OpenBSD compile fixes, patch provided by Jonathan Gray ( #4994 )
2011-06-06 14:59:54 +00:00
Thilo Schulz
e676b41c8f
Fix wrong usage info message for cmd dumpuser, patch by Zack Middleton ( #5024 )
2011-06-06 14:54:18 +00:00
Thilo Schulz
0c43133695
Properly fill in occurances of "foobar" in GPL file headers, patch by Zack Middleton ( #5024 )
2011-06-06 14:52:49 +00:00
Thilo Schulz
698a9c51ec
Fix newlines in Com_Error, patch by Zack Middleton ( #5023 )
2011-06-06 14:51:02 +00:00
Thilo Schulz
71b8fe477d
- Use EmitCallDoSyscall() to call the jump violations function which guarantees 16-byte stack alignment
...
- Add x64 code for MSVC _asm() blocks, not tested yet.
2011-06-06 14:29:45 +00:00
Thilo Schulz
c174143dc2
- Add x86_64 support to vm_x86.c
...
- Fix warning on mingw64
2011-06-01 15:17:18 +00:00
Thilo Schulz
3e229af710
Fix is*() functions for windows where long value is 4 bytes
2011-06-01 01:50:19 +00:00
Thilo Schulz
eedccac818
Fix compilation on mingw64
2011-05-31 20:47:18 +00:00
Thilo Schulz
bd8d60f55c
Add instruction number checks to jumps and calls to SPARC VM, patch by David Miller
2011-05-24 19:46:52 +00:00
Thilo Schulz
4b1418c4ad
- Implement opStack protection: Use register %ebx for scaled indexed addressing mode to access opStack, make opStack push/pop operate on %bl portion only
...
- Add a third pass to VM compilation for computation of jump address offsets, removing the need to dereference into vm->instructionPointers[] for every call/jump
- Make use of 0F opcode prefix relative jumps
- Call Com_Memcpy for OP_BLOCK_COPY
- Fix several missing range checks for vm->dataBase memory access
2011-05-23 00:46:46 +00:00
Thilo Schulz
e08299faf4
- Do assignment of value 0xDEADBEEF after the 4-byte alignment
...
- Add all GPR to clobber list as GCC function callAsmCall seems to change register r11 without saving it to stack first, which may result in SIGSEGV in VM_CallCompiled()
2011-05-23 00:36:27 +00:00
Thilo Schulz
b8ef880d85
I don't seem to get these constraints right. This should fix it
2011-05-19 03:47:35 +00:00
Thilo Schulz
a42239e1e5
Fix VM call for release version, bug introduced by myself in r1994
2011-05-18 16:06:08 +00:00
Thilo Schulz
61d6e6eb68
Use scaled indexing mode n=4 for addressing opStack, this way we can use the 8 bit offset value in %%bl to address an OPSTACK_SIZE of 1024 which was the old value.
2011-05-18 00:17:02 +00:00
Thilo Schulz
3f9ec83ce0
- Use edx for CALLs instead of ecx, as the latter does not require any push to stack
...
- Make Linux AT&T asm code consistent with the MASM codeblock
2011-05-17 12:07:56 +00:00
Thilo Schulz
c7a68bf283
- Set default opStack size to 256
...
- Fix integer wraparound. opStack offset in rbx will always be >= 0
2011-05-16 18:17:01 +00:00
Thilo Schulz
5aa3da2f84
- Fix SEGV in while loop getop() after t = b = 0
...
- Fix iss8, iss16 and iss32 which would not correctly detect 32-bit signed integer range
- Add support for "addb", "subb" etc. assembler mnemonic
- Change opStack protection for x86_64 VM: No overflow checks necessary anymore as offset register is 1 byte long only
2011-05-16 17:55:07 +00:00
Thilo Schulz
558ed62771
0 --> NULL
2011-05-15 14:58:56 +00:00
Thilo Schulz
01ed417ee1
Optimise VectorNormalize functions, patch by Matt Turner
2011-05-15 14:55:47 +00:00
Thilo Schulz
b003422d92
- Fix lokisetup makefile problems
...
- Bump version number to 1.36
2011-05-15 14:49:38 +00:00
Thilo Schulz
3cdfb7aea8
Refactor and bugfix COM_*Extension functions, patch by DevHC
2011-05-15 14:11:26 +00:00
Thilo Schulz
b509d770a7
- Remove Q_strrchr(), replace with standard, portable strrchr()
...
- Add strrchr() to bg_lib.c, patch by DevHC
2011-05-15 14:08:03 +00:00
Thilo Schulz
3ddc59a3ba
move MIN/MAX definition, use MIN() instead of min(), patch by DevHC
2011-05-15 13:27:24 +00:00
Thilo Schulz
017bc7e5da
- Add vm_x86.c optimization patch by Eugene C.
...
- Remove ASM syntax specific code (AT&T vs MASM) for OP_CALL and replace with machine code
2011-05-15 13:15:14 +00:00
Thilo Schulz
3125035c23
Fix typecast
2011-05-14 20:24:34 +00:00
Thilo Schulz
315632e821
Make bg_lib.c strchr ANSI-C conformant
2011-05-14 14:55:54 +00:00
Thilo Schulz
716caf396e
- Reverting accidentally committed vm_x86.c
...
- Last commit contained some refactoring for vm_x86_64.c
2011-05-14 14:39:48 +00:00
Thilo Schulz
30059eb8ce
ensure that ent->classname is always non-null (for entity numbers up to level.num_entities-1, and ENTITYNUM_WORLD and ENTITYNUM_NONE), for player entities and #ENTITYNUM_NONE in particular, patch by DevHC
2011-05-14 14:34:18 +00:00
Thilo Schulz
4b9ab42c2c
Remove newlines from Com_Error calls, patch by DevHC
2011-05-14 14:32:43 +00:00
Thilo Schulz
4cfb7d376b
Ffffuuuuuu I don't even know....
2011-05-14 14:28:31 +00:00
Thilo Schulz
c95bd0a684
Remove newlines from Com_Error message format strings, patch by DevHC
2011-05-12 14:02:48 +00:00
Thilo Schulz
59271903a2
More codec loader troubles with extensions
2011-05-12 12:25:36 +00:00
Thilo Schulz
68338a8268
Fix crash bug in new codec audio loader, thanks brain for reporting
2011-05-12 10:53:36 +00:00
Thilo Schulz
c65234328a
DevHC messed up
2011-05-11 14:33:12 +00:00
Thilo Schulz
a9696d3558
Refactoring patch by DevHC
2011-05-11 14:21:27 +00:00
Thilo Schulz
86d96f12b9
Fix one byte overflow
2011-05-10 16:26:11 +00:00
Thilo Schulz
4374ff6ce9
Fix spawnflag behaviour for trigger_hurt, patch by DevHC
2011-05-10 11:11:37 +00:00
Thilo Schulz
9706e6ca29
whoops, that one was not Com_Error()
2011-05-10 10:18:07 +00:00
Thilo Schulz
d0a095396e
- Remove newlines in Com_Error()
...
- Update register description
2011-05-10 10:07:34 +00:00
Thilo Schulz
a7ea395bd0
Add opStack protection to defend against malicious QVMs
2011-05-10 09:14:49 +00:00
Thilo Schulz
5f63ab9160
Choose better alignment for heavy-duty rendering structures, patch by Matt Turner ( #4981 )
2011-05-09 23:39:40 +00:00
Thilo Schulz
185d2d6b60
Add codec fallback support for sound files not found, Patch by Zack Middleton ( #4982 )
2011-05-09 22:40:25 +00:00
Thilo Schulz
2eb9975334
Fix nasty crash bug
2011-05-09 21:47:41 +00:00
Thilo Schulz
36314a1622
Add error handling to malloc as well
2011-05-09 15:40:30 +00:00
Thilo Schulz
2e3c902da9
fix overzealous cvar cheat protection, patch by cyrri ( #4974 )
2011-05-06 11:50:26 +00:00
Thilo Schulz
2ae1bf3dcd
IQM skin support and print limit info, make other limit info consistent, patch by Zack Middleton ( #4978 )
2011-05-06 11:43:07 +00:00
Thilo Schulz
45824008d9
Remove C99 code constructs from IQM code, patch by gimhael ( #4974 )
2011-05-05 13:33:43 +00:00