3、gicv2_secure_ppi_sgi_setup_props
配置安全G0 SGI和PPI的属性 。
/*******************************************************************************
-
Helper function to configure properties of secure G0 SGIs and PPIs.
******************************************************************************/
void gicv2_secure_ppi_sgi_setup_props(uintptr_t gicd_base,
const interrupt_prop_t *interrupt_props,
unsigned int interrupt_props_num)
{
unsigned int i;
uint32_t sec_ppi_sgi_mask = 0;
const interrupt_prop_t *prop_desc;/* Make sure there’s a valid property array */
if (interrupt_props_num != 0U)
assert(interrupt_props != NULL);
1-禁止向CPU接口转发相应的中断。
/*
* Disable all SGIs (imp. def.)/PPIs before configuring them. This is a
* more scalable approach as it avoids clearing the enable bits