| /CTR-SDK-4.2.8-20130828/sources/libraries/os/ |
| D | os_PrintResultImpl.cpp | 38 namespace nn { namespace os { namespace detail { namespace 43 CASE_GET_RESULT_DESCRIPTION_STRING_IMPL(::nn::os, DESCRIPTION_FAILED_TO_ALLOCATE_MEMORY) in CASE_GET_RESULT_DESCRIPTION_STRING_IMPL() argument 44 … CASE_GET_RESULT_DESCRIPTION_STRING_IMPL(::nn::os, DESCRIPTION_FAILED_TO_ALLOCATE_SHARED_MEMORY) in CASE_GET_RESULT_DESCRIPTION_STRING_IMPL() 45 CASE_GET_RESULT_DESCRIPTION_STRING_IMPL(::nn::os, DESCRIPTION_FAILED_TO_ALLOCATE_THREAD) in CASE_GET_RESULT_DESCRIPTION_STRING_IMPL() 46 CASE_GET_RESULT_DESCRIPTION_STRING_IMPL(::nn::os, DESCRIPTION_FAILED_TO_ALLOCATE_MUTEX) in CASE_GET_RESULT_DESCRIPTION_STRING_IMPL() 47 CASE_GET_RESULT_DESCRIPTION_STRING_IMPL(::nn::os, DESCRIPTION_FAILED_TO_ALLOCATE_SEMAPHORE) in CASE_GET_RESULT_DESCRIPTION_STRING_IMPL() 48 CASE_GET_RESULT_DESCRIPTION_STRING_IMPL(::nn::os, DESCRIPTION_FAILED_TO_ALLOCATE_EVENT) in CASE_GET_RESULT_DESCRIPTION_STRING_IMPL() 49 CASE_GET_RESULT_DESCRIPTION_STRING_IMPL(::nn::os, DESCRIPTION_FAILED_TO_ALLOCATE_TIMER) in CASE_GET_RESULT_DESCRIPTION_STRING_IMPL() 50 CASE_GET_RESULT_DESCRIPTION_STRING_IMPL(::nn::os, DESCRIPTION_FAILED_TO_ALLOCATE_PORT) in CASE_GET_RESULT_DESCRIPTION_STRING_IMPL() 51 CASE_GET_RESULT_DESCRIPTION_STRING_IMPL(::nn::os, DESCRIPTION_FAILED_TO_ALLOCATE_SESSION) in CASE_GET_RESULT_DESCRIPTION_STRING_IMPL() [all …]
|
| D | os_Initialize.cpp | 20 NN_DBG_DECLARE_GET_RESULT_DESCRIPTION_STRING_IMPL_KEEPER(os) 23 namespace nn { namespace os { namespace 27 nn::os::WaitableCounter::Initialize(); in Initialize() 29 nn::os::detail::SaveThreadLocalRegionAddress(); in Initialize() 30 nn::os::detail::InitializeSharedMemory(); in Initialize() 31 nn::os::detail::InitializeStackMemory(); in Initialize() 33 nn::os::detail::InitializeThreadEnvrionment(); in Initialize() 34 NN_DBG_USE_GET_RESULT_DESCRIPTION_STRING_IMPL_KEEPER(os); in Initialize() 44 nn::os::Initialize(); in nnosInitialize()
|
| D | os_StackMemory.cpp | 37 namespace nn{ namespace os{ namespace 79 …uptr addr = nnosAddressSpaceManagerAllocate(&s_SpaceManager, os::detail::ConvertToC(this), size, N… in TryInitialize() 93 nn::os::MEMORY_OPERATION_MAP, in TryInitialize() 94 nn::os::MEMORY_PERMISSION_READ_WRITE ); in TryInitialize() 98 nnosAddressSpaceManagerFree(&s_SpaceManager, os::detail::ConvertToC(this)); in TryInitialize() 107 nn::os::MEMORY_OPERATION_PROTECT, in TryInitialize() 108 nn::os::MEMORY_PERMISSION_NONE ); in TryInitialize() 114 nnosAddressSpaceManagerFree(&s_SpaceManager, os::detail::ConvertToC(this)); in TryInitialize() 120 nn::os::MEMORY_OPERATION_UNMAP, in TryInitialize() 121 nn::os::MEMORY_PERMISSION_READ_WRITE ); in TryInitialize() [all …]
|
| D | os_Memory.cpp | 33 namespace nn{ namespace os{ namespace 82 … (nn::os::MEMORY_OPERATION_COMMIT | nn::os::MEMORY_OPERATION_FLAG_LINEAR), in SetDeviceMemorySize() 83 nn::os::MEMORY_PERMISSION_READ_WRITE ); in SetDeviceMemorySize() 110 nn::os::MEMORY_OPERATION_FREE, in SetDeviceMemorySize() 111 nn::os::MEMORY_PERMISSION_NONE ); in SetDeviceMemorySize() 158 nn::os::MEMORY_OPERATION_COMMIT, in SetHeapSize() 159 nn::os::MEMORY_PERMISSION_READ_WRITE ); in SetHeapSize() 178 nn::os::MEMORY_OPERATION_FREE, in SetHeapSize() 179 nn::os::MEMORY_PERMISSION_NONE ); in SetHeapSize() 194 return nn::os::detail::GetHeapAddressWithoutCheck(); in GetHeapAddress() [all …]
|
| D | os_StackMemoryBlock.cpp | 37 namespace nn{ namespace os{ namespace 61 NN_TASSERTMSG_(os::detail::IsMemoryBlockEnabled(), "InitializeMemoryBlock is not called.\n"); in Initialize() 63 if ( !os::detail::IsMemoryBlockEnabled() || GetAddress() != 0 ) in Initialize() 71 uptr addr = os::detail::AllocateFromMemoryBlockSpace(this, size); in Initialize() 82 os::detail::FreeToMemoryBlockSpace(this); in Finalize() 90 using namespace nn::os; 103 NN_TASSERT_(os::detail::IsMemoryBlockEnabled()); in nnosStackMemoryBlockAllocate()
|
| D | os_Default.cpp | 20 namespace nn { namespace os { namespace 31 nn::os::Mutex m_DestructorMutex; // 35 nn::os::StackBuffer<DESTRUCTOR_STACK_SIZE> m_DestructorStack; 67 nn::os::detail::Switch( in Construct() 68 reinterpret_cast<nn::os::StackMemoryBlock*>(pBlockOnStack), in Construct() 69 reinterpret_cast<nn::os::StackMemoryBlock*>(&stackBlock) ); in Construct() 136 nn::os::Thread::SetAutoStackManager(&s_AutoStackManager); in SetDefaultAutoStackManager()
|
| D | os_LightSemaphore.cpp | 21 namespace os { namespace 54 os::Tick begin = os::Tick::GetSystemCurrent(); in TryAcquire() 55 os::Tick end = begin + timeout; in TryAcquire() 59 os::Tick remainTick = end - os::Tick::GetSystemCurrent(); in TryAcquire() 90 using namespace nn::os;
|
| D | os_MemoryBlock.cpp | 39 namespace nn{ namespace os{ namespace 73 NN_TASSERTMSG_(os::detail::IsMemoryBlockEnabled(), "InitializeMemoryBlock is not called.\n"); in Initialize() 75 if ( !os::detail::IsMemoryBlockEnabled() || GetAddress() != 0 ) in Initialize() 82 uptr addr = os::detail::AllocateFromMemoryBlockSpace(this, size); in Initialize() 95 os::detail::FreeToMemoryBlockSpace(this); in Finalize() 132 using namespace nn::os; 140 NN_TASSERT_(os::detail::IsMemoryBlockEnabled()); in nnosMemoryBlockAllocate()
|
| D | os_LightEvent.cpp | 22 namespace os { namespace 71 os::Tick begin = os::Tick::GetSystemCurrent(); in TryWait() 72 os::Tick end = begin + timeout; in TryWait() 76 os::Tick remainTick = end - os::Tick::GetSystemCurrent(); in TryWait() 213 using namespace nn::os;
|
| D | os_Mutex.cpp | 35 using namespace nn::os; 37 namespace nn { namespace os { namespace 42 return os::detail::GetLimitCurrentCount(LIMITABLE_RESOURCE_MAX_MUTEX); in GetCurrentCount() 47 return os::detail::GetLimitMaxCount(LIMITABLE_RESOURCE_MAX_MUTEX); in GetMaxCount()
|
| D | os_TransferMemoryBlock.cpp | 28 namespace nn { namespace os { namespace 119 uptr addr = os::detail::AllocateFromSharedMemorySpace(this, size); in Map() 125 this->MemoryBlockBase::SetReadOnly((myPermission & os::MEMORY_PERMISSION_WRITE) == 0); in Map() 130 os::detail::FreeToSharedMemorySpace(this); in Map() 145 os::detail::FreeToSharedMemorySpace(this); in Unmap()
|
| D | os_Event.cpp | 32 using namespace nn::os; 35 namespace nn { namespace os { namespace 40 return os::detail::GetLimitCurrentCount(LIMITABLE_RESOURCE_MAX_EVENT); in GetCurrentCount() 45 return os::detail::GetLimitMaxCount(LIMITABLE_RESOURCE_MAX_EVENT); in GetMaxCount()
|
| /CTR-SDK-4.2.8-20130828/include/nn/err/CTR/ |
| D | err_Exception.h | 25 void ThrowException( nn::os::ExceptionInfo* pei, nn::os::ExceptionContext* pec ); 31 const char* GetExceptionTypeString(nn::os::ExceptionType type); 35 void PrintGeneralRegisterInfo( const nn::os::ExceptionContext& ec ); 37 void PrintException(const nn::os::ExceptionInfo& ei, const nn::os::ExceptionContext& ec);
|
| /CTR-SDK-4.2.8-20130828/include/nn/svc/ |
| D | svc_Inlines.h | 34 const os::ResetType rt = (isManualReset ? os::RESET_TYPE_STICKY: os::RESET_TYPE_ONESHOT); in CreateEvent() 39 const os::ResetType rt = (isManualReset ? os::RESET_TYPE_STICKY: os::RESET_TYPE_ONESHOT); in CreateTimer()
|
| D | svc_Stub.h | 39 …lt QueryMemory ( nn::os::MemoryInfo* pBlockInfo, nn::os::Pag… 45 nn::Result CreateThread ( nn::Handle* pOut, nn::os::ThreadFunc… 55 nn::Result Run ( nn::Handle runner, const nn::os::Sta… 60 nn::Result CreateEvent ( nn::Handle* pOut, nn::os::ResetType … 63 nn::Result CreateTimer ( nn::Handle* pOut, nn::os::ResetType … 71 … ArbitrateAddress ( nn::Handle arbiter, uptr addr, nn::os::ArbitrationType typ… 78 nn::Result GetHandleInfo ( s64* pOut, nn::Handle handle, nn::os… 79 nn::Result GetSystemInfo ( s64* pOut, nn::os::SystemInfoType ty… 80 … GetProcessInfo ( s64* pOut, nn::Handle process, nn::os::ProcessInfoType typ… 81 nn::Result GetThreadInfo ( s64* pOut, nn::Handle thread, nn::os… [all …]
|
| /CTR-SDK-4.2.8-20130828/include/nn/os/ |
| D | os_WaitableCounter.h | 28 namespace nn { namespace os { 50 …return ArbitrateAddress(nn::os::ARBITRATION_TYPE_DECREMENT_AND_WAIT_IF_LESS_THAN_WITH_TIMEOUT, val… in DecrementAndWaitIfLessThan() 55 … return ArbitrateAddress(nn::os::ARBITRATION_TYPE_WAIT_IF_LESS_THAN_WITH_TIMEOUT, value, timeout); in WaitIfLessThan() 60 return ArbitrateAddress(nn::os::ARBITRATION_TYPE_DECREMENT_AND_WAIT_IF_LESS_THAN, value); in DecrementAndWaitIfLessThan() 65 return ArbitrateAddress(nn::os::ARBITRATION_TYPE_WAIT_IF_LESS_THAN, value); in WaitIfLessThan() 70 return ArbitrateAddress(nn::os::ARBITRATION_TYPE_SIGNAL, num); in Signal() 79 Result ArbitrateAddress(nn::os::ArbitrationType type, s32 value) in ArbitrateAddress() 83 Result ArbitrateAddress(nn::os::ArbitrationType type, s32 value, fnd::TimeSpan timeout) in ArbitrateAddress()
|
| D | os_ErrorHandlerSelect.h | 24 namespace nn { namespace os { namespace detail { 25 using nn::os::CTR::detail::HandleInternalError; 26 using nn::os::CTR::detail::SetInternalErrorHandlingMode; 44 ::nn::os::detail::HandleInternalError(nn_os_result); \ 55 ::nn::os::detail::HandleInternalError(nn_os_result, NN_FILE_NAME, __LINE__); \
|
| D | os_ThreadPool.h | 42 namespace nn { namespace os { 94 …ThreadPool(void* workBuffer, size_t numMaxWaitObjects, size_t numWorkerThreads, nn::os::StackMemor… 130 …void Initialize(void* workBuffer, size_t numMaxWaitObjects, size_t numWorkerThreads, nn::os::Stack… 183 nn::os::CriticalSection m_WaitLock; 184 nn::os::Event m_WaitEvent; 187 nn::os::CriticalSection m_ExecuteLock; 188 nn::os::LightEvent m_ExecuteEvent; 220 …l(void* workBuffer, size_t numMaxWaitObjects, size_t numWorkerThreads, nn::os::StackMemoryBlock wo… in ThreadPool() 242 nn::os::Thread m_WorkerThread; 244 nn::os::CriticalSection m_ExecuteLock; [all …]
|
| D | os_TransferMemoryBlock.h | 27 namespace nn{ namespace os{ 40 bit32 myPermission = os::MEMORY_PERMISSION_NONE, 41 bit32 otherPermission = os::MEMORY_PERMISSION_READ_WRITE ); 46 bit32 myPermission = os::MEMORY_PERMISSION_NONE, 47 bit32 otherPermission = os::MEMORY_PERMISSION_READ_WRITE );
|
| /CTR-SDK-4.2.8-20130828/sources/libraries/test/ |
| D | test_Init.cpp | 24 const s32 prevPrio = nn::os::Thread::GetCurrentPriority(); in nniopdevMain() 25 nn::os::Thread::ChangeCurrentPriority(nn::os::DEFAULT_THREAD_PRIORITY); in nniopdevMain() 29 nn::os::Thread::ChangeCurrentPriority(prevPrio); in nniopdevMain()
|
| /CTR-SDK-4.2.8-20130828/include/nn/dbg/CTR/ |
| D | dbg_ExceptionScreen.h | 170 static void HandleException(nn::os::ExceptionInfo* pei, nn::os::ExceptionContext* pec); 203 os::StackBuffer<EXCEPTION_STACK_SIZE> m_Stack; 211 void ExceptionHandlerBody(nn::os::ExceptionInfo* pei, nn::os::ExceptionContext* pec); 218 static void ExceptionHandler(nn::os::ExceptionInfo* pei, nn::os::ExceptionContext* pec);
|
| /CTR-SDK-4.2.8-20130828/include/nn/os/CTR/ |
| D | os_HardwareParamsSelect.h | 24 namespace nn { namespace os { namespace CTR { 25 using namespace nn::os::CTR::MPCore; 32 namespace nn { namespace os { namespace CTR { 33 using namespace nn::os::CTR::ARM946ES;
|
| /CTR-SDK-4.2.8-20130828/include/nn/hid/CTR/ |
| D | hid_HidBase.h | 39 class HidBase : public nn::os::EventBase 42 HidBase() : nn::os::EventBase() {} in HidBase() 109 return nn::os::WaitObject::WaitAny(reinterpret_cast<nn::os::WaitObject**>(devices), numDevices); in WaitSamplingAny() 114 …return nn::os::WaitObject::WaitAny(reinterpret_cast<nn::os::WaitObject**>(devices), numDevices, ti… in WaitSamplingAny()
|
| /CTR-SDK-4.2.8-20130828/sources/libraries/init/ |
| D | init_Default.cpp | 46 const size_t assingment = nn::os::GetAppMemorySize(); in nninitStartUpDefault() 47 const size_t currentUsing = nn::os::GetUsingMemorySize(); in nninitStartUpDefault() 53 nn::os::SetupHeapForMemoryBlock(heapSize); in nninitStartUpDefault() 54 NN_UTIL_PANIC_IF_FAILED( nn::os::SetDeviceMemorySize( DEVICE_MEMORY_SIZE ) ); in nninitStartUpDefault() 60 nn::os::ManagedThread::InitializeEnvironment(); in nninitStartUpDefault()
|
| /CTR-SDK-4.2.8-20130828/sources/libraries/dbg/CTR/ |
| D | dbg_ExceptionScreen.cpp | 34 const uptr begin = os::GetCodeRegionAddress(); in IsCodeAddress() 35 const uptr end = begin + os::GetCodeRegionSize(); in IsCodeAddress() 55 if( os::ManagedThread::IsEnabled() ) in FindThreadStackBottomByStackAddr() 58 os::ManagedThread* pFound = os::ManagedThread::FindByStackAddress(addr); in FindThreadStackBottomByStackAddr() 236 nn::os::Tick t = nn::os::Tick::GetSystemCurrent(); in ShowWithAutoScroll() 238 nn::os::Tick::GetSystemCurrent().ToTimeSpan().GetMilliSeconds() - 400 ) {} in ShowWithAutoScroll() 279 nn::os::Tick t = nn::os::Tick::GetSystemCurrent(); in ShowWithManualScroll() 281 nn::os::Tick::GetSystemCurrent().ToTimeSpan().GetMilliSeconds() - 16 ){} in ShowWithManualScroll() 320 size_t size = os::GetDeviceMemorySize(); in IsDeviceMemoryAddress() 321 uptr begin = os::GetDeviceMemoryAddress(); in IsDeviceMemoryAddress() [all …]
|