From 43549f4596248cb746df017b4cf9f719cef07582 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sun, 29 Mar 2020 05:23:49 -0700 Subject: [PATCH] svc: fix definitions to better match kernel --- nx/include/switch/kernel/svc.h | 51 +++++++++++++++++++++++----------- nx/source/kernel/svc.s | 2 +- 2 files changed, 36 insertions(+), 17 deletions(-) diff --git a/nx/include/switch/kernel/svc.h b/nx/include/switch/kernel/svc.h index 6838daee..27d0d361 100644 --- a/nx/include/switch/kernel/svc.h +++ b/nx/include/switch/kernel/svc.h @@ -96,6 +96,13 @@ typedef struct { u32 padding; ///< Padding. } MemoryInfo; +/// Physical memory information structure. +typedef struct { + u64 physical_address; ///< Physical address. + u64 virtual_address; ///< Virtual address. + u64 size; ///< Size. +} PhysicalMemoryInfo; + /// Secure monitor arguments. typedef struct { u64 X[8]; ///< Values of X0 through X7. @@ -118,6 +125,12 @@ typedef enum { LimitableResource_Sessions=4, ///