aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/program_metadata.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-09-22 20:09:32 -0400
committerLioncash <mathew1800@gmail.com>2018-09-24 17:24:50 -0400
commit149d3e546a07b2f10a69a4a819a6b02e9488e519 (patch)
treeebb28bd5ff9e0c4a57c53ee5ea6a72ce75023103 /src/core/file_sys/program_metadata.h
parente0c63533ab8c7ec0e8d9965a08e1fa459e953add (diff)
process/vm_manager: Amend API to allow reading parameters from NPDM metadata
Rather than hard-code the address range to be 36-bit, we can derive the parameters from supplied NPDM metadata if the supplied exectuable supports it. This is the bare minimum necessary for this to be possible. The following commits will rework the memory code further to adjust to this.
Diffstat (limited to 'src/core/file_sys/program_metadata.h')
-rw-r--r--src/core/file_sys/program_metadata.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/file_sys/program_metadata.h b/src/core/file_sys/program_metadata.h
index 1143e36c44..e4470d6f08 100644
--- a/src/core/file_sys/program_metadata.h
+++ b/src/core/file_sys/program_metadata.h
@@ -17,8 +17,10 @@ enum class ResultStatus : u16;
namespace FileSys {
enum class ProgramAddressSpaceType : u8 {
- Is64Bit = 1,
- Is32Bit = 2,
+ Is32Bit = 0,
+ Is36Bit = 1,
+ Is32BitNoMap = 2,
+ Is39Bit = 3,
};
enum class ProgramFilePermission : u64 {