for_each_mem_pfn_range宏
kenrel: 5.10 arch: aarch64
启动阶段经过arm64_memblock_init之后,通过gdb可以查看到memblock布局如下,此处的memblock可以理解为在线的memory
(gdb) p/x memblock
$5 = {
bottom_up = 0x0,
current_limit = 0xffffffffffffffff,
memory = {
cnt = 0x1,
max = 0x80,
total_size = 0x40000000,
regions = 0xffff8000120a8848,
name = 0xffff80001139cc28
},
reserved = {
cnt = 0x5,
max = 0x181,
total_size = 0x58a20c4,
re
共有 0 条评论