4.9.7. __user_stack_slop()

If defined, this function returns the size of the extra stack your system requires below sl. The extra stack is in addition to the 256 bytes required by ATPCS. The extra space might enable an interrupt handler to execute on your stack or enable a chain of unchecked functions calls.

Syntax

__stack_slop__user_stack_slop(unsignedignore, unsignedignore);

Implementation

There is no default implementation of this function.

Returns

If you define this function, it must return the following values in registers:

r0

The amount of extra stack (measured in bytes) that must always be available so an interrupt handler can execute on the stack at an arbitrary instant.

r1

The amount of extra stack (measured in bytes) that must be available after stack overflow to support recovery from overflow.

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI 0067D
Non-Confidential