Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Xtensa Pointer Validating APIs

Functions

bool xtensa_soc_stack_ptr_is_sane (uint32_t sp)
 Checks whether the given sp value is a valid stack address.
bool xtensa_soc_ptr_is_executable (const void *p)
 Checks whether the given pointer is executable.

Detailed Description

Function Documentation

◆ xtensa_soc_ptr_is_executable()

bool xtensa_soc_ptr_is_executable ( const void * p)

#include <xtensa_ptr.h>

Checks whether the given pointer is executable.

Parameters
pointer
Returns
  • True if the pointer is not executable
  • False otherwise

◆ xtensa_soc_stack_ptr_is_sane()

bool xtensa_soc_stack_ptr_is_sane ( uint32_t sp)

#include <xtensa_ptr.h>

Checks whether the given sp value is a valid stack address.

Parameters
stackaddress value
Returns
  • True if the address parameter is valid for stack
  • False otherwise