apache / apache/nuttx

TLSF doesn't work with rv-virt/knsh64

Open
#12,291 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

## Reproducing

Similar to that of issue #12209, but using latest master from Nuttx upstream.

QEMU is still 6.2 but OpenSBI firmware is v1.0, as the default v0.9 is no longer supported but latest S-mode.

## Crash info:

```
(gdb) bt
#0 _assert (filename=filename@entry=0x8021ce90 "/home/yf/Projects/Nuttx/nuttx/arch/risc-v/src/common/riscv_pgalloc.c", linenum=, msg=0x0, regs=0x80401390 , regs@entry=0x0) at /home/yf/Projects/Nuttx/nuttx/sched/misc/assert.c:544
#1 0x0000000080202d50 in __assert (filename=filename@entry=0x8021ce90 "/home/yf/Projects/Nuttx/nuttx/arch/risc-v/src/common/riscv_pgalloc.c", linenum=, msg=) at /home/yf/Projects/Nuttx/nuttx/libs/libc/assert/lib_assert.c:36
#2 0x00000000802135a6 in pgalloc (brkaddr=, npages=) at /home/yf/Projects/Nuttx/nuttx/arch/risc-v/src/common/riscv_pgalloc.c:125
#3 0x0000000080209c6a in dispatch_syscall () at /home/yf/Projects/Nuttx/nuttx/arch/risc-v/src/common/riscv_swint.c:76
Backtrace stopped: frame did not save the PC
```
As code base changed, this is booked to track it rather than reopening 12209.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.