Go to main content

man pages section 3: Basic Library Functions

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

adistack_clear_frame(3C)

Name

adistack_clear_frame - clear ADI versions from one SPARC stack frame

Synopsis

#include <adi.h>

void adistack_clear_frame(uintptr_t fp);

Description

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.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
MT-Safe

See Also

adi(3C), adistack_clear_stack(3C), sparc_stack_read(3C), sxadm(8), attributes(7), standards(7)