Skip to content

Commit

Permalink
Merge patch-axel-25
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Heider committed Mar 29, 2023
2 parents 50c2dbe + 482a700 commit 02c967a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion components/Init/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@ void pre_init(void)
}

/* add untyped mmios */
for (int i = 0; i < simple_get_untyped_count(&camkes_simple); i++) {
int cnt = simple_get_untyped_count(&camkes_simple);
assert(cnt >= 0); /* This shall never fail. */
for (int i = 0; i < cnt; i++) {
size_t size;
uintptr_t paddr;
bool device;
Expand Down
8 changes: 6 additions & 2 deletions components/VM_Arm/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,9 @@ static int vmm_init(const vm_config_t *vm_config)
utspace_alloc_at_copy = vka->utspace_alloc_at;
vka->utspace_alloc_at = camkes_vm_utspace_alloc_at;

for (int i = 0; i < simple_get_untyped_count(simple); i++) {
int cnt = simple_get_untyped_count(simple);
assert(cnt >= 0); /* This shall never fail. */
for (int i = 0; i < cnt; i++) {
size_t size_bits;
uintptr_t paddr;
bool is_device;
Expand All @@ -505,7 +507,9 @@ static int vmm_init(const vm_config_t *vm_config)
}

if (camkes_dtb_untyped_count) {
for (int i = 0; i < camkes_dtb_untyped_count(); i++) {
cnt = camkes_dtb_untyped_count();
assert(cnt >= 0); /* This shall never fail. */
for (int i = 0; i < cnt; i++) {
size_t size_bits;
uintptr_t paddr;
seL4_CPtr cap = camkes_dtb_get_nth_untyped(i, &size_bits, &paddr);
Expand Down

0 comments on commit 02c967a

Please sign in to comment.