x86/boot: Use current_stack_pointer to avoid asm() in init_heap()
authorUros Bizjak <ubizjak@gmail.com>
Mon, 20 May 2024 08:29:55 +0000 (10:29 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 21 May 2024 11:36:36 +0000 (13:36 +0200)
commitb855cc58fc93c175fd5bb868d5e3a45cb3e1a42b
tree9f7665afde9c5bd0e582a33164f7cb31c0374ae3
parent41c14f1ac82cdb1e009d635ffd5ae5dc4cc3f036
x86/boot: Use current_stack_pointer to avoid asm() in init_heap()

Use current_stack_pointer to avoid asm() in the calculation of
stack_end in init_heap(). The new code is more readable and
results in exactly the same object file.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20240520083011.135342-1-ubizjak@gmail.com
arch/x86/boot/main.c