AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
trace.c File Reference

aarch64: a panic's stack trace, from the frame records (AAPCS64): x29 points to the caller's x29 and its return address. More...

#include <core/system.h>
#include <mm/mm.h>

Go to the source code of this file.

Functions

void arch_stack_trace (void)
 Prints the stack trace of the running code, for a panic: the return address of each frame.

Variables

int __printing_trace = 0

Detailed Description

aarch64: a panic's stack trace, from the frame records (AAPCS64): x29 points to the caller's x29 and its return address.

The walk stops when a record isn't in the kernel's half. mk/backtrace.sh names the addresses.

Definition in file trace.c.

Function Documentation

◆ arch_stack_trace()

void arch_stack_trace ( void )

Prints the stack trace of the running code, for a panic: the return address of each frame.

Definition at line 14 of file trace.c.

References __printing_trace, ARCH_DMAP_BASE, arch_stack_trace(), and printk().

Referenced by arch_stack_trace().

Variable Documentation

◆ __printing_trace

int __printing_trace = 0

Definition at line 11 of file trace.c.

Referenced by arch_stack_trace().