memblock region iteration can now be bounded to a certain memory range

This commit is contained in:
2022-12-29 10:19:57 +00:00
parent e922a776c3
commit 84efc44710
3 changed files with 57 additions and 15 deletions

View File

@@ -48,7 +48,7 @@ int main(int argc, const char **argv)
}
printf("free regions:\n");
for_each_free_mem_range(&it, 0, 0x100000) {
for_each_free_mem_range(&it, 0, ULLONG_MAX) {
printf("\t%08" PRIxPTR "-%08" PRIxPTR "\n",
it.base,
it.limit);