From 18ad55be0ba2c418c766c9857075b3b64d28104e Mon Sep 17 00:00:00 2001 From: liamwhite Date: Fri, 25 Aug 2023 17:59:32 -0400 Subject: kernel: offset code entry point for 39-bit address space type (#11326) --- src/core/hle/kernel/k_process.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/core/hle/kernel/k_process.h') diff --git a/src/core/hle/kernel/k_process.h b/src/core/hle/kernel/k_process.h index c9b37e138..4fdeaf11a 100644 --- a/src/core/hle/kernel/k_process.h +++ b/src/core/hle/kernel/k_process.h @@ -177,6 +177,10 @@ public: return m_program_id; } + KProcessAddress GetEntryPoint() const { + return m_code_address; + } + /// Gets the resource limit descriptor for this process KResourceLimit* GetResourceLimit() const; @@ -485,6 +489,9 @@ private: /// Address indicating the location of the process' dedicated TLS region. KProcessAddress m_plr_address = 0; + /// Address indicating the location of the process's entry point. + KProcessAddress m_code_address = 0; + /// Random values for svcGetInfo RandomEntropy std::array m_random_entropy{}; -- cgit v1.2.3