arch/powerpc/include/asm/stacktrace.h

Source file repositories/reference/linux-study-clean/arch/powerpc/include/asm/stacktrace.h

File Facts

System
Linux kernel
Corpus path
arch/powerpc/include/asm/stacktrace.h
Extension
.h
Size
446 bytes
Lines
20
Domain
Architecture Layer
Bucket
arch/powerpc
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

#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));
}

#endif /* _ASM_POWERPC_STACKTRACE_H */

Annotation

Implementation Notes