InitializeMemoryBlock

nn::os::InitializeMemoryBlock Function

Syntax

#include <nn/os.h>

void InitializeMemoryBlock(
     uptr begin,
     size_t size
);

Parameters

Name Description
in begin Specifies the starting address of a memory region managed by the MemoryBlock and StackMemoryBlock classes.
in size Specifies the size of a memory region managed by the MemoryBlock and StackMemoryBlock classes. The size argument must be a multiple of 4096.

Return Values

None.

Description

Allows use of the MemoryBlock and StackMemoryBlock classes.

The memory managed by the MemoryBlock and StackMemoryBlock classes must be specified before constructing instances of these classes. These classes allocate memory from the region specified by the begin and size arguments.

Revision History

2010/08/18
Initial version.

CONFIDENTIAL