Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arch/arm64: bug fix,arm64_fatal_handler need regs parms #14730

Merged

Conversation

lipengfei28
Copy link
Contributor

fix the bug

#0 udelay_coarse (microseconds=63000) at timers/arch_alarm.c:65
#1 up_ndelay (nanoseconds=nanoseconds@entry=250000000) at timers/arch_alarm.c:429
#2 0x00000000402b130c in up_udelay (microseconds=microseconds@entry=250000) at timers/arch_alarm.c:414
#3 0x00000000402b136c in up_mdelay (milliseconds=milliseconds@entry=250) at timers/arch_alarm.c:399
#4 0x000000004029db88 in reset_board () at misc/assert.c:787
#5 _assert (filename=filename@entry=0x40e29d18 "common/arm64_fatal.c", linenum=linenum@entry=549, msg=0x0, regs=regs@entry=0x0) at misc/assert.c:814
#6 0x00000000402d84e8 in __assert (filename=filename@entry=0x40e29d18 "common/arm64_fatal.c", linenum=linenum@entry=549, msg=) at assert/lib_assert.c:38
#7 0x00000000402907a4 in arm64_fatal_handler (regs=) at common/arm64_fatal.c:549
#8 0x0000000040d27278 in _vector_table () at common/arm64_vector_table.S:178
#9 0x000000004036f938 in up_backtrace (tcb=, buffer=0x4191c248, size=16, skip=0) at common/arm64_backtrace.c:131
#10 0x000000004036144c in sched_backtrace (tid=tid@entry=27, buffer=buffer@entry=0x4191c248, size=size@entry=16, skip=skip@entry=0) at sched/sched_backtrace.c:107
#11 0x00000000402dbaec in sched_dumpstack (tid=27) at sched/sched_dumpstack.c:71
#12 0x000000004029d870 in dump_running_task (regs=0x411bc0a0 <g_last_regs>, rtcb=0x418182a0) at misc/assert.c:639
#13 dump_assert_info (regs=0x411bc0a0 <g_last_regs>, msg=0x40e29d30 "panic", linenum=563, filename=0x40e29d18 "common/arm64_fatal.c", rtcb=0x418182a0) at misc/assert.c:687
#14 _assert (filename=filename@entry=0x40e29d18 "common/arm64_fatal.c", linenum=linenum@entry=563, msg=msg@entry=0x40e29d30 "panic", regs=0x411bc0a0 <g_last_regs>, regs@entry=0x0) at misc/assert.c:874
#15 0x0000000040290754 in arm64_fatal_handler (regs=0x0) at common/arm64_fatal.c:563
#16 0x0000000040d27278 in _vector_table () at common/arm64_vector_table.S:178
#17 0x0000000040370bac in hello_main (argc=argc@entry=1, argv=argv@entry=0x4191a940) at hello_main.c:40
#18 0x00000000402dbbd8 in nxtask_startup (entrypt=0x40370b80 <hello_main>, argc=1, argv=0x4191a940) at sched/task_startup.c:72
#19 0x00000000402a1d60 in nxtask_start () at task/task_start.c:116
#20 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Testing

Update this section with details on how did you verify the change,
what Host was used for build (OS, CPU, compiler, ..), what Target was
used for verification (arch, board:config, ..), etc. Providing build
and runtime logs from before and after change is highly appreciated.

@github-actions github-actions bot added Arch: arm64 Issues related to ARM64 (64-bit) architecture Size: XS The size of the change in this PR is very small labels Nov 12, 2024
@xiaoxiang781216 xiaoxiang781216 merged commit d8bdf23 into apache:master Nov 12, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: arm64 Issues related to ARM64 (64-bit) architecture Size: XS The size of the change in this PR is very small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants