Files

20 lines
446 B
C
Raw Permalink Normal View History

2018-08-01 18:33:19 -03:00
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Stack trace functions.
*
* Copyright 2018, Murilo Opsfelder Araujo, IBM Corporation.
*/
#ifndef _ASM_POWERPC_STACKTRACE_H
#define _ASM_POWERPC_STACKTRACE_H
void show_user_instructions(struct pt_regs *regs);
static __always_inline bool on_thread_stack(void)
{
return !(((unsigned long)(current->stack) ^ current_stack_pointer)
& ~(THREAD_SIZE - 1));
}
2018-08-01 18:33:19 -03:00
#endif /* _ASM_POWERPC_STACKTRACE_H */