CMSIS-Core (Cortex-A)  
CMSIS-Core support for Cortex-A processor-based devices
 
Loading...
Searching...
No Matches
Vector Base Address Register (VBAR)

When high exception vectors are not selected, the VBAR holds the exception base address for exceptions that are not taken to Monitor mode or to Hyp mode. More...

Functions

__STATIC_FORCEINLINE uint32_t __get_VBAR (void)
 Get VBAR.
 
__STATIC_FORCEINLINE void __set_VBAR (uint32_t vbar)
 Set VBAR.
 

Description

When high exception vectors are not selected, the VBAR holds the exception base address for exceptions that are not taken to Monitor mode or to Hyp mode.

Bits Name Function
[31:5] VBA Bits[31:5] of the base address of the low exception vectors.
[4:0] - Reserved.

Consider using __get_VBAR and __set_VBAR for accessing this register.

Function Documentation

◆ __get_VBAR()

__STATIC_INLINE uint32_t __get_VBAR ( void  )

Get VBAR.

This function returns the value of the Vector Base Address Register.

Returns
Vector Base Address Register

This function returns the value of the Vector Base Address Register (VBAR).

◆ __set_VBAR()

__STATIC_INLINE void __set_VBAR ( uint32_t  vbar)

Set VBAR.

This function assigns the given value to the Vector Base Address Register.

Parameters
[in]vbarVector Base Address Register value to set

This function assigns the given value to the Vector Base Address Register (VBAR).