diff options
| author | 2018-11-21 18:28:01 -0500 | |
|---|---|---|
| committer | 2018-11-21 18:28:03 -0500 | |
| commit | 568bcbc29d099f030f7022838cd788dfe2feba45 (patch) | |
| tree | efb1c2e64cec569d5a58ab0ed5a8675c7d85e832 /src/core | |
| parent | kernel/handle_table: Default destructor in the cpp file (diff) | |
| download | yuzu-568bcbc29d099f030f7022838cd788dfe2feba45.tar.gz yuzu-568bcbc29d099f030f7022838cd788dfe2feba45.tar.xz yuzu-568bcbc29d099f030f7022838cd788dfe2feba45.zip | |
kernel/handle_table: Restrict handle table size to 1024 entries
The previous handle table size is a holdover from Citra. The actual
handle table construct on Horizon only allows for a maximum of 1024
entries.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/kernel/handle_table.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/hle/kernel/handle_table.h b/src/core/hle/kernel/handle_table.h index b5e5f6545..ae3116afc 100644 --- a/src/core/hle/kernel/handle_table.h +++ b/src/core/hle/kernel/handle_table.h | |||
| @@ -90,11 +90,8 @@ public: | |||
| 90 | void Clear(); | 90 | void Clear(); |
| 91 | 91 | ||
| 92 | private: | 92 | private: |
| 93 | /** | 93 | /// This is the maximum limit of handles allowed per process in Horizon |
| 94 | * This is the maximum limit of handles allowed per process in CTR-OS. It can be further | 94 | static constexpr std::size_t MAX_COUNT = 1024; |
| 95 | * reduced by ExHeader values, but this is not emulated here. | ||
| 96 | */ | ||
| 97 | static const std::size_t MAX_COUNT = 4096; | ||
| 98 | 95 | ||
| 99 | static u16 GetSlot(Handle handle) { | 96 | static u16 GetSlot(Handle handle) { |
| 100 | return handle >> 15; | 97 | return handle >> 15; |