Commit graph

195 commits

Author SHA1 Message Date
wheremyfoodat
60de6a65f5 Kernel: Don't idle on svcSleepThread(0) 2023-08-02 18:52:52 +03:00
wheremyfoodat
65de2637ae More threading fixes 2023-08-01 23:45:43 +03:00
wheremyfoodat
7047bf6ec8 [Mutex[ Request reschedule when acquiring mutex 2023-07-29 15:37:34 +03:00
wheremyfoodat
fbc10bf3da Fix typo 2023-07-29 15:10:06 +03:00
wheremyfoodat
2eb84e053b [Kernel] Undo enormous, embarassing mistake no one must know about 2023-07-29 15:03:46 +03:00
wheremyfoodat
e082625002 Properly handle current thread in rescheduling 2023-07-28 20:05:26 +03:00
wheremyfoodat
8dd5b990be Thread bonk part 1: Better rescheduling maybe 2023-07-28 19:49:11 +03:00
wheremyfoodat
ed1b0704d6
Merge pull request #111 from wheremyfoodat/dynapand
Filesystem bonking
2023-07-18 01:26:17 +03:00
wheremyfoodat
cdf01aaf43 [FS::Directory] Better attribute handling 2023-07-17 03:22:13 +03:00
wheremyfoodat
22bfb092b8 Fix 8.3 conversion derp 2023-07-17 03:11:21 +03:00
wheremyfoodat
f08fe10862 [FS::Dir] Fix command response headers 2023-07-17 02:58:55 +03:00
wheremyfoodat
50742f7bb1 [FS] Proper 8.3 filename conversion hopefully 2023-07-17 02:54:05 +03:00
wheremyfoodat
0b7e63c5b6
Fix resetting v2 2023-07-15 01:26:46 +03:00
wheremyfoodat
2cd03e905d
Fix resetting 2023-07-14 18:03:25 +03:00
Merry
bf93097d62 kernel: Delete object properly in deleteObjectData
delete-ing a void* is undefined behaviour
2023-07-14 15:00:54 +01:00
wheremyfoodat
f64c662ab9 Stop lying to people 2023-07-13 00:25:47 +03:00
wheremyfoodat
3a1a612e8b Merge branch 'master' into dynapand 2023-07-12 21:34:29 +03:00
wheremyfoodat
42c86ac541 Better FS::ReadDirectory 2023-07-12 21:33:13 +03:00
wheremyfoodat
e958a360ae
typo 2023-07-12 01:27:42 +03:00
Wunkolo
37b75f0928 Fix C4267/C4244 warnings
Address warnings involving lossy conversions from larger integer-types into smaller integer-types
2023-07-10 12:33:37 -07:00
wheremyfoodat
8b0a3e372e
Make unknown memory operations warn instead of panic 2023-07-04 01:39:46 +03:00
wheremyfoodat
0f64101ee5
Merge pull request #64 from wheremyfoodat/dynapica
Separate user and dev builds
2023-07-03 14:12:01 +03:00
wheremyfoodat
d5d8f869e4
Update idle_thread.cpp 2023-07-02 23:00:15 +03:00
wheremyfoodat
0b2ff6c5c8 Separate user and dev builds 2023-07-02 22:36:45 +03:00
Sky
e9b3b7c2a2 Add workaround helper for bit_cast and missing #include <bit>
Allows compilation on native macOS build system.
2023-06-18 12:33:34 -07:00
wheremyfoodat
d0ae5f0546
Merge pull request #37 from marysaka/feat/proper-hle-result
hle: Add proper type for result code
2023-06-17 18:39:36 +03:00
Mary
122b1b2727 hle: Add proper type for result code
This should clean up all HLE errorcode in the codebase.

I didn't removed Rust::Result as this should be a cleanup for another
iteration.
2023-06-16 20:09:37 +02:00
Wunkolo
fde93381a5 Use std::span for CPU register-state
Following the trend of #33: `std::span` provides some useful utility
functions like `size_bytes()` and `as_bytes()` and serves as a better
non-owning "chunk of data"-type over just passing around an
`std::array&`.
2023-06-16 07:24:37 -07:00
wheremyfoodat
0c213900bc
[FS] Actually add FlushFile 2023-06-11 23:24:12 +03:00
wheremyfoodat
7cc7dc09f4 [FS] Implement File::Flush and fix file function headers 2023-06-03 22:25:30 +03:00
wheremyfoodat
01d16fdfd1 [FS] Better DeleteFile, fclose when file session is closed 2023-05-20 02:32:36 +03:00
wheremyfoodat
09ba66ae60 [Kernel] Fully implement semaphores 2023-05-07 18:02:51 +03:00
wheremyfoodat
de537fedfb [Kernel] Add proper WakeUpAllThreads 2023-05-06 00:06:31 +03:00
wheremyfoodat
3b98b6bd03 Moar 2023-05-01 00:28:41 +03:00
wheremyfoodat
71676a79e2 [Kernel] Spam some more RescheduleThreads calls 2023-05-01 00:27:49 +03:00
wheremyfoodat
74b06da6b2 [Kernel] Handle timeout errors properly 2023-04-30 14:41:57 +03:00
wheremyfoodat
5e0c4b76ac [WaitSyncN] r1 should be -1 on timeout 2023-04-30 01:22:43 +03:00
wheremyfoodat
1d06a31113 [Kernel::WaitSyncN] Panic on handleCount == 0 2023-04-30 01:02:35 +03:00
wheremyfoodat
4ed1cf234b Fix typo 2023-04-29 22:32:38 +03:00
wheremyfoodat
dac77cdc1d [Kernel Add WakeupOneThread 2023-04-29 01:45:30 +03:00
wheremyfoodat
069fe37602 [Kernel] Always reschedule on ArbitrateAddress (Fixes MK7) 2023-04-27 00:12:27 +03:00
wheremyfoodat
f1093cda34 [Kernel] Format 2023-04-25 01:57:50 +03:00
wheremyfoodat
0eeff3535f Derp 2023-04-24 23:25:56 +03:00
wheremyfoodat
1cf8af98c2 Another one 2023-04-24 23:13:37 +03:00
wheremyfoodat
3529c9bf67 [Kernel] Fix spontaneous r0 corruption 2023-04-24 23:10:04 +03:00
wheremyfoodat
ef6cc56182 [Address Arbiter] Add comment for clarity 2023-04-24 00:55:56 +03:00
wheremyfoodat
3ed3729bb4 Reschedule threads on event signal (Required for FE:A FMV) 2023-04-24 00:53:46 +03:00
wheremyfoodat
9532e694b3 [Kernel] Acquiring threads 2023-04-23 01:07:21 +03:00
wheremyfoodat
908e1fc4fd [DSP] Add event stubs to fix games locking up 2023-04-22 20:59:34 +03:00
wheremyfoodat
2ebbb08766 [Mutex] Make less dumb 2023-04-21 21:48:07 +03:00