adistack_clear_frame - clear ADI versions from one SPARC stack frame
#include <adi.h> void adistack_clear_frame(uintptr_t fp);
The adistack_clear_frame() function clears ADI versions set on the register save area of the SPARC V9 stack frame pointed to by fp.
fp must be valid SPARC V9 biased frame pointer. The caller is responsible for ensuring that the register window for the frame has been spilled to the stack (by executing the flushw instruction, for example).
ADI versions may be set on the register save area of a SPARC V9 stack frame when the ADISTACK security extension is active and the corresponding register window is spilled to the stack. For more information see adi(3C) and sxadm(8).
On platforms that do not support ADI, such as x86 platforms, adistack_clear_frame() returns without doing anything.
See attributes(7) for descriptions of the following attributes: