You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
lto, watchdog/hpwdt.c: make assembler label global
We cannot assume that the inline assembler code always ends up in the same file as the original C file. So make any assembler labels that are called with "extern" by C global Signed-off-by: Andi Kleen <ak@linux.intel.com> Cc: Wim Van Sebroeck <wim@iguana.be> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
54a33b1b14
commit
a6b088875b
@@ -162,7 +162,8 @@ extern asmlinkage void asminline_call(struct cmn_registers *pi86Regs,
|
|||||||
#define HPWDT_ARCH 32
|
#define HPWDT_ARCH 32
|
||||||
|
|
||||||
asm(".text \n\t"
|
asm(".text \n\t"
|
||||||
".align 4 \n"
|
".align 4 \n\t"
|
||||||
|
".globl asminline_call \n"
|
||||||
"asminline_call: \n\t"
|
"asminline_call: \n\t"
|
||||||
"pushl %ebp \n\t"
|
"pushl %ebp \n\t"
|
||||||
"movl %esp, %ebp \n\t"
|
"movl %esp, %ebp \n\t"
|
||||||
@@ -352,7 +353,8 @@ static int detect_cru_service(void)
|
|||||||
#define HPWDT_ARCH 64
|
#define HPWDT_ARCH 64
|
||||||
|
|
||||||
asm(".text \n\t"
|
asm(".text \n\t"
|
||||||
".align 4 \n"
|
".align 4 \n\t"
|
||||||
|
".globl asminline_call \n"
|
||||||
"asminline_call: \n\t"
|
"asminline_call: \n\t"
|
||||||
"pushq %rbp \n\t"
|
"pushq %rbp \n\t"
|
||||||
"movq %rsp, %rbp \n\t"
|
"movq %rsp, %rbp \n\t"
|
||||||
|
|||||||
Reference in New Issue
Block a user