rv1126-uboot/arch/arm/lib
Joseph Chen d0df954bf3 arm: lib: add arm32/64 stacktrace support
This patch supports dump arm32/64 stacktrace as the format of raw
address info. The U-Boot symbol table is not available now, please
use ./scripts/stacktrace.sh script to parse stacktrace info with command:

    ./scripts/stacktrace.sh <file>       // stacktrace info file

Example on RK3399:
    Call trace:
     PC:   [< 00258a7c >]  dwc3_gadget_uboot_handle_interrupt+0xa0/0x5bc
     LR:   [< 002052f8 >]  usb_gadget_handle_interrupts+0x10/0x1c

    Stack:
           [< 00258a7c >]  dwc3_gadget_uboot_handle_interrupt+0xa0/0x5bc
           [< 0025bd6c >]  sleep_thread.isra.20+0xb0/0x114
           [< 0025cf58 >]  fsg_main_thread+0x2c8/0x1814
           [< 0020db58 >]  do_rkusb+0x250/0x338
           [< 00226a00 >]  cmd_process+0xac/0xe0
           [< 00212df4 >]  run_list_real+0x6fc/0x72c
           [< 00212f94 >]  parse_stream_outer+0x170/0x67c
           [< 002126e0 >]  parse_string_outer+0xdc/0xf4
           [< 00212bb0 >]  run_list_real+0x4b8/0x72c
           [< 00212f94 >]  parse_stream_outer+0x170/0x67c
           [< 00212698 >]  parse_string_outer+0x94/0xf4
           [< 00225f30 >]  run_command_list+0x38/0x90
           [< 00202d08 >]  rockchip_dnl_mode_check+0x4c/0xd4
           [< 00202db0 >]  setup_boot_mode+0x20/0xf0
           [< 00203010 >]  board_late_init+0x10/0x40
           [< 0027071c >]  initcall_run_list+0x44/0x80
           [< 00213d68 >]  board_init_r+0x20/0x24

The "dump_stack()" is available to trigger stacktrace.

Change-Id: Ib1423269dd255fa4a34231489cd3b7e6ddd22540
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-02-13 09:04:23 +08:00
..
Makefile arm: lib: add arm32/64 stacktrace support 2019-02-13 09:04:23 +08:00
ashldi3.S
ashrdi3.S
asm-offsets.c ARM: adjust arm-smccc code for use in U-Boot 2017-04-18 10:29:17 -04:00
bootm-fdt.c arm: bootm-fdt: improve bi_dram[] print format 2018-10-11 17:52:28 +08:00
bootm.c common: add system boot time report 2019-01-10 16:02:35 +08:00
cache-cp15.c ARM: remove bogus cp_delay() function 2017-06-12 08:38:39 -04:00
cache-pl310.c
cache.c arm: Migrate SYS_THUMB_BUILD to Kconfig, introduce SPL_SYS_THUMB_BUILD 2017-03-18 20:28:01 -04:00
ccn504.S
cmd_boot.c
crt0.S arm: crt0: don't relocate vector if CONFIG_SKIP_RELOCATE_UBOOT is enabled 2018-12-04 10:01:25 +08:00
crt0_64.S common: support skip U-Boot relocation 2018-12-01 11:47:26 +08:00
crt0_aarch64_efi.S efi: arm: Add aarch64 EFI app support 2016-11-14 23:24:04 +01:00
crt0_arm_efi.S efi: arm: Add EFI app support 2016-11-14 23:24:04 +01:00
debug.S
div0.c
div64.S
eabi_compat.c
elf_aarch64_efi.lds efi: arm: Add aarch64 EFI app support 2016-11-14 23:24:04 +01:00
elf_arm_efi.lds efi: arm: Add EFI app support 2016-11-14 23:24:04 +01:00
gic_64.S arm: irq: do not enable irq in SPL/TPL 2017-11-09 19:34:04 -08:00
interrupts.c arm: interrupt: clean up registers show 2019-02-01 11:53:47 +08:00
interrupts_64.c armv8: dump SP content when system crash 2018-09-20 11:03:44 +08:00
interrupts_m.c
lib1funcs.S arm: Migrate SYS_THUMB_BUILD to Kconfig, introduce SPL_SYS_THUMB_BUILD 2017-03-18 20:28:01 -04:00
lshrdi3.S
memcpy.S arm: Migrate SYS_THUMB_BUILD to Kconfig, introduce SPL_SYS_THUMB_BUILD 2017-03-18 20:28:01 -04:00
memset.S arm: Migrate SYS_THUMB_BUILD to Kconfig, introduce SPL_SYS_THUMB_BUILD 2017-03-18 20:28:01 -04:00
muldi3.S
psci-dt.c UPSTREAM: libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h> 2018-12-24 17:20:37 +08:00
reloc_aarch64_efi.c efi: arm: Add aarch64 EFI app support 2016-11-14 23:24:04 +01:00
reloc_arm_efi.c efi: arm: Add EFI app support 2016-11-14 23:24:04 +01:00
relocate.S
relocate_64.S UPSTREAM: arm64: support running at addr other than linked to 2018-01-17 15:27:28 +08:00
reset.c
sections.c
semihosting.c env: Rename setenv() to env_set() 2017-08-16 08:22:18 -04:00
setjmp.S UPSTREAM: arm: provide a PCS-compliant setjmp implementation 2017-11-08 10:49:23 +08:00
setjmp_aarch64.S ARM64: invalid icache for cortex a35 2018-07-31 14:48:57 +08:00
spl.c arm: Add explicit include of <asm/mach-types.h> 2017-06-05 11:02:36 -04:00
stack.c arm: irq: do not enable irq in SPL/TPL 2017-11-09 19:34:04 -08:00
stacktrace.c arm: lib: add arm32/64 stacktrace support 2019-02-13 09:04:23 +08:00
stacktrace_64.c arm: lib: add arm32/64 stacktrace support 2019-02-13 09:04:23 +08:00
uldivmod.S
vectors.S arm: vectors: irq context get svc_lr and svc_sp 2019-02-01 11:53:47 +08:00
vectors_m.S
zimage.c