sm: update to excise unnecessary library code

This commit is contained in:
Michael Scire 2021-05-02 10:33:15 -07:00
parent 7d61cab01c
commit 32f487abfb
7 changed files with 47 additions and 6 deletions

View file

@ -15,6 +15,7 @@
*/
#include <stratosphere.hpp>
#include "hos_version_api_private.hpp"
#include "../os/impl/os_rng_manager.hpp"
namespace ams::os {
@ -22,6 +23,15 @@ namespace ams::os {
}
extern "C" {
/* Provide libnx address space allocation shim. */
uintptr_t __libnx_virtmem_rng(void) {
return static_cast<uintptr_t>(::ams::os::impl::GetRngManager().GenerateRandomU64());
}
}
namespace ams::hos {
void InitializeForStratosphere() {