Subv
d3634d4bf4
Core/ResourceLimits: Implemented the basic structure of ResourceLimits.
Implemented svcs GetResourceLimit, GetResourceLimitCurrentValues and GetResourceLimitLimitValues.
Note that the resource limits do not currently keep track of used objects, since we have no way to distinguish between an object created by the application, and an object created by some HLE module once we're inside Kernel::T::Create.
11 years ago
Yuri Kunde Schlesner
52158c1b8d
Memory: Read SharedPage directly from Memory::Read
11 years ago
Yuri Kunde Schlesner
ec514b16a6
Memory: Read ConfigMem directly from Memory::Read
11 years ago
Yuri Kunde Schlesner
7ada357b2d
Memmap: Re-organize memory function in two files
memory.cpp/h contains definitions related to acessing memory and
configuring the address space
mem_map.cpp/h contains higher-level definitions related to configuring
the address space accoording to the kernel and allocating memory.
11 years ago
Lioncash
207087c856
thread: Fix a conditional check in Reschedule
11 years ago
Yuri Kunde Schlesner
4f7a055081
Thread: Remove the idle thread
Instead just use nullptr to represent no thread is active.
11 years ago
Subv
dda94e56dd
Core/Memory: Add TLS support for creating up to 300 threads
11 years ago
Subv
dbc1320923
Core/Scheduling: Prepare the new priority in the thread queue when svcSetPriority is called
11 years ago
purpasmart96
53130fffd9
PTM: Changed the way the ptm services are handled to be like the
IR, HID, and APT services.
11 years ago
Subv
25c010dc7d
fixup!
11 years ago
purpasmart96
046044618d
NWM_UDS: Fix a typo in the nwm service port name
11 years ago
Subv
41f74a16fd
Core/HLE: Implemented the SVCs GetProcessId and GetProcessIdOfThread
11 years ago
Yuri Kunde Schlesner
d16c2bd956
Thread: Correctly set main thread initial stack position
11 years ago
Subv
115ad8e16a
fixup! Set the TLS address in the scheduler
11 years ago
Subv
000876858d
Core/Memory: Give every emulated thread it's own TLS area.
The TLS area for thread T with id Ti is located at TLS_AREA_VADDR + (Ti - 1) * 0x200.
This allows some games like Mario Kart 7 to continue further.
11 years ago
Yuri Kunde Schlesner
fd85367621
fixup! GSP: Small tweaks to shared memory initialization
11 years ago
Yuri Kunde Schlesner
1538a34eda
GSP: Small tweaks to shared memory initialization
11 years ago
Yuri Kunde Schlesner
774eea8374
Kernel: Zero-fill shared memory blocks when mapping
This works around crashes related to GSP/HID/etc. shared memory blocks
having garbage values. The proper fix requires proper management of
mapped memory blocks in the process.
11 years ago
Yuri Kunde Schlesner
c96f22490a
Kernel: Capture SharedMemory attributes at creation, not when mapping
11 years ago
Yuri Kunde Schlesner
b700b55696
Common: Remove the BIT macro
When the macro was introduced in 326ec51261
it wasn't noticed that it conflicted in name with a heavily used macro
inside of dyncom. This causes some compiler warnings. Since it's only
lightly used, it was opted to simply remove the new macro.
11 years ago
Yuri Kunde Schlesner
1c0b87edc2
Memory: Re-organize and rename memory area address constants
11 years ago
Yuri Kunde Schlesner
7c50b999fa
Kernel: Remove unused g_main_thread variable
11 years ago
Yuri Kunde Schlesner
3cb19c9589
Process: Rename StaticAddressMapping => AddressMapping
11 years ago
Yuri Kunde Schlesner
83ccf85bb2
Process: Add more documentation to the class members
11 years ago
Yuri Kunde Schlesner
2f5904611d
Process: Use BitField to store process flags
11 years ago
Yuri Kunde Schlesner
2af30d465f
Process: Support parsing of exheader kernel caps
11 years ago
Yuri Kunde Schlesner
a5eba2f984
Kernel: Remove g_program_id
This has been obsoleted by the field in Process.
11 years ago
Yuri Kunde Schlesner
6d60acf0f1
Kernel: Introduce skeleton Process class to hold process data
11 years ago
Yuri Kunde Schlesner
c956e8a686
Fix printf format warning
11 years ago
Yuri Kunde Schlesner
e1fbac3ca1
Common: Remove common.h
11 years ago
Yuri Kunde Schlesner
c0eaa662d4
Clean-up includes
11 years ago
Yuri Kunde Schlesner
b89f644cfe
FileSys: De-inline Path members
11 years ago
Yuri Kunde Schlesner
6f89d25f90
FileSys: Clean-up includes, de-inline destructors
11 years ago
Yuri Kunde Schlesner
c916bcf7b5
Move typedefs from kernel.h to more appropriate places
11 years ago
Yuri Kunde Schlesner
ecff2351a1
HLE: Clean up SVC dispatch mechanism
11 years ago
bunnei
d3c2f9a4a4
HLE: Properly initialize and shutdown remaining modules.
11 years ago
bunnei
c7dc799e19
Kernel: Properly initialize and shutdown all modules.
11 years ago
bunnei
e0cb85691a
Services: Initialize all state variables at bootup.
11 years ago
purpasmart96
8716445621
ConfigMem: Remove duplicate retail bit
11 years ago
purpasmart96
c3a480160e
Services/Loader: Use more sensible log formats for certain functions
along with more info being logged.
11 years ago
Lioncash
1baab50e7c
ptm_sysm: Add static specifier to IsLegacyPowerOff
11 years ago
Emmanuel Gil Peyrot
0d69b2f7bd
Kernel: Use the correct format string for u64 hex.
11 years ago
Yuri Kunde Schlesner
ad3e25b414
De-inline functions from Interface, removing them from service.h
This reduces the time for a full recompile from 65.43s to 59.53s (~9%)
11 years ago
bunnei
db4bd98bac
SVC: Assert on unsupported CreateThread processor ID.
11 years ago
bunnei
c077bcefa9
SVC: Update various SVCs to cause a reschedule.
- CreateMutex/ReleaseMutex/ReleaseSemaphore/SetTimer/CancelTimer/ArbitrateAddress
11 years ago
bunnei
9c3419ebcc
Kernel: Implemented priority inheritance for mutexes.
11 years ago
bunnei
7b9f428b23
Thread: Implement priority boost for starved threads.
SVC: Return correct error code on invalid CreateThread processor ID.
SVC: Assert when creating a thread with an invalid userland priority.
11 years ago
bunnei
ee3377b67d
SVC: Reschedule on svcCreateThread.
11 years ago
bunnei
bdd190363d
APT: (Subv) Fix bug where start event was being incorrectly signaled.
11 years ago
bunnei
e08f55b1a7
Kernel: Fixed default thread priority.
11 years ago