SyterKit 0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
stdlib.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0+ */
2
3#ifndef __STDLIB_H__
4#define __STDLIB_H__
5
15#define MAKE_THUMB_ADDR(pc) \
16 do { (pc) = (void *) ((uint32_t) (pc) | 0x1); } while (0)
17
36int backtrace(char *PC, long *SP, char *LR);
37
52int dump_stack(void);
53
54#endif// __STDLIB_H__
int backtrace(char *PC, long *SP, char *LR)
Perform a backtrace to find the call stack.
Definition backtrace.c:1168
int dump_stack(void)
Dumps the current stack state and performs a backtrace.
Definition backtrace.c:1219