Hardware Libraries  20.1
Stratix 10 SoC Hardware Manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Interrupt Utility Functions [Secure]

Description

This group of APIs provide utilities to query the system properties.

Functions

uint32_t alt_int_util_cpu_count (void)
 
uint32_t alt_int_util_int_count (void)
 
uint32_t alt_int_util_get_current_cpu (void)
 
alt_int_cpu_target_t alt_int_util_cpu_current (void)
 
void set_vector_table (void *vector_table)
 

Function Documentation

uint32_t alt_int_util_cpu_count ( void  )

Gets the number of CPUs in the system.

Returns
The CPU count of the system.
uint32_t alt_int_util_int_count ( void  )

Gets the number of supported interrupts in the system.

Returns
The supported interrupt count of the system.
uint32_t alt_int_util_get_current_cpu ( void  )

Gets the CPU identifier of the current CPU.

Returns
The ID of the current CPUs
alt_int_cpu_target_t alt_int_util_cpu_current ( void  )

Gets the interrupt mask for the current CPU.

Returns
1 << alt_int_util_get_current_cpu()
void set_vector_table ( void *  vector_table)

Sets the vector table for a given CPU. Note that doing this will cause the alt_int_isr_register callbacks to cease functioning

Parameters
vector_tableThe address of the new vector table. See alt_interruptXX.S for an example of the format for the vector table