| 1 | /** |
|---|---|
| 2 | * @file init.h |
| 3 | * @brief Initialization functions for OS related functions. |
| 4 | */ |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include <nn/mem.h> |
| 9 | #include <nn/types.h> |
| 10 | |
| 11 | namespace nn { |
| 12 | namespace init { |
| 13 | void InitializeAllocator(void* addr, u64 size); |
| 14 | nn::mem::StandardAllocator* GetAllocator(); |
| 15 | |
| 16 | namespace detail { |
| 17 | void* DefaultAllocatorForThreadLocal(u64, u64); |
| 18 | void* DefaultDeallocatorForThreadLocal(void*, u64); |
| 19 | } // namespace detail |
| 20 | } // namespace init |
| 21 | } // namespace nn |
| 22 |