Lioncash
4769d798f9
kernel/kernel: Ensure shutdown threads are always initialized
2022-12-05 15:19:36 -05:00
Liam
cec3a3cd5a
service_thread: fix uninitialized memory usage
2022-12-04 16:02:24 -05:00
liamwhite
22aff09b33
Merge pull request #9289 from liamwhite/fruit-company
...
general: fix compile for Apple Clang
2022-12-03 12:09:21 -05:00
Lioncash
59335f6796
hle_ipc: Add helper functions for getting number of buffer elements
2022-11-23 13:15:19 -05:00
Lioncash
c31f19b6d1
hle_ipc: Mark relevant member functions as [[nodiscard]]
...
Will allow the compiler to complain about cases where ignoring the
return value would be a bug.
2022-11-23 13:08:52 -05:00
Liam
9737615948
general: fix compile for Apple Clang
2022-11-22 22:22:28 -05:00
Lioncash
8d99aae45b
k_handle_table: Remove cast to void* in GetObjectForIpc
...
This was used to get around the KProcess class being incomplete. We can
just move this to the cpp file and eliminate the cast entirely, letting
the compiler do its work.
2022-11-22 13:58:42 -05:00
bunnei
1fb33bd1e1
Merge pull request #9234 from liamwhite/data-cash-money
...
kernel: implement data cache management operations
2022-11-18 13:18:36 -08:00
Morph
e5a446a0df
Merge pull request #9229 from Docteh/achy_breaky_heart
...
Add break for default cases
2022-11-17 19:20:18 -05:00
Kyle Kienapfel
6fa3faec65
Add break for default cases
...
Visual Studio has an option to search all files in a solution, so I
did a search in there for "default:" looking for any missing break
statements.
I've left out default statements that return something, and that throw
something, even if via ThrowInvalidType. UNREACHABLE leads towards throw
R_THROW macro leads towards a return
2022-11-13 16:30:55 -08:00
liamwhite
040a01a5dd
Merge pull request #9225 from liamwhite/debugger-instance
...
Debugger improvements
2022-11-12 21:04:00 -05:00
Liam
651f6598ac
kernel: implement FlushProcessDataCache
2022-11-12 11:27:04 -05:00
bunnei
b51c1544b9
Merge pull request #9224 from liamwhite/services-arent-processes
...
service_thread: remove explicit KProcess
2022-11-11 22:37:04 -08:00
bunnei
d05b183f21
Merge pull request #9198 from liamwhite/arm64
...
Initial ARM64 support
2022-11-10 17:11:27 -08:00
Liam
18123ff958
gdbstub: add ams monitor commands
2022-11-10 19:20:57 -05:00
Liam
b34d3d5882
service_thread: remove explicit KProcess
2022-11-10 16:14:03 -05:00
Liam
4eece4d35d
kernel/svc_types: refresh
2022-11-09 19:05:08 -05:00
bunnei
770f23db34
Merge pull request #9182 from liamwhite/services-are-processes
...
kernel: assign KProcess to service threads
2022-11-09 15:52:23 -08:00
Liam
cbaf642ffe
Initial ARM64 support
2022-11-09 16:58:49 -05:00
Fernando S
3161b34ff6
Merge pull request #9215 from liamwhite/swordfight
...
Ensure correctness of atomic store ordering
2022-11-09 14:50:49 +01:00
Liam
71c0e20f95
Ensure correctness of atomic store ordering
2022-11-09 08:09:50 -05:00
Liam
6a0d8b2aa1
service_thread: fix deletion
2022-11-06 19:50:51 -05:00
liamwhite
4c198bbf06
Merge pull request #9173 from bunnei/kern-update-15
...
Kernel: Various updates for FW 15.0.x
2022-11-05 13:25:29 -04:00
Liam
cf0f821565
core: hle: kernel: Address review comments.
2022-11-05 12:23:47 -04:00
Liam
e6fe40428c
service_thread: register service threads to the logical owner process
2022-11-04 09:18:57 -04:00
Liam
85527cc7c7
kernel: avoid racy behavior in global suspension
2022-11-04 09:18:57 -04:00
bunnei
05ae0cab0e
core: hle: kernel: k_page_table: Remove unnecessary casts.
2022-11-03 21:17:08 -07:00
bunnei
119315af08
core: hle: kernel: k_page_table: Manually open/close pages for IPC methods.
2022-11-03 21:17:08 -07:00
bunnei
661fe06d9d
core: hle: kernel: k_page_table: Implement IPC memory methods.
2022-11-03 21:17:07 -07:00
bunnei
ba21ba0c5c
core: hle: kernel: k_memory_manager: Refresh.
2022-11-03 21:17:07 -07:00
bunnei
32d7faafa8
core: hle: kernel: Integrate system KSystemResource.
2022-11-03 21:17:07 -07:00
bunnei
b7b47f3099
core: hle: kernel: k_dynamic_page_manager: Refresh.
2022-11-03 21:17:07 -07:00
bunnei
6f941121e6
core: hle: kernel: Add KSystemResource.
2022-11-03 21:17:07 -07:00
bunnei
6636b81573
core: hle: kernel: k_handle_table: Refresh.
2022-11-03 21:17:07 -07:00
bunnei
1f21fa866d
core: hle: kernel: k_memory_layout: Refresh.
2022-11-03 21:17:07 -07:00
bunnei
84d130f143
core: hle: kernel: k_memory_region_type: Refresh.
2022-11-03 21:17:07 -07:00
bunnei
d928ba8e40
core: hle: kernel: slab_helpers: Add KAutoObjectWithSlabHeap.
2022-11-03 21:17:06 -07:00
bunnei
3aab7d4473
core: hle: kernel: k_dynamic_resource_manager: Add KBlockInfoManager, KBlockInfoSlabHeap.
2022-11-03 21:17:06 -07:00
bunnei
6b6c02f541
core: hle: kernel: k_page_bitmap: Refresh.
2022-11-03 21:17:06 -07:00
bunnei
50bfacca88
core: hle: kernel: k_memory_block: Refresh.
2022-11-03 21:17:06 -07:00
bunnei
0cb9bc12fc
core: hle: kernel: k_page_heap: Refresh.
2022-11-03 21:17:06 -07:00
bunnei
6257461684
core: hle: kernel: k_page_group: Add KPageBufferSlabHeap.
2022-11-03 21:17:06 -07:00
bunnei
d353c45f7d
core: hle: kernel: k_system_control: Add SecureAppletMemorySize.
2022-11-03 21:17:06 -07:00
bunnei
f76b4417e6
core: hle: kernel: k_page_buffer: Add KPageBufferSlabHeap.
2022-11-03 21:17:06 -07:00
bunnei
0897f4f96c
core: hle: kernel: Add KPageTableManager.
2022-11-03 21:17:06 -07:00
bunnei
6d4f411c08
core: hle: kernel: Add KPageTableSlabHeap.
2022-11-03 21:17:06 -07:00
bunnei
37b17252d1
core: hle: kernel: Add KEventInfo.
2022-11-03 21:17:06 -07:00
bunnei
ddd3f48736
core: hle: kernel: Add KDebug.
2022-11-03 21:17:06 -07:00
Liam
633411c20f
kernel: fix single core for service threads
2022-10-31 17:45:46 -04:00
Liam
2228383322
kernel: fix port tracking
2022-10-31 17:45:46 -04:00
Liam
7aa91c8d9c
k_server_session: add SendReplyHLE
2022-10-31 17:45:45 -04:00
Liam
7837185f0a
service_thread: convert to map for session management
2022-10-31 17:44:07 -04:00
Liam
983f2b7074
kernel: invert session request handling flow
2022-10-31 17:44:06 -04:00
Liam
eec3184bb0
k_thread: fix single core
2022-10-30 18:44:29 -04:00
Liam
d867ae5ab6
k_server_session: fix crashes
2022-10-29 23:05:56 -04:00
bunnei
2dd6a2352d
Merge pull request #9125 from liamwhite/dummy-scheduler
...
kernel: refactor dummy thread wakeups
2022-10-26 09:51:44 -07:00
Morph
8b4d5aeb4f
concepts: Use the std::contiguous_iterator concept
...
This also covers std::span, which does not have a const iterator.
Also renames IsSTLContainer to IsContiguousContainer to explicitly convey its semantics.
2022-10-26 00:41:54 -04:00
liamwhite
3c38bd7cf0
Merge pull request #9119 from liamwhite/shutdown-barrier
...
core: barrier service thread shutdown
2022-10-25 06:45:51 -04:00
Liam
1a378a7769
kernel: refactor dummy thread wakeups
2022-10-24 19:52:01 -04:00
Liam
2d90a927c9
core: barrier service thread shutdown
2022-10-23 05:45:45 -04:00
Morph
e6ab1f673b
general: Enforce C4800 everywhere except in video_core
2022-10-22 15:02:04 -04:00
Lioncash
93a7058d8e
k_session_request: Add missing override specifier
2022-10-21 01:56:14 -04:00
Lioncash
969387a79a
k_session_request: Turn C-style array into std::array
...
Makes for stronger typing and allows tooling bounds checks provided by
the standard library for debugging purposes.
2022-10-21 01:54:34 -04:00
Lioncash
3968faec06
k_session_request: Simplify constructor initialization
2022-10-21 01:53:10 -04:00
Liam
fca195b4fb
kernel: remove most SessionRequestManager handling from KServerSession
2022-10-19 16:31:12 -04:00
Liam
3efb8eb2dc
kernel: add KSessionRequest
2022-10-19 16:31:12 -04:00
liamwhite
925fb63478
Merge pull request #9083 from liamwhite/take-a-chance-on-me
...
kernel: fix slab heap ABA
2022-10-19 16:27:59 -04:00
bunnei
97879faea4
core: hle: kernel: Migrate ProcessState to enum class.
2022-10-19 14:03:50 -04:00
bunnei
829e82e264
core: hle: kernel: Use result macros for new/changed code.
2022-10-18 19:13:35 -07:00
bunnei
1b787adbd0
core: hle: kernel: Fix InitializePreemption order.
2022-10-18 19:13:35 -07:00
bunnei
abcc009dff
core: hle: kernel: k_process: Improve management of page table & cleanup.
2022-10-18 19:13:35 -07:00
bunnei
79bcb38321
core: hle: kernel: k_interrupt_manager: HandleInterrupt should not depend on current process.
2022-10-18 19:13:35 -07:00
bunnei
8d4e026d05
core: hle: kernel: Remove junk.
2022-10-18 19:13:35 -07:00
bunnei
ff26190d42
core: hle: kernel: k_page_table: Impl. LockForUn/MapDeviceAddressSpace, cleanup.
2022-10-18 19:13:35 -07:00
bunnei
1baedfa12c
core: hle: kernel: Integration application memory block slab manager.
2022-10-18 19:13:34 -07:00
bunnei
ed591934fb
core: hle: kernel: k_page_table: Update, and integrate with new KMemoryBlockManager/SlabManager.
2022-10-18 19:13:34 -07:00
bunnei
58eb6953d1
core: hle: kernel: k_memory_block: Update.
2022-10-18 19:13:34 -07:00
bunnei
2bb41cffca
core: hle: kernel: k_memory_block_manager: Update.
2022-10-18 19:13:34 -07:00
bunnei
57a77e9ff4
core: hle: kernel: k_thread: Implement thread termination DPC.
2022-10-18 19:13:34 -07:00
bunnei
d02ccfb15d
core: hle: kernel: Add KDynamicResourceManager.
2022-10-18 19:13:34 -07:00
bunnei
9ec5f75f43
core: hle: kernel: Add KDynamicSlabHeap.
2022-10-18 19:13:34 -07:00
bunnei
345b9e6a08
core: hle: kernel: Add KDynamicPageManager.
2022-10-18 19:13:34 -07:00
bunnei
25dcaf1eca
core: hle: kernel: k_process: Change Status -> State.
2022-10-18 19:13:34 -07:00
bunnei
113a5ed68f
core: hle: kernel: svc_types: Add SystemThreadPriorityHighest and ProcessState.
2022-10-18 19:13:34 -07:00
bunnei
47b8160666
core: device_memory: Templatize GetPointer(..).
2022-10-18 19:13:34 -07:00
bunnei
e63a5459e3
core: hle: kernel: svc_common: Add WaitInfinite & cleanup.
2022-10-18 19:13:34 -07:00
Liam
282cd3e5fe
kernel: fix slab heap ABA
2022-10-17 17:53:32 -04:00
liamwhite
ae6dd1143c
Merge pull request #9061 from liamwhite/writable-event
...
kernel: remove KWritableEvent
2022-10-14 17:30:38 -04:00
Liam
a9ace6856d
kernel: remove KWritableEvent
2022-10-12 20:29:29 -04:00
Liam
61a8696510
k_server_session: preliminary support for userspace server sessions
2022-10-11 18:40:40 -04:00
Liam
9b34afa588
Add implementation of svcCreateSession
2022-10-11 18:15:45 -04:00
Liam
35d3e7db2a
common: remove "yuzu:" prefix from thread names
2022-10-03 18:43:56 -04:00
bunnei
01bb5d5c4d
Merge pull request #8637 from liamwhite/bad-interrupts
...
kernel: unlayer CPU interrupt handling
2022-08-07 17:48:55 -07:00
Andrea Pappacoda
cdb240f3d4
chore: make yuzu REUSE compliant
...
[REUSE] is a specification that aims at making file copyright
information consistent, so that it can be both human and machine
readable. It basically requires that all files have a header containing
copyright and licensing information. When this isn't possible, like
when dealing with binary assets, generated files or embedded third-party
dependencies, it is permitted to insert copyright information in the
`.reuse/dep5` file.
Oh, and it also requires that all the licenses used in the project are
present in the `LICENSES` folder, that's why the diff is so huge.
This can be done automatically with `reuse download --all`.
The `reuse` tool also contains a handy subcommand that analyzes the
project and tells whether or not the project is (still) compliant,
`reuse lint`.
Following REUSE has a few advantages over the current approach:
- Copyright information is easy to access for users / downstream
- Files like `dist/license.md` do not need to exist anymore, as
`.reuse/dep5` is used instead
- `reuse lint` makes it easy to ensure that copyright information of
files like binary assets / images is always accurate and up to date
To add copyright information of files that didn't have it I looked up
who committed what and when, for each file. As yuzu contributors do not
have to sign a CLA or similar I couldn't assume that copyright ownership
was of the "yuzu Emulator Project", so I used the name and/or email of
the commit author instead.
[REUSE]: https://reuse.software
Follow-up to 01cf05bc75
2022-07-27 12:53:49 +02:00
Liam
6523854dd6
kernel: unlayer CPU interrupt handling
2022-07-25 12:14:15 -04:00
Morph
591d1f1b09
Merge pull request #8549 from liamwhite/kscheduler-sc
...
kernel: use KScheduler from Mesosphere
2022-07-25 12:00:31 -04:00
Kelebek1
458da8a948
Project Andio
2022-07-22 01:11:32 +01:00
Merry
a1d2fb314e
KCodeMemory: Mark virtual methods as override
2022-07-15 10:39:58 +01:00
Liam
a9a83fa726
kernel: Ensure all uses of disable_count are balanced
2022-07-14 22:47:18 -04:00
Liam
77137583cd
kernel: be more careful about initialization path for HLE threads
2022-07-14 22:47:18 -04:00