-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vm_arm: add method to get size of VM's pcpu list
Signed-off-by: Alex Pavey <[email protected]>
- Loading branch information
Alex Pavey
authored and
Alex Pavey
committed
Mar 10, 2023
1 parent
db06407
commit c76ad13
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright 2022, DornerWorks | ||
* | ||
* SPDX-License-Identifier: BSD-2-Clause | ||
*/ | ||
|
||
#include <camkes.h> | ||
|
||
/*- if 'pcpus' in configuration[me.name].keys() -*/ | ||
/*- for c in configuration[me.name].get('pcpus') -*/ | ||
#if(/*? c ?*/ >= CONFIG_MAX_NUM_NODES) | ||
#error "Invalid CPU number /*? c ?*/ in PCPU list of /*? me.name ?*/" | ||
#endif | ||
/*- endfor -*/ | ||
/*- endif -*/ | ||
|
||
int get_instance_size_pcpus_list(void) { | ||
/*- if 'pcpus' in configuration[me.name].keys() -*/ | ||
return /*? len(configuration[me.name].get('pcpus')) ?*/; | ||
/*- else -*/ | ||
return 0; | ||
/*- endif -*/ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
* Copyright 2022, DornerWorks | ||
* | ||
* SPDX-License-Identifier: BSD-2-Clause | ||
*/ | ||
|
||
int get_instance_size_pcpus_list(void); |