Commit graph

197 commits

Author SHA1 Message Date
Jean-Philip Desjardins
fb1e456734 Reset some of the kernel's state when ExecPS2 is called. 2016-05-08 17:44:02 -04:00
Jean-Philip Desjardins
884d7c47a9 Fix SleepThread return values. 2016-01-23 22:11:52 -05:00
Jean-Philip Desjardins
c801956344 Fix WakeupThread return values. 2016-01-23 22:11:51 -05:00
Jean-Philip Desjardins
2830a9b87b Fill in more thread information in ReferThreadStatus. 2016-01-23 22:11:51 -05:00
Jean-Philip Desjardins
c63431ab52 Improved handling of LoadExecPS2 system call.
- Executable path will now be taken in consideration.
- Fixed issue with UT's incomplete path.
- Use GetStructPtr to obtain proper pointers.
2015-12-05 19:24:44 -05:00
Jean-Philip Desjardins
da09a088df Use address translation when getting struct pointer in PS2OS. 2015-12-05 19:24:43 -05:00
Jean-Philip Desjardins
f103aac3ac Documented some of the address translation stuff. 2015-12-05 19:24:43 -05:00
Jean-Philip Desjardins
0d94c7603f Disable interrupts in EE kernel interrupt handler.
Needed by some games that check interrupt context by looking at IE bit of SR.
2015-11-04 01:04:35 -05:00
Jean-Philip Desjardins
c43b75def4 Use enum instead of constant value. 2015-11-04 01:04:32 -05:00
Jean-Philip Desjardins
bf69c7bf16 Added automatic tag for iPollSema. 2015-11-04 01:04:30 -05:00
Jean-Philip Desjardins
8d8d3cab04 Added alternative way of detecting when autotest is complete.
If no living thread is found to be running, "OnRequestExit" is called.
2015-10-27 00:26:40 -04:00
Jean-Philip Desjardins
adaba0b192 Fixed using NULL as integer errors/warnings. 2015-10-23 23:18:32 -04:00
Jean-Philip Desjardins
38e29edf28 Removed useless check. 2015-08-19 22:01:20 -04:00
Jean-Philip Desjardins
e4b0af6859 Fixed edge cases in EE SuspendThread and ResumeThread. 2015-08-19 21:59:46 -04:00
Jean-Philip Desjardins
a7c54150ff Reverted change to initial's thread priority. 2015-08-16 02:42:47 -04:00
Jean-Philip Desjardins
1045cc63ff Fixed return values for SuspendThread and ResumeThread. 2015-08-16 01:06:38 -04:00
Jean-Philip Desjardins
6138dd77ac Changed the way the thread ready queue is handled. 2015-08-09 00:03:42 -04:00
Jean-Philip Desjardins
ce640005b8 Migrated current thread id to OsVariableWrapper. 2015-08-08 23:36:00 -04:00
Jean-Philip Desjardins
5b6867050d Changed way idle thread is detected. 2015-08-06 01:39:20 -04:00
Jean-Philip Desjardins
97dc26d707 Use OsStructManager to handle threads in EE kernel. 2015-08-06 01:20:04 -04:00
Jean-Philip Desjardins
ec7074e87a Removed all mentions to thread quota. 2015-08-04 01:16:43 -04:00
Jean-Philip Desjardins
dc02fe8620 DMAC handlers are now handled using a linked list. 2015-07-26 01:11:43 -04:00
Jean-Philip Desjardins
33abecc37c Changed the way INTC handlers are managed in PS2OS. 2015-07-25 20:13:59 -04:00
Jean-Philip Desjardins
9b17a67670 Added DiskUtils.
Includes disk image creation routines, SYSTEM.CNF parser and "TryGetDiskId" helper.
2015-07-22 00:30:06 -04:00
Jean-Philip Desjardins
ed36cdb51f Make sure thread priority is reset on Terminate and Exit. 2015-07-12 00:01:51 -04:00
Jean-Philip Desjardins
be6a8769a5 Make sure current priority and initial priority are two separate things. 2015-07-12 00:00:35 -04:00
Jean-Philip Desjardins
804c96accd Fixed some of TerminateThread's behavior. 2015-07-04 22:35:53 -04:00
Jean-Philip Desjardins
1c5f38d0ad Allow virtual machine to run without a EE executable loaded. 2015-07-03 21:02:25 -04:00
Jean-Philip Desjardins
f4a9f29fc3 Cleanup. 2015-07-03 04:58:53 -04:00
Jean-Philip Desjardins
fde268446f Added missing function name. 2015-06-25 19:19:04 -04:00
Jean-Philip Desjardins
b06a4a566f Use enum instead of meaningless constant. 2015-06-20 02:31:09 -04:00
Jean-Philip Desjardins
96181e65e4 Implemented ExecPS2 system call. 2015-06-20 02:15:55 -04:00
Jean-Philip Desjardins
b78697dc68 Don't flush instruction cache on FlushCache(2) (KH2 uses that every frame). 2015-06-07 23:05:46 -04:00
Jean-Philip Desjardins
9cf840fae2 Added ExitDeleteThread in EE kernel. 2015-06-03 04:05:59 -04:00
Jean-Philip Desjardins
6cde4a6386 Cleanup. 2015-06-03 03:43:48 -04:00
Jean-Philip Desjardins
c04339bd02 Fixed DeleteThread's behavior in EE kernel. 2015-05-28 00:54:05 -04:00
Jean-Philip Desjardins
c625aba114 Make sure threads are rescheduled when a new one is started. 2015-05-24 23:02:55 -04:00
Jean-Philip Desjardins
46e805e613 Made some improvements on the way thread status is returned in EE kernel. 2015-05-22 01:26:38 -04:00
Jean-Philip Desjardins
c67c8f6685 Made some changes for test compliance. 2015-05-19 03:18:31 -04:00
Jean-Philip Desjardins
cc3f1b8a39 Build fix. 2015-05-19 03:18:13 -04:00
Jean-Philip Desjardins
d98f5d1a85 More cleanup. 2015-05-19 03:17:31 -04:00
Jean-Philip Desjardins
4032fcbcf2 Cleanup. 2015-05-19 03:13:50 -04:00
Jean-Philip Desjardins
bb404e1155 Changed the way VSync flag is handled to fix other games. 2015-05-17 18:58:19 -04:00
Jean-Philip Desjardins
835f048fe9 Changed the way SetVSyncFlag is handled. 2015-05-15 19:14:03 -04:00
Jean-Philip Desjardins
5534189a79 CPS2OS::GetExecutableRange now only takes executable program sections in account. 2015-05-15 01:01:24 -04:00
Jean-Philip Desjardins
82d9de0631 Generate interrupt handler for VIF1 line. 2015-05-07 23:09:36 -04:00
Jean-Philip Desjardins
fcf1b11f1b Moved EE and GS specific files in a separate folder. 2015-05-06 00:54:15 -04:00
Renamed from Source/PS2OS.cpp (Browse further)