nn::os::AutoStackManager::Construct Member Function
virtual void * Construct(
size_t stackSize
) = 0;
| Name | Description | |
|---|---|---|
| in | stackSize | The size of stack to allocate. |
Allocates memory for the stack.
This function is a pure virtual function. This function itself cannot be called. You must implement a derived class in accordance with the specifications described here.
Allocates a memory region of at least stackSize bytes and returns the next address after that region. If this function allocated a memory region of size 0x00002000 bytes starting from address 0x01000000, it returns a pointer to address 0x01002000.
The returned address must be 8-byte aligned. The return value is used to indicate the bottom of the stack.
If a derived class instance was specified to the Thread::SetAutoStackManager function, then this function is called by either the Thread::StartUsingAutoStack or the Thread::TryStartUsingAutoStack function.
CONFIDENTIAL