Liam
6b6f0b21b9
k_process: PageTable -> GetPageTable
3 years ago
Liam
6eaef51cf2
memory: rename global memory references to application memory
3 years ago
Liam
156516e399
kernel: use KTypedAddress for addresses
3 years ago
Liam
d7e9461b71
service: move hle_ipc from kernel
3 years ago
Liam
1c3a93e7c4
service: refactor server architecture
Converts services to have their own processes
3 years ago
Liam
c68577384a
general: rename CurrentProcess to ApplicationProcess
3 years ago
bunnei
ddd0ca5f83
core: hle: kernel: k_memory_block: Update.
3 years ago
german77
c7890ebccc
core: Replace all instances of ResultCode with Result
4 years ago
Liam
c1771c98f3
common: Change semantics of UNREACHABLE to unconditionally crash
4 years ago
Morph
2b87305d31
general: Convert source file copyright comments over to SPDX
This formats all copyright comments according to SPDX formatting guidelines.
Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
4 years ago
bunnei
74c36ad85f
core: hle: service: Allocate a service thread.
4 years ago
tech-ticks
53f7a78e9e
hle: kernel: Invalidate entire icache in UnmapProcessMemory and UnmapCodeMemory ( fixes #8174 )
4 years ago
ameerj
22e01068e1
core: Reduce unused includes
4 years ago
bunnei
86eaedbf19
hle: service: ldr: Use deterministic addresses when mapping NROs.
- Instead of randomization, choose in-order addresses for where to map NROs into memory.
- This results in predictable behavior when debugging and consistent behavior when reproducing issues.
4 years ago
bunnei
d45b65b4d9
hle: kernel: k_page_table: Update SetProcessMemoryPermission.
4 years ago
bunnei
7526489b8b
hle: service: ldr: UnmapCodeMemory BSS only when set.
4 years ago
bunnei
84a61db25b
hle: kernel: k_page_table: ReadAndWrite -> UserReadWrite.
4 years ago
bunnei
0942533d2f
hle: kernel: k_page_table: Rename *ProcessCodeMemory -> *CodeMemory.
4 years ago
Morph
d9bfc2d546
kernel: KPageTable: Rename SetCodeMemoryPermission to SetProcessMemoryPermission
4 years ago
Morph
41a0c088ba
general: Get the current process program id directly from the system
This allows us to avoid including KProcess' header file in files that only need to get the current process' program id.
4 years ago
Morph
10508e7af2
general: Rename GetTitleID to GetProgramID
4 years ago
Morph
fddd57db61
general: Remove MakeResult helpers
This is made obsolete by the presence of implicit constructors.
4 years ago
Morph
7ebc38a6d1
general: Replace RESULT_SUCCESS with ResultSuccess
Transition to PascalCase for result names.
5 years ago
Lioncash
6890201733
ldr: Simplify memory copy within LoadNro()
We can use the dedicated memory function for performing copies instead
of reading into a temporary buffer and then immediately writing it back
out to memory.
Eliminates a bit of heap memory churn.
5 years ago
bunnei
ad048de3d6
hle: kernel: Rename Process to KProcess.
5 years ago
german77
da6fd04f92
ldr: Use proper names
5 years ago
bunnei
5dbcaa2970
hle: kernel: Migrate PageHeap/PageTable to KPageHeap/KPageTable.
5 years ago
bunnei
a4c5e6d964
hle: kernel: Migrate to KMemoryBlock, KMemoryBlockManager, and others.
5 years ago
bunnei
f82b15089b
hle: kernel: KSystemControl does not belong in Memory namespace.
5 years ago
Chloe
e62886ead0
kernel: Unify result codes ( #5890 )
* kernel: Unify result codes
Drop the usage of ERR_NAME convention in kernel for ResultName. Removed seperation between svc_results.h & errors.h as we mainly include both most of the time anyways.
* oops
* rename errors to svc_results
5 years ago
bunnei
a5b73195c9
core: arm: Implement InvalidateCacheRange for CPU cache invalidation.
5 years ago
Lioncash
346271b80b
service: Eliminate usages of the global system instance
Completely removes all usages of the global system instance within the
services code by passing in the using system instance to the services.
5 years ago
Lioncash
e7fe020ace
ipc_helpers: Remove usage of the global system instance
Resolves numerous deprecation warnings throughout the codebase due to
inclusion of this header. Now building core should be significantly less
noisy (and also relying on less global state).
This also uncovered quite a few modules that were relying on indirect
includes, which have also been fixed.
5 years ago
bunnei
4c09a6399c
hle: service: ldr: Implement UnloadNrr.
- Used by Final Fantasy X/X-2 HD Remaster.
5 years ago
Lioncash
c7b6027f34
core: Fix clang build pt.3
Should finally resolve building with clang.
5 years ago
bunnei
deb3536936
Revert "core: Fix clang build"
5 years ago
Lioncash
18636013c9
core: Fix clang build
Recent changes to the build system that made more warnings be flagged as
errors caused building via clang to break.
Fixes #4795
5 years ago
Lioncash
78ff298d6d
service/ldr: Resolve sign mismatch warnings
We were performing an int < size_t comparison. We can just correct the
type of the induction variable.
5 years ago
David Marcec
3804c6d1c0
ldr: Cleanup NRO & NRR structs
6 years ago
VolcaEM
8cd49f28a3
Move SHA256Hash to its original position
It's not needed to have it in its previous position anymore
6 years ago
VolcaEM
85a247d6cf
Remove unnecessary pragmas
6 years ago
VolcaEM
1f2f16c656
Revert IsValidNRO refactor but make it more readable
6 years ago
VolcaEM
18b88119d2
Update assert string
6 years ago
VolcaEM
68a7d8fb09
Clang-format again
6 years ago
VolcaEM
26b0ef5ce0
Use consistent variable names
6 years ago
VolcaEM
a01b0de19a
Clang-format
6 years ago
VolcaEM
2ae60c8949
Make assert strings consistent
6 years ago
VolcaEM
f801c273eb
Attempt to fix crashes in SSBU and refactor IsValidNRO
6 years ago
VolcaEM
50bf4c70cd
Address review comments
6 years ago
VolcaEM
6f126bb803
Add comment to nrr_kind
According to Atmosphére (c7026b9094/libraries/libstratosphere/include/stratosphere/ro/ro_types.hpp), nrr_kind (Atmosphére calls it "type") is 7.0.0+
6 years ago