Changeset 827d73f in mainline for uspace/lib/libc/arch/sparc64/src/stacktrace_asm.S
- Timestamp:
- 2010-02-12T14:09:22Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a70bda4
- Parents:
- 918e9910 (diff), e70edd1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/arch/sparc64/src/stacktrace_asm.S
r918e9910 r827d73f 27 27 # 28 28 29 #include <libarch/stack.h> 30 29 31 .text 30 32 31 .global frame_pointer_get 32 .global frame_pointer_prev 33 .global frame_pointer_validate 34 .global return_address_get 35 .global program_counter_get 33 .global stacktrace_prepare 34 .global stacktrace_fp_get 35 .global stacktrace_pc_get 36 36 37 frame_pointer_get: 38 movq %rbp, %rax 37 stacktrace_prepare: 38 save %sp, -(STACK_WINDOW_SAVE_AREA_SIZE+STACK_ARG_SAVE_AREA_SIZE), %sp 39 # Flush all other windows to memory so that we can read their contents. 40 flushw 39 41 ret 42 restore 40 43 41 frame_pointer_prev: 42 movq (%rdi), %rax 43 ret 44 stacktrace_fp_get: 45 # Add the stack bias to %sp to get the actual address. 46 retl 47 add %sp, STACK_BIAS, %o0 44 48 45 frame_pointer_validate: 46 movq %rdi, %rax 47 ret 48 49 return_address_get: 50 movq 8(%rdi), %rax 51 ret 52 53 program_counter_get: 54 movq (%rsp), %rax 55 ret 49 stacktrace_pc_get: 50 retl 51 mov %o7, %o0
Note:
See TracChangeset
for help on using the changeset viewer.