SetupHeapForMemoryBlock

nn::os::SetupHeapForMemoryBlock Function

Syntax

#include <nn/os.h>

void SetupHeapForMemoryBlock(
     size_t heapSize
);

Parameters

Name Description
in heapSize Specifies the size of the heap.

Return Values

None.

Description

This function sets up the OS to emulate the same memory environment that was used in CTR-SDK 0.9 and prior versions.

Calling this function sets up a memory environment with the following characteristics:

If you use this function, then you must not use the following functions. Doing so could produce inconsistencies that prevent normal operations.

In addition, you must not directly access heap regions. Be sure to access only those regions that have been allocated using the MemoryBlock class.

Revision History

2011/12/12
Revised text that failed to reflect the changed specifications.
2010/06/14
Initial version.

CONFIDENTIAL