Commit Graph

1125 Commits

Author SHA1 Message Date
Dr. Chat
4301806061 Cleanup some Ke* threading APIs (and update the dispatch header when possible) 2015-07-25 11:43:25 -05:00
Dr. Chat
18d8fad098 Couple of fixes for IO (null pointer deref and improper XctdCompressionInformation) 2015-07-24 23:50:02 -05:00
Dr. Chat
270686a0be Whoops, don't need these 2015-07-24 23:24:23 -05:00
Dr. Chat
b8b134da75 module Retain instead of RetainHandle 2015-07-24 23:09:47 -05:00
Dr. Chat
64089558f1 XThread set exit code on exit 2015-07-24 23:09:33 -05:00
Dr. Chat
c536053dec Fix improper getting arguments from stack
Also fix PrimitivePointerParam conversion error
2015-07-24 23:08:55 -05:00
Dr. Chat
cf37fa7d71 Update a bunch of IO methods 2015-07-24 23:07:22 -05:00
Dr. Chat
eac3243907 Include host ID in XThread name for easier debugging 2015-07-24 18:42:30 -05:00
Dr. Chat
8e41d5a707 The kernel object table now keeps track of handle reference counts. 2015-07-22 19:34:33 -05:00
Ben Vanik
a42ab648ed Shuffling --debug around and making it work. 2015-07-22 17:26:10 -07:00
Dr. Chat
9a47082c88 Create XThread suspended and resume it when setup is complete. Fixes race condition on thread_ variable. 2015-07-22 11:56:02 -05:00
Dr. Chat
8d0fef1433 Kernel state terminate notification support 2015-07-21 22:11:33 -05:00
Dr. Chat
b6f8985c8c Shuffle around RTL critical section code and add asserts
Get thread ID using new api
2015-07-21 22:09:26 -05:00
Dr. Chat
7ceaf678e0 Minor XObject function changes 2015-07-21 22:07:55 -05:00
Dr. Chat
b646915b77 Make XThread use its guest KTHREAD object in the pcr in r13
Shuffle around some code in XThread
2015-07-21 22:07:30 -05:00
Dr. Chat
a4849ca83e XNetSetSystemLinkPort / respect optional pointers in accept 2015-07-21 22:05:56 -05:00
Ben Vanik
5bd7833e87 More clang fixes. xenia-kernel is clean. 2015-07-19 21:29:06 -07:00
Ben Vanik
bebda48a4f More clang fixes. 2015-07-19 20:46:14 -07:00
Ben Vanik
12a29371e3 Clang fixes. 2015-07-19 18:32:48 -07:00
Ben Vanik
baa86fcd1b Migrating xam UI to elemental-forms.
Fixes #345.
2015-07-19 14:43:27 -07:00
Ben Vanik
edfa3f3fc0 Replacing the tick count timer with xplat abstraction (also better rate).
Fixes #346.
2015-07-19 10:11:54 -07:00
Ben Vanik
91d7acf59e Fixing some particularly bad /W4. 2015-07-18 23:04:21 -07:00
Ben Vanik
e0eb85bbbc Switching to premake. Probably with disasterous consequences. 2015-07-18 16:00:01 -07:00
Ben Vanik
6c5d230f67 Merge pull request #353 from DrChat/ob_threads
Implement ObLookupThreadByThreadId / ObOpenObjectByPointer
2015-07-18 13:27:25 -07:00
Dr. Chat
b92cddc182 Implement SHA-1 in xboxkrnl (correctness not verified though)
Stubs for some weird crypto functions
2015-07-18 14:57:43 -05:00
Dr. Chat
55f5b95670 These are implemented (and formatting) 2015-07-17 20:29:39 -05:00
Dr. Chat
c60d30a311 Add a few more xam exports 2015-07-17 19:57:35 -05:00
Dr. Chat
c3189a6837 ObLookupThreadByThreadId / ObOpenObjectByPointer 2015-07-17 19:56:54 -05:00
Dr. Chat
1ea5a4b7b4 XThread initialize the dispatch header 2015-07-17 19:55:09 -05:00
Dr. Chat
e54477d0e4 XObject::StashNative 2015-07-17 19:52:29 -05:00
Ben Vanik
756d414386 Prep for split libraries. 2015-07-16 22:26:34 -07:00
Sinoxan
0cdff21582 Removing unnecessary unsigned checks. 2015-07-16 19:01:11 +01:00
Ben Vanik
ecd4af10c9 Fixing some clang warnings/errors. 2015-07-15 23:26:58 -07:00
Ben Vanik
f520d3a2a4 Run with latest clang-format. 2015-07-15 22:44:30 -07:00
Ben Vanik
c3415e6332 Adding TLS abstraction. 2015-07-15 22:20:33 -07:00
Ben Vanik
48d5d76882 Cleaning up RtlTimeToTimeFields/TimeFieldsToTime. Needs a non-win32 impl. 2015-07-15 22:10:24 -07:00
Ben Vanik
8154d1dad6 Moving xe::Memory and code cache to abstracted APIs. 2015-07-15 22:10:05 -07:00
Ben Vanik
fefaa31cd8 Switching a few types to their platform-agnostic versions. 2015-07-15 22:09:19 -07:00
Ben Vanik
58c3a1ba79 VirtualProtect platform abstraction. 2015-07-15 18:20:05 -07:00
Ben Vanik
99104a25a8 Fixing thread exit. 2015-07-15 18:01:17 -07:00
Ben Vanik
a6012b73f4 Switching audio system to platform-agnostic primitives. 2015-07-14 23:13:56 -07:00
Ben Vanik
345fe60da0 Switching over kernel objects to the platform-agnostic APIs.
Possibly some regressions here.
2015-07-14 22:44:45 -07:00
Ben Vanik
bd490d5833 Threading primitives, in prep for removing Win32 from kernel/ and others. 2015-07-13 22:49:29 -07:00
Ben Vanik
d89bad7380 Removing uses of Sleep/SwitchToThread/etc. 2015-07-13 21:54:24 -07:00
Ben Vanik
40621a90bd Switching to standard mutex for now (but keeping xe::mutex). 2015-07-13 21:49:32 -07:00
Ben Vanik
72ad899e9e Starting to remove windows.h includes from things. 2015-07-13 20:49:29 -07:00
Ben Vanik
15c17459be Massive refactoring of xenia::ui and GL swap behavior.
This seems to dramatically improve most games (especially with
--vsync=false), though it may cause swap issues with others.
New code should be easier to port, and enables elemental-forms to be
drawn for any emulator UI.
2015-07-12 22:04:17 -07:00
Dr. Chat
5332290573 NetDll_WSAWaitForMultipleEvents
NetDll_WSAResetEvent
2015-07-11 19:32:33 -05:00
Dr. Chat
8499da972c Convert a couple of kernel threading APIs to new style 2015-07-11 18:17:52 -05:00
Dr. Chat
f0060f8335 Allow direct typecasting of Result shim util class 2015-07-11 18:14:33 -05:00