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.


__stack_slop__user_stack_slop(unsignedignore, unsignedignore);


There is no default implementation of this function.


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


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.


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