diff options
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
| -rw-r--r-- | src/core/hle/kernel/process.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index 3aa4d8784..be916e76a 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp | |||
| @@ -18,6 +18,9 @@ SharedPtr<Process> Process::Create(std::string name, u64 program_id) { | |||
| 18 | process->name = std::move(name); | 18 | process->name = std::move(name); |
| 19 | process->program_id = program_id; | 19 | process->program_id = program_id; |
| 20 | 20 | ||
| 21 | process->flags.raw = 0; | ||
| 22 | process->flags.memory_region = MemoryRegion::APPLICATION; | ||
| 23 | |||
| 21 | return process; | 24 | return process; |
| 22 | } | 25 | } |
| 23 | 26 | ||
| @@ -46,16 +49,7 @@ void Process::ParseKernelCaps(const u32* kernel_caps, size_t len) { | |||
| 46 | handle_table_size = descriptor & 0x3FF; | 49 | handle_table_size = descriptor & 0x3FF; |
| 47 | } else if ((type & 0xFF8) == 0xFF0) { // 0x007F | 50 | } else if ((type & 0xFF8) == 0xFF0) { // 0x007F |
| 48 | // Misc. flags | 51 | // Misc. flags |
| 49 | bool allow_debug = descriptor & BIT(0); | 52 | flags.raw = descriptor & 0xFFFF; |
| 50 | bool force_debug = descriptor & BIT(1); | ||
| 51 | bool allow_nonalphanum = descriptor & BIT(2); | ||
| 52 | shared_page_writable = descriptor & BIT(3); | ||
| 53 | privileged_priority = descriptor & BIT(4); | ||
| 54 | bool allow_main_args = descriptor & BIT(5); | ||
| 55 | bool shared_device_mem = descriptor & BIT(6); | ||
| 56 | bool runnable_on_sleep = descriptor & BIT(7); | ||
| 57 | loaded_high = descriptor & BIT(12); | ||
| 58 | memory_region = MemoryRegion((descriptor >> 8) & 0xF); | ||
| 59 | } else if ((type & 0xFFE) == 0xFF8) { // 0x001F | 53 | } else if ((type & 0xFFE) == 0xFF8) { // 0x001F |
| 60 | // Mapped memory range | 54 | // Mapped memory range |
| 61 | if (i+1 >= len || ((kernel_caps[i+1] >> 20) & 0xFFE) != 0xFF8) { | 55 | if (i+1 >= len || ((kernel_caps[i+1] >> 20) & 0xFFE) != 0xFF8) { |