brintos

brintos / linux-shallow public Read only

0
0
Text · 650 B · 09da8f1 Raw
24 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2 3#if __alpha__4register unsigned long sp asm("$30");5#elif __arm__ || __aarch64__ || __csky__ || __m68k__ || __mips__ || __riscv6register unsigned long sp asm("sp");7#elif __i386__8register unsigned long sp asm("esp");9#elif __loongarch6410register unsigned long sp asm("$sp");11#elif __powerpc__12register unsigned long sp asm("r1");13#elif __s390x__14register unsigned long sp asm("%15");15#elif __sh__16register unsigned long sp asm("r15");17#elif __x86_64__18register unsigned long sp asm("rsp");19#elif __XTENSA__20register unsigned long sp asm("a1");21#else22#error "implement current_stack_pointer equivalent"23#endif24