Skip to content

Commit

Permalink
vm_arm: reduce redundancy in template
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Heider <[email protected]>
  • Loading branch information
Axel Heider authored and lsf37 committed Jan 24, 2024
1 parent c372ff4 commit 8d7cd52
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions templates/seL4VMParameters.template.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@
#include <camkes.h>
#include <arm_vm/gen_config.h>

/*- set vm_address_config = configuration[me.name].get('vm_address_config') -*/
/*- set vm_image_config = configuration[me.name].get('vm_image_config') -*/
/*- set linux_address_config = configuration[me.name].get('linux_address_config') -*/
/*- set linux_image_config = configuration[me.name].get('linux_image_config') -*/
/*- set config = configuration[me.name] -*/
/*- if not config -*/
/*? raise(Exception('Missing VM configuration')) ?*/
/*- endif -*/

/*- set vm_address_config = config.get('vm_address_config') -*/
/*- set vm_image_config = config.get('vm_image_config') -*/
/*- set linux_address_config = config.get('linux_address_config') -*/
/*- set linux_image_config = config.get('linux_image_config') -*/

/*# For legacy compatibility, a fall back to the standard Linux entry exists. #*/
/*- set is_64_bit = (8 == macros.get_word_size(options.architecture)) -*/
Expand Down

0 comments on commit 8d7cd52

Please sign in to comment.