Skip to content

Commit

Permalink
smc_cap: Give specified components smc capability
Browse files Browse the repository at this point in the history
Signed-off-by: Robbie VanVossen <[email protected]>
  • Loading branch information
Alex Pavey authored and kent-mcleod committed Aug 29, 2023
1 parent fd099f3 commit b325158
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions camkes/templates/component.common.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,23 @@ int get_instance_affinity(void) {
return /*? configuration[me.name].get('affinity', options.default_affinity) ?*/;
}

#ifdef CONFIG_ALLOW_SMC_CALLS
/*# ARM SMC cap allocation #*/
/*- if 'allow_smc' in configuration[me.name].keys() -*/
/*- if configuration[me.name].get('allow_smc') == true -*/
/*- set smc_cap = alloc(name='smc', type=seL4_ARMSMC) -*/
/*- else -*/
/*- set smc_cap = 0 -*/
/*- endif -*/
/*- else -*/
/*- set smc_cap = 0 -*/
/*- endif -*/

seL4_CPtr camkes_get_smc_cap(){
return /*? smc_cap ?*/;
}
#endif

/*- set cnode_size = configuration[me.address_space].get('cnode_size_bits') -*/
/*- if cnode_size -*/
/*- if isinstance(cnode_size, six.string_types) -*/
Expand Down

0 comments on commit b325158

Please sign in to comment.