Last change
on this file since cb7be8f was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 3 years ago |
Replace some license headers with SPDX identifier
Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.
|
-
Property mode
set to
100644
|
File size:
752 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * SPDX-FileCopyrightText: 2010 Jakub Jermar
|
---|
3 | * SPDX-FileCopyrightText: 2010 Jiri Svoboda
|
---|
4 | *
|
---|
5 | * SPDX-License-Identifier: BSD-3-Clause
|
---|
6 | */
|
---|
7 |
|
---|
8 | /** @addtogroup libcppc32 ppc32
|
---|
9 | * @ingroup lc
|
---|
10 | * @{
|
---|
11 | */
|
---|
12 | /** @file
|
---|
13 | */
|
---|
14 |
|
---|
15 | #include <stdint.h>
|
---|
16 | #include <stdbool.h>
|
---|
17 |
|
---|
18 | #include <stacktrace.h>
|
---|
19 |
|
---|
20 | #define FRAME_OFFSET_FP_PREV 0
|
---|
21 | #define FRAME_OFFSET_RA 4
|
---|
22 |
|
---|
23 | bool stacktrace_fp_valid(stacktrace_t *st, uintptr_t fp)
|
---|
24 | {
|
---|
25 | (void) st;
|
---|
26 | return fp != 0;
|
---|
27 | }
|
---|
28 |
|
---|
29 | errno_t stacktrace_fp_prev(stacktrace_t *st, uintptr_t fp, uintptr_t *prev)
|
---|
30 | {
|
---|
31 | return (*st->ops->read_uintptr)(st->op_arg, fp + FRAME_OFFSET_FP_PREV, prev);
|
---|
32 | }
|
---|
33 |
|
---|
34 | errno_t stacktrace_ra_get(stacktrace_t *st, uintptr_t fp, uintptr_t *ra)
|
---|
35 | {
|
---|
36 | return (*st->ops->read_uintptr)(st->op_arg, fp + FRAME_OFFSET_RA, ra);
|
---|
37 | }
|
---|
38 |
|
---|
39 | /** @}
|
---|
40 | */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.