Skip to content

Commit

Permalink
fixup mem
Browse files Browse the repository at this point in the history
  • Loading branch information
thehajime committed Oct 16, 2024
1 parent 9458a65 commit f41ba0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/um/kernel/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ void __init mem_init(void)
* to be turned on.
*/
brk_end = (unsigned long) UML_ROUND_UP(sbrk(0));
#ifdef CONFIG_MMU
map_memory(brk_end, __pa(brk_end), uml_reserved - brk_end, 1, 1, 0);
#else
map_memory(brk_end, __pa(brk_end), uml_reserved - brk_end, 1, 1, 1);
#endif
memblock_free((void *)brk_end, uml_reserved - brk_end);
uml_reserved = brk_end;

Expand Down

0 comments on commit f41ba0a

Please sign in to comment.