From 4a50b00cab6987c977c2cf9bf95525d161a8c3a1 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 11 Aug 2020 17:09:22 -0700 Subject: [PATCH] kern: correct flushing of init arguments --- .../include/mesosphere/init/kern_init_arguments_select.hpp | 1 - libmesosphere/source/kern_k_memory_layout.cpp | 3 --- 2 files changed, 4 deletions(-) diff --git a/libmesosphere/include/mesosphere/init/kern_init_arguments_select.hpp b/libmesosphere/include/mesosphere/init/kern_init_arguments_select.hpp index 09360267..46190b02 100644 --- a/libmesosphere/include/mesosphere/init/kern_init_arguments_select.hpp +++ b/libmesosphere/include/mesosphere/init/kern_init_arguments_select.hpp @@ -26,6 +26,5 @@ namespace ams::kern::init { KPhysicalAddress GetInitArgumentsAddress(s32 core_id); void SetInitArguments(s32 core_id, KPhysicalAddress address, uintptr_t arg); - void StoreInitArguments(); } diff --git a/libmesosphere/source/kern_k_memory_layout.cpp b/libmesosphere/source/kern_k_memory_layout.cpp index dd67370a..ec9a28cb 100644 --- a/libmesosphere/source/kern_k_memory_layout.cpp +++ b/libmesosphere/source/kern_k_memory_layout.cpp @@ -259,9 +259,6 @@ namespace ams::kern { /* Setup the InitArguments. */ SetInitArguments(static_cast(i), core_local_region_start_phys[i], GetInteger(core_l1_ttbr1_phys[i])); } - - /* Ensure the InitArguments are flushed to cache. */ - StoreInitArguments(); } void SetupPoolPartitionMemoryRegions() {