summaryrefslogtreecommitdiff
path: root/arch/x86/entry/entry_64_compat.S
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@redhat.com>2022-05-06 15:14:32 +0300
committerBorislav Petkov <bp@suse.de>2022-05-06 16:26:33 +0300
commita1e2c031ec3949b8c039b739c0b5bf9c30007b00 (patch)
tree9b7eca3fb8913cd729f48809cd2806b7dc060751 /arch/x86/entry/entry_64_compat.S
parentc89191ce67efa4e5353db6a67f7287c28e673740 (diff)
downloadlinux-a1e2c031ec3949b8c039b739c0b5bf9c30007b00.tar.xz
x86/mm: Simplify RESERVE_BRK()
RESERVE_BRK() reserves data in the .brk_reservation section. The data is initialized to zero, like BSS, so the macro specifies 'nobits' to prevent the data from taking up space in the vmlinux binary. The only way to get the compiler to do that (without putting the variable in .bss proper) is to use inline asm. The macro also has a hack which encloses the inline asm in a discarded function, which allows the size to be passed (global inline asm doesn't allow inputs). Remove the need for the discarded function hack by just stringifying the size rather than supplying it as an input to the inline asm. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Borislav Petkov <bp@suse.de> Link: https://lore.kernel.org/r/20220506121631.133110232@infradead.org
Diffstat (limited to 'arch/x86/entry/entry_64_compat.S')
0 files changed, 0 insertions, 0 deletions