Jean-Philip Desjardins
e6dfdcc513
Add implementation for GetOsdConfigParam.
...
Just making sure calling that function will return always the same thing.
2018-05-24 13:02:48 -04:00
Clang-Format
acf75535ec
Clang format
2018-04-30 21:01:23 +01:00
Jean-Philip Desjardins
6122f674e6
Add guards to prevent unwanted formatting.
2018-04-30 11:19:06 -04:00
Jean-Philip Desjardins
3bcf06e618
CPU is not idle if interrupts are disabled.
2018-04-11 09:53:52 -04:00
Jean-Philip Desjardins
30dabba668
Remove context save/load restore parts in interrupt handler.
...
Not required anymore because idle thread should always be current thread.
2018-04-06 12:55:34 -04:00
Jean-Philip Desjardins
34a1aff123
Switch out current thread before servicing an interrupt.
...
This fixes issues with some system calls (ie.: iSignalSema) writing values directly in the thread's context
but not being picked up because the thread's context was not saved.
2018-04-06 12:55:25 -04:00
Jean-Philip Desjardins
ca6cf3fa98
Remove useless speed hack.
2018-03-20 11:01:05 -04:00
Jean-Philip Desjardins
8767f70045
Improve ThreadSwitchContext.
...
Don't save context if switching out of idle thread.
2018-03-20 11:01:05 -04:00
Jean-Philip Desjardins
1c5ad825c9
Prepend "host:" to executable path when booting ELF.
2018-03-20 10:59:25 -04:00
Jean-Philip Desjardins
b4addb46d5
Remove handler calls return number of remaining handlers.
2018-03-20 10:57:58 -04:00
Jean-Philip Desjardins
7ea18fbc63
Cleanup.
2018-03-20 10:57:58 -04:00
Jean-Philip Desjardins
e46d068c6b
Add some assertions.
2018-03-20 10:57:58 -04:00
Jean-Philip Desjardins
32357dd017
Use filesystem::path for BootFromFile parameter.
2017-12-02 12:56:02 -05:00
Jean-Philip Desjardins
a22784d290
Don't switch threads if SetupThread has not been called.
2017-09-04 18:40:46 -04:00
Jean-Philip Desjardins
776b293d77
Set EIE flag on reset.
2017-09-04 18:40:46 -04:00
Jean-Philip Desjardins
6aedcff8a0
Fix build.
2017-09-04 18:40:18 -04:00
Jean-Philip Desjardins
235f323e6e
Report proper executable path in command line arguments.
2017-09-04 18:40:18 -04:00
Mahmood(Thunder07)
97c229ec98
Cleanup
...
Silence:"warning: '0' flag ignored with precision and ‘%X’ gnu_printf format"
2017-05-29 06:01:32 +01:00
Jean-Philip Desjardins
ba2b870949
Remove extraneous space.
2017-04-16 20:03:04 -04:00
Mahmood(Thunder07)
83401bb604
Remove boost lexical_cast usage.
...
fix build
2017-04-13 18:16:35 +01:00
Jean-Philip Desjardins
827da47a2c
Use GetStructPtr to obtain pointer to string address.
2017-02-24 00:39:54 -05:00
Jean-Philip Desjardins
301c03ed30
Add some checks on SIF transfers to catch potential errors.
2017-01-29 21:13:11 -05:00
Jean-Philip Desjardins
815aeaac7d
Break infinite loop if SemaReleaseSingleThread fails.
2017-01-29 21:13:11 -05:00
Jean-Philip Desjardins
226305c650
Generate and service IPU interrupts.
2017-01-06 19:18:00 -05:00
Jean-Philip Desjardins
15c847ab62
Release waiting threads when semaphore is deleted.
2017-01-06 19:18:00 -05:00
Jean-Philip Desjardins
15f0048c8f
Add generic semaphore thread release function.
2017-01-06 19:18:00 -05:00
Jean-Philip Desjardins
96a7abf8bc
Cleanup.
2017-01-06 19:18:00 -05:00
Jean-Philip Desjardins
525da09643
Use GetStructPtr to obtain thread context.
2017-01-06 19:17:59 -05:00
Jean-Philip Desjardins
b55b63b499
Add description for SetSyscall.
2016-12-11 16:32:54 -05:00
Jean-Philip Desjardins
d5ad9d0dcd
Fix thread context structure layout to match the real thing.
2016-11-26 20:29:51 -05:00
Jean-Philip Desjardins
18c89807eb
Reset thread state whenever it goes in dormant mode.
2016-11-26 20:29:51 -05:00
Jean-Philip Desjardins
bd031cd339
Cleanup.
2016-11-26 20:29:51 -05:00
Jean-Philip Desjardins
43ce1be72f
Adjust initial thread SP/FP value.
2016-11-26 20:29:51 -05:00
Jean-Philip Desjardins
10c29ecaa9
Add check to make sure we don't go below the thread's stack base.
2016-11-26 20:29:51 -05:00
Jean-Philip Desjardins
5daa79ce6d
Reset speed hack when it doesn't apply anymore.
2016-11-19 17:28:09 -05:00
Jean-Philip Desjardins
f167cdc60e
Document speed hack.
2016-11-19 17:28:09 -05:00
Jean-Philip Desjardins
fd2a251540
Only force to check pending interrupts when they can be serviced.
2016-11-19 17:28:09 -05:00
Jean-Philip Desjardins
e5a0d26645
Add support for iEnableIntc and iDisableIntc.
2016-10-11 23:12:48 -04:00
Jean-Philip Desjardins
efec8dfdf9
Add support for iSuspendThread.
2016-10-11 23:12:00 -04:00
Jean-Philip Desjardins
a1013c7b2f
Add interrupt variants for EnableDmac and DisableDmac.
2016-09-06 18:12:40 -04:00
Jean-Philip Desjardins
0e86cecfd7
Load patch description file from assets on Android.
2016-07-18 22:08:47 -04:00
Jean-Philip Desjardins
451b14cbc7
Use GetStructPtr to obtain Deci2Handler.
2016-07-10 22:47:26 -04:00
Jean-Philip Desjardins
7bdad6f93b
Use GetStructPtr in ReferSemaStatus.
2016-06-02 22:00:41 -04:00
Jean-Philip Desjardins
ee8cd02bf2
Make sure SifDmaStat doesn't report transfer completion immediately.
2016-05-28 21:09:18 -04:00
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