最新的linux内核启动时保留一段连续物理内存方法

来源:互联网 发布:如何设计软件iphone 编辑:程序博客网 时间:2024/05/22 01:27

MACHINE_START

.reserve = xxx_reserve,

MACHINE_END


static void __init xxx_reserve(void)

{

memblock_free(phy_address_base, size);

memblock_remove(phy_address_base, size);

}

原创粉丝点击