__user_heap_extend()

Defined in rt_misc.h, this function can be defined to return extra blocks of memory, separate from the initial one, to be used by the heap. If defined, this function must return the size and base address of an eight-byte aligned heap extension block.

Show/hideSyntax

extern unsigned __user_heap_extend(int var0, void **base, unsigned requested_size);

Show/hideUsage

There is no default implementation of this function. If you define this function, it must have the following characteristics:

  • The returned size must be either:

    • a multiple of eight bytes of at least the requested size

    • 0, denoting that the request cannot be honored.

  • Size is measured in bytes.

  • The function is subject only to ARM Architecture Procedure Call Standard (AAPCS) constraints.

  • The first argument is always zero on entry and can be ignored. The base is returned in the register holding this argument.

  • The returned base address must be aligned on an eight-byte boundary.

Show/hideReturns

This function places a pointer to a block of at least the requested size in *base and returns the size of the block. 0 is returned if no such block can be returned, in which case the value stored at *base is never used.

Show/hideSee also

Copyright © 2010-2011 ARM. All rights reserved.ARM DUI 0492F
Non-ConfidentialID091611