diff options
| author | 2018-10-14 14:37:58 -0400 | |
|---|---|---|
| committer | 2018-10-14 14:37:58 -0400 | |
| commit | 2f8ca32020d2b32abfcb96d433ca79c4974e15be (patch) | |
| tree | 8a63f146f9b1a4f647900866f84142c08784611b /src/core/hle/kernel/process.h | |
| parent | Merge pull request #1495 from ogniK5377/break-stop (diff) | |
| parent | svc: Implement svcGetProcessInfo (diff) | |
| download | yuzu-2f8ca32020d2b32abfcb96d433ca79c4974e15be.tar.gz yuzu-2f8ca32020d2b32abfcb96d433ca79c4974e15be.tar.xz yuzu-2f8ca32020d2b32abfcb96d433ca79c4974e15be.zip | |
Merge pull request #1492 from lioncash/proc
svc: Implement svcGetProcessInfo
Diffstat (limited to 'src/core/hle/kernel/process.h')
| -rw-r--r-- | src/core/hle/kernel/process.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index 73ec01e11..f2816943a 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h | |||
| @@ -24,6 +24,7 @@ class ProgramMetadata; | |||
| 24 | namespace Kernel { | 24 | namespace Kernel { |
| 25 | 25 | ||
| 26 | class KernelCore; | 26 | class KernelCore; |
| 27 | class ResourceLimit; | ||
| 27 | 28 | ||
| 28 | struct AddressMapping { | 29 | struct AddressMapping { |
| 29 | // Address and size must be page-aligned | 30 | // Address and size must be page-aligned |
| @@ -57,9 +58,23 @@ union ProcessFlags { | |||
| 57 | BitField<12, 1, u16> loaded_high; ///< Application loaded high (not at 0x00100000). | 58 | BitField<12, 1, u16> loaded_high; ///< Application loaded high (not at 0x00100000). |
| 58 | }; | 59 | }; |
| 59 | 60 | ||
| 60 | enum class ProcessStatus { Created, Running, Exited }; | 61 | /** |
| 61 | 62 | * Indicates the status of a Process instance. | |
| 62 | class ResourceLimit; | 63 | * |
| 64 | * @note These match the values as used by kernel, | ||
| 65 | * so new entries should only be added if RE | ||
| 66 | * shows that a new value has been introduced. | ||
| 67 | */ | ||
| 68 | enum class ProcessStatus { | ||
| 69 | Created, | ||
| 70 | CreatedWithDebuggerAttached, | ||
| 71 | Running, | ||
| 72 | WaitingForDebuggerToAttach, | ||
| 73 | DebuggerAttached, | ||
| 74 | Exiting, | ||
| 75 | Exited, | ||
| 76 | DebugBreak, | ||
| 77 | }; | ||
| 63 | 78 | ||
| 64 | struct CodeSet final { | 79 | struct CodeSet final { |
| 65 | struct Segment { | 80 | struct Segment { |