Commit 3e889c28 authored by Zihao Yu's avatar Zihao Yu Committed by Palmer Dabbelt
Browse files

riscv,mm,init: fix wrong zone size

* pfn_base should not be added to zone size, else it will lead to wrong
  total page number. With 16MB physical memory, it will require 32MB
  memory to store node_mem_map. This will eventually trigger an illegal
  memory accessing during memory initialization.
parent 655915ec
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment