Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acf620ec authored by Anton Blanchard's avatar Anton Blanchard Committed by Michael Ellerman
Browse files

powerpc: Rename __get_SP() to current_stack_pointer()



Michael points out that __get_SP() is a pretty horrible
function name. Let's give it a better name.

Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent bfe9a2cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@
	do {							\
		(regs)->result = 0;				\
		(regs)->nip = __ip;				\
		(regs)->gpr[1] = __get_SP();			\
		(regs)->gpr[1] = current_stack_pointer();	\
		asm volatile("mfmsr %0" : "=r" ((regs)->msr));	\
	} while (0)
#endif
+1 −1
Original line number Diff line number Diff line
@@ -1265,7 +1265,7 @@ static inline unsigned long mfvtb (void)

#define proc_trap()	asm volatile("trap")

extern unsigned long __get_SP(void);
extern unsigned long current_stack_pointer(void);

extern unsigned long scom970_read(unsigned int address);
extern void scom970_write(unsigned int address, unsigned long value);
+1 −1
Original line number Diff line number Diff line
@@ -466,7 +466,7 @@ static inline void check_stack_overflow(void)
#ifdef CONFIG_DEBUG_STACKOVERFLOW
	long sp;

	sp = __get_SP() & (THREAD_SIZE-1);
	sp = current_stack_pointer() & (THREAD_SIZE-1);

	/* check for stack overflow: is there less than 2KB free? */
	if (unlikely(sp < (sizeof(struct thread_info) + 2048))) {
+1 −1
Original line number Diff line number Diff line
@@ -115,6 +115,6 @@ _GLOBAL(longjmp)
	mr	r3,r4
	blr

_GLOBAL(__get_SP)
_GLOBAL(current_stack_pointer)
	PPC_LL	r3,0(r1)
	blr
+1 −1
Original line number Diff line number Diff line
@@ -42,4 +42,4 @@ EXPORT_SYMBOL(giveup_spe);
EXPORT_SYMBOL(epapr_hypercall_start);
#endif

EXPORT_SYMBOL(__get_SP);
EXPORT_SYMBOL(current_stack_pointer);
Loading