18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __ASM_STACK_POINTER_H 38c2ecf20Sopenharmony_ci#define __ASM_STACK_POINTER_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci/* 68c2ecf20Sopenharmony_ci * how to get the current stack pointer from C 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ciregister unsigned long current_stack_pointer asm ("sp"); 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#endif /* __ASM_STACK_POINTER_H */ 11