提交 ffe3d1e4 编写于 作者: M Miles Chen 提交者: Will Deacon

arm64: use linux/sizes.h for constants

Use linux/size.h to improve code readability.
Signed-off-by: NMiles Chen <miles.chen@mediatek.com>
Signed-off-by: NWill Deacon <will.deacon@arm.com>
上级 76624175
......@@ -407,7 +407,7 @@ unsigned long arch_align_stack(unsigned long sp)
unsigned long arch_randomize_brk(struct mm_struct *mm)
{
if (is_compat_task())
return randomize_page(mm->brk, 0x02000000);
return randomize_page(mm->brk, SZ_32M);
else
return randomize_page(mm->brk, 0x40000000);
return randomize_page(mm->brk, SZ_1G);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册