Commit Graph

1220 Commits

Author SHA1 Message Date
PatrickvL 8bfe7bc426 Prevent naming collisions on kernel symbols using a KRNL() macro 2016-12-02 17:31:34 +01:00
PatrickvL 14427e9996 Added MmClaimGpuInstanceMemory implementation 2016-12-02 15:43:23 +01:00
PatrickvL 3dd16ce418 Added remaining Mm* kernel functions
Introduced and used VOLATILE define
Removed using namespace xboxkrnl
Fixed ambiguous warnings
2016-12-02 10:38:46 +01:00
PatrickvL 3e1695e54d Merge branch 'master' of https://github.com/PatrickvL/Cxbx-Reloaded.git 2016-12-02 08:58:07 +01:00
Luke Usher 56185eed5f Fix compilation of Interlocked API
This was achieved by prefixing XboxKrnl functions with Xb to prevent a name conflict with WinNT.h
Additionally, rather than importing native Interlocked functions from NTDLL, we use the versions defined in WinNT.h
2016-12-01 22:03:48 +00:00
PatrickvL 7bb8c658c8 EmuX86 : Parity should only be calculated over least significant 8 result bits 2016-12-01 22:21:58 +01:00
PatrickvL 86053967fc EmuX86 : Implemented setting parity flag 2016-12-01 18:09:06 +01:00
PatrickvL f1c03d9909 Merge remote-tracking branch 'refs/remotes/LukeUsher/master' 2016-12-01 18:01:29 +01:00
PatrickvL 9c821d09c0 Added more kernel stubs
Also applied FASTCALL define. Failed attempt to add Interlocked API's
(VC++ complains about undefined intrinsics or something like that).
2016-12-01 18:01:16 +01:00
PatrickvL 6fd697663f WIP : Interlocked functions from Dxbx 2016-11-30 23:38:51 +01:00
Luke Usher 45b7a71638 Small EmuX86 improvements.
Dashboard now runs with DSOUND_LLE enabled, but takes a long time to boot up
2016-11-30 20:25:06 +00:00
Luke Usher f45e8dd8fc Add experimental flag to enable DSOUND LLE 2016-11-30 20:14:39 +00:00
Luke Usher 1f5d71f7c4 Add stub for KeCancelTimer 2016-11-30 20:13:15 +00:00
Luke Usher 6899be5a0b Implement KeStallExecutionProcessor 2016-11-30 20:04:11 +00:00
PatrickvL f9f3fa4b86 Merge branch 'LukeUsher/master' 2016-11-30 20:36:34 +01:00
Luke Usher fb28a1470e Remove CxbxKrnlCleanup from IOCreateFile
We do not need to abort execution & LOG_UNIMPLEMENTED takes care of warning us
2016-11-30 12:50:04 +00:00
Luke Usher c23e47d5dc Remove HalReturnToFirmware hack
No longer required now SHA/HMAC is implemented
2016-11-30 12:02:35 +00:00
Luke Usher b9f9101051 Revert "Remove a ton of XAPI functions"
It was a little too soon for this afterall

This reverts commit ebaea5e9f1.
2016-11-30 11:22:44 +00:00
Luke Usher 9f7b29ad62 Add implementation for NtWaitForSingleObject & stub for KeSetPriorityThread 2016-11-29 14:38:19 +00:00
Luke Usher 9fedcc64a6 Neaten up the GetRegisterPointer function a little 2016-11-29 14:18:36 +00:00
PatrickvL 8322532863 Merge remote-tracking branch 'refs/remotes/LukeUsher/master' 2016-11-29 09:33:03 +01:00
Luke Usher 5d469d9188 Add stubs for ObReferenceObjectByHandle, ObDereferenceObject and KeSetBasePriority
Crash Bandicoot now sits on the loading screen forever, but it doesn't crash, so that's progress, I guess
2016-11-29 06:58:30 +00:00
Luke Usher ebaea5e9f1 Remove a ton of XAPI functions
Our Kernel emulation should be good enough to take care of this, and if not, we should improve that rather than patching out XAPI.
The XInput/XDevice functions are still needed as we do not emulate USB yet
2016-11-28 22:18:57 +00:00
Luke Usher 4c684a807d Add a (dumb) implementation of MmGetPhysicalAddress 2016-11-28 21:16:47 +00:00
Luke Usher 0789ab2358 Initial support for Read8/16 and Write8/16 2016-11-28 21:08:14 +00:00
Luke Usher 574977bf2f Implement XcHMAC
Dashboard no longer crashes when going into the System Information menu option
2016-11-28 20:15:06 +00:00
Luke Usher 97773173c9 Implement XcSHAInit, XcSHAUpdate and XcSHAFinal by redirecting to the undocumented A_SHA functions in advapi32.dll 2016-11-28 19:50:48 +00:00
PatrickvL 3922e44386 Added RtlCharToInteger
Also sorted EXTERN's and IMPORT's, removed end-of-line-spaces and two
incorrect LOG_UNIMPLEMENTED occurances.
2016-11-28 18:22:25 +01:00
PatrickvL 79432acafc Merge remote-tracking branch 'refs/remotes/LukeUsher/master' 2016-11-28 09:29:40 +01:00
Luke Usher c7caf082e2 Add D3DFMT_X1R5G5B5 2016-11-26 23:01:10 +00:00
Luke Usher 08228c30a1 Fix a crash when opening an XBE with an invalid TLS structure 2016-11-26 22:21:44 +00:00
Luke Usher 86c3bbf947 This is not really needed 2016-11-26 22:21:15 +00:00
Luke Usher 7323a2c711 KfLower/RaiseIrql should be fastcall, not stdcall.
Add implementation for KeRaiseIrql from ReactOS as it seems to be identical to the Xbox implementation.
We may not be able to do the same for KfLowerIrql though, the implementation looks (slightly) different to me.
2016-11-26 22:07:11 +00:00
Luke Usher 661a4c0682 Add EBP Register to EmuX86_GetRegisterPointer 2016-11-26 21:19:30 +00:00
Luke Usher eebf17ac23 Restore XREF only function handler, seems like it was too early to remove this 2016-11-26 21:19:02 +00:00
Luke Usher 053781afd9 Add newline to return statement logging 2016-11-26 10:04:47 +00:00
Luke Usher 7bc449faff Merge pull request #20 from PatrickvL/master 2016-11-26 08:56:24 +00:00
PatrickvL 740f1ae8af More Ex* signature fixes 2016-11-25 22:47:40 +01:00
PatrickvL 64e927c75d Corrected and extended KernelThunk table 2016-11-25 22:25:27 +01:00
PatrickvL 0a31daeb27 Added typedef (P)ERWLOCK 2016-11-25 22:25:01 +01:00
PatrickvL bb1da9bca9 Updated Ps* signatures 2016-11-25 22:24:32 +01:00
PatrickvL ed93832a71 Updated Ex* signatures 2016-11-25 22:24:19 +01:00
PatrickvL dd07883cb4 Updated a few more occurances of Cxbx string to Cxbx-Reloaded 2016-11-24 17:31:24 +01:00
PatrickvL 5e3aeaaa67 Forwarded RtlAppendUnicodeToString to NtDll 2016-11-24 17:27:25 +01:00
PatrickvL 3dd0a8fa8e Remove LONGBOOL - a Delphi Dxbx derelict
Also corrected return type of HalDisableSystemInterrupt to VOID
2016-11-24 16:32:16 +01:00
PatrickvL 0d4c200620 Merge branch 'master' of https://github.com/PatrickvL/Cxbx-Reloaded 2016-11-24 09:52:30 +01:00
PatrickvL cebf472ab2 Forwarded RtlAppendUnicodeStringToString to NtDll 2016-11-24 00:19:09 +01:00
PatrickvL 51fdab2139 Simplified NtDll API importing 2016-11-24 00:18:55 +01:00
PatrickvL a0e9bc9724 Added a few UNIMPLEMENTED Ke* functions 2016-11-23 23:42:08 +01:00
PatrickvL aebbb76c13 Added UNIMPLEMENTED stubs for (READ/WRITE)_PORT_BUFFER_U(CHAR/SHORT/LONG) 2016-11-23 20:49:38 +01:00