Skip to content

Commit e995b64

Browse files
FennelFoxxoIndanz
authored andcommitted
boot: remove unnecessary reserve increment
The increment and reserve here is not an issue, but to keep consistency with the change made in 291af86 we should remove it. See PR seL4#1317 for more info Signed-off-by: James Martin <[email protected]>
1 parent 4018ad5 commit e995b64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/kernel/boot.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -980,8 +980,8 @@ BOOT_CODE bool_t init_freemem(word_t n_available, const p_region_t *available,
980980
insert_region(m);
981981
if (avail_reg[a].end > reserved[r].end) {
982982
avail_reg[a].start = reserved[r].end;
983-
reserve_region(pptr_to_paddr_reg(reserved[r]));
984-
r++;
983+
/* we could increment reserved index here, but it's more consistent with the
984+
* other overlapping case if we don't */
985985
} else {
986986
a++;
987987
}

0 commit comments

Comments
 (0)