1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * arch/arm/lib/call_with_stack.S
5 * Copyright (C) 2011 ARM Ltd.
6 * Written by Will Deacon <will.deacon@arm.com>
9 #include <linux/linkage.h>
10 #include <asm/assembler.h>
13 * void call_with_stack(void (*fn)(void *), void *arg, void *sp)
15 * Change the stack to that pointed at by sp, then invoke fn(arg) with
18 ENTRY(call_with_stack)
32 ENDPROC(call_with_stack)