sm: update to excise unnecessary library code
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user