| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
arch/arm: support decouple signal related function from arch code Signed-off-by: guoshichao <guoshichao@xiaomi.com> | 2 个月前 | |
arch/atomic: remove up_testset in spinlock Signed-off-by: zhangyu117 <zhangyu117@xiaomi.com> | 2 个月前 | |
arm: fix the default userspace be section gc, cause USERSPACE invalid For CMake, we put arm_userspace.c in nuttx_user. For Makefile add --undefined=userspace to ensure userspace be referenced Signed-off-by: buxiasen <buxiasen@xiaomi.com> | 2 个月前 | |
arm: move userspace header delcare from board to arm/common Reuse the arm_interal.h as linkstage parameter should prefer Reduce the userspace dup, we should use custom userspace header for default, otherwise should select NUTTX_USERSPACE_CUSTOM. Signed-off-by: buxiasen <buxiasen@xiaomi.com> | 2 个月前 | |
arch/arm: Rename all up_*.c files to arm_*.c | 2 个月前 | |
arm:modlib not support unwind table now modlib_read: Read 64 bytes from offset 192665 modlib_symvalue: ERROR: SHN_UNDEF: Exported symbol "__gnu_Unwind_Find_exidx" not found modlib_relocate: ERROR: Section 2 reloc 12: Failed to get value of symbol[246]: -2 elf_loadbinary: Failed to bind symbols program binary: -2 builtin_loadbinary: Loading file: /mnt/sotest Signed-off-by: anjiahao <anjiahao@xiaomi.com> | 2 个月前 | |
qemu/armv8-r: add Bound Multi-Processing (BMP) support Run qemu with: bash qemu-system-arm -M virt,virtualization=on,highmem=off \ -semihosting -nographic -cpu cortex-r52 \ -device loader,file=./nuttx/nuttx -smp 4 Change core by cu -l /dev/ttyCORE1, etc. Signed-off-by: chao an <anchao@lixiang.com> Signed-off-by: buxiasen <buxiasen@xiaomi.com> | 2 个月前 | |
arm: fix fp backtrace address deviation Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
arm: skip backtrace asan check Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
arm/backtrace: use up_getpc() instead of &up_backtrace for frame.pc up_backtrace() previously set frame.pc = &up_backtrace, which equals the function entry address. This causes unwind_frame() to hit the "first instruction" early-return path, skipping the exidx unwind entirely. As a result frame->sp is never restored, and the next frame's unwind pops LR from a wrong stack offset. The stale SP leads to a corrupted LR (e.g. 0xfffffffa), which causes search_index() to return a pointer past __exidx_end. The out-of-bounds entry is interpreted as a prel31 offset into unmapped memory, and dereferencing it triggers a Data Abort. Replace &up_backtrace with up_getpc() which returns a PC inside the function body after the prologue, so unwind_frame() correctly executes the exidx unwind instructions and restores SP properly. Signed-off-by: guanyi3 <guanyi3@xiaomi.com> | 2 个月前 | |
qemu/armv8-r: add Bound Multi-Processing (BMP) support Run qemu with: bash qemu-system-arm -M virt,virtualization=on,highmem=off \ -semihosting -nographic -cpu cortex-r52 \ -device loader,file=./nuttx/nuttx -smp 4 Change core by cu -l /dev/ttyCORE1, etc. Signed-off-by: chao an <anchao@lixiang.com> Signed-off-by: buxiasen <buxiasen@xiaomi.com> | 2 个月前 | |
nuttx/atomic: replace atomic_fetch_xxx with atomic_xxx just like zephyr Signed-off-by: zhangyu117 <zhangyu117@xiaomi.com> | 2 个月前 | |
sched: unify the thread exit running task behavior. We already split switch_context into nxsched_suspend_scheduler and nxsched_resume_scheduler, when task_exit, set running = NULL for more compatible. The switch context is much more frequency than task_exit, we should prefer decrease the switch_context record time cost. Also the x_doirq xcp.regs save will be more unified. Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com> Signed-off-by: ligd <liguiding1@xiaomi.com> | 2 个月前 | |
arch/fork: fix not working with knsh For kernel build the kstack already allocated from setup_fork, memcpy will cause overlap. Also the updated newsp should restore to saved user stack pointer Signed-off-by: buxiasen <buxiasen@xiaomi.com> | 2 个月前 | |
vfork: modify struct vfork_s fp is just an alias of r11, it not really used for framepointer in t32 mode. Signed-off-by: liaoao <liaoao@xiaomi.com> | 2 个月前 | |
qemu/armv8-r: replace SMP_NCPUS to NCPUS Signed-off-by: buxiasen <buxiasen@xiaomi.com> | 2 个月前 | |
fs/hostfs: add link, symlink, readlink and lstat support Implemented link(), symlink(), readlink() and lstat() in hostfs. Signed-off-by: zhengyu16 <zhengyu16@xiaomi.com> | 2 个月前 | |
Merge remote-tracking branch 'mirtos/master' into dev-upmerge-nuttx-10.1-0507 Signed-off-by: liuhaitao <liuhaitao@xiaomi.com> | 2 个月前 | |
arch: change all g_interrupt_context to percpu Signed-off-by: buxiasen <buxiasen@xiaomi.com> | 2 个月前 | |
arm_a_r: merge arm_prefetchabort.c to arm_a_r Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
Merge remote-tracking branch 'mirtos/master' into dev-upmerge-nuttx-10.1-0507 Signed-off-by: liuhaitao <liuhaitao@xiaomi.com> | 2 个月前 | |
Merge remote-tracking branch 'mirtos/master' into dev-upmerge-nuttx-10.1-0507 Signed-off-by: liuhaitao <liuhaitao@xiaomi.com> | 2 个月前 | |
arm/modifyreg: Use common lock to protect the modify address to ensure consistency Signed-off-by: chao an <anchao@lixiang.com> Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
up_nputs: fix AddressSanitizer: global-buffer-overflow problem ==2117790==ERROR: AddressSanitizer: global-buffer-overflow on address 0x64d9e3c0 at pc 0x59ac4e16 bp 0xcefe8058 sp 0xcefe8048 READ of size 1 at 0x64d9e3c0 thread T0 #0 0x59ac4e15 in up_nputs sim/up_nputs.c:54 #1 0x59a67e4c in syslog_default_write syslog/syslog_channel.c:220 #2 0x59a67823 in syslog_default_write syslog/syslog_write.c:101 #3 0x59a67f10 in syslog_write syslog/syslog_write.c:153 #4 0x59a651c3 in syslogstream_flush syslog/syslog_stream.c:60 #5 0x59a6564e in syslogstream_addchar syslog/syslog_stream.c:104 #6 0x59a6576f in syslogstream_putc syslog/syslog_stream.c:140 #7 0x5989fc4d in vsprintf_internal stdio/lib_libvsprintf.c:952 #8 0x598a1298 in lib_vsprintf stdio/lib_libvsprintf.c:1379 #9 0x59a64ea4 in nx_vsyslog syslog/vsyslog.c:223 #10 0x598a601a in vsyslog syslog/lib_syslog.c:68 #11 0x59b0e3dc in AIOTJS::logPrintf(int, char const*, ...) src/ajs_log.cpp:45 #12 0x59b03d56 in jse_dump_obj src/jse/quickjs/jse_quickjs.cpp:569 #13 0x59b03ea1 in jse_dump_error1(JSContext*, unsigned long long) src/jse/quickjs/jse_quickjs.cpp:602 #14 0x59b03dd9 in jse_dump_error(JSContext*) src/jse/quickjs/jse_quickjs.cpp:591 #15 0x59bed615 in ferry::DomComponent::callHook(char const*) src/framework/dom/component.cpp:65 #16 0x59bfe0ff in ferry::DomComponent::initialize() src/framework/dom/component.cpp:645 #17 0x59bb141d in dom_create_component(JSContext*, unsigned long long, unsigned long long, unsigned long long) (/home/wangbowen/project/central/vela_miot_bes_m0/bin/audio+0x365c41d) #18 0x59b4c0d3 in AIOTJS::__createComponent(JSContext*, unsigned long long, int, unsigned long long*) (/home/wangbowen/project/central/vela_miot_bes_m0/bin/audio+0x35f70d3) #19 0x5a56ec17 in js_call_c_function quickjs/quickjs.c:16108 Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com> | 2 个月前 | |
arch/arm: add semihosting poweroff This adds semihosting based poweroff to arm/common. It uses semihosting operation SYS_EXIT (0x18) with parameter AppExit (0x20026). Signed-off-by: Yanfeng Liu <p-liuyanfeng9@xiaomi.com> | 2 个月前 | |
xtensa/esp32s3: Add support for RT-Timer based on Systimer peripheral Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com> | 2 个月前 | |
arch: up_getusrsp change to inline and implement in irq.h Signed-off-by: buxiasen <buxiasen@xiaomi.com> | 2 个月前 | |
nuttx/atomic: replace atomic_fetch_xxx with atomic_xxx just like zephyr Signed-off-by: zhangyu117 <zhangyu117@xiaomi.com> | 2 个月前 | |
driver/serial: remove return value of up_putc() modify the prototype of up_putc(): remove the return value The architecture code does not care about the return value of up_putc(), so removing it saves two statements: Before: After: de4c: e52de004 push {lr} @ (str lr, [sp, #-4]!) | de4c: e52de004 push {lr} @ (str lr, [sp, #-4]!) de50: e24dd014 sub sp, sp, #20 | de50: e24dd014 sub sp, sp, #20 de54: e58d0004 str r0, [sp, #4] | de54: e58d0004 str r0, [sp, #4] de58: e30030f8 movw r3, #248 @ 0xf8 | de58: e30030f8 movw r3, #248 @ 0xf8 de5c: e3423000 movt r3, #8192 @ 0x2000 | de5c: e3423000 movt r3, #8192 @ 0x2000 de60: e58d300c str r3, [sp, #12] | de60: e58d300c str r3, [sp, #12] de64: e59d1004 ldr r1, [sp, #4] | de64: e59d1004 ldr r1, [sp, #4] de68: e59d000c ldr r0, [sp, #12] | de68: e59d000c ldr r0, [sp, #12] de6c: ebfffe66 bl d80c <pl011_putc> | de6c: ebfffe66 bl d80c <pl011_putc> de70: e59d3004 ldr r3, [sp, #4] | de70: e28dd014 add sp, sp, #20 de74: e1a00003 mov r0, r3 | de74: e49df004 pop {pc} @ (ldr pc, [sp], #4) de78: e28dd014 add sp, sp, #20 | de7c: e49df004 pop {pc} @ (ldr pc, [sp], #4) | Signed-off-by: chao an <anchao@lixiang.com> | 2 个月前 | |
arch/arm: support decouple signal related function from arch code Signed-off-by: guoshichao <guoshichao@xiaomi.com> | 2 个月前 | |
arch: Make STACK_ALIGNMENT consistent with TLS_STACK_ALIGNMENT when CONFIG_TLS_ALIGNED=y Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
arch/arm: Remove FAR and CODE from common/ and arm*/ folder Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
arch/arm: Remove FAR and CODE from common/ and arm*/ folder Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
Merge remote-tracking branch 'mirtos/master' into dev-upmerge-nuttx-10.1-0507 Signed-off-by: liuhaitao <liuhaitao@xiaomi.com> | 2 个月前 | |
arm: move userspace header delcare from board to arm/common Reuse the arm_interal.h as linkstage parameter should prefer Reduce the userspace dup, we should use custom userspace header for default, otherwise should select NUTTX_USERSPACE_CUSTOM. Signed-off-by: buxiasen <buxiasen@xiaomi.com> | 2 个月前 | |
arch/stack_align: decrease the stack align requirements. Add ttype in up_use_stack API. We can always get tls by tcb if Flat, and through syscall if no aligned, so don't need to make kstack aligned with TLS_STACK_ALIGN. If always stack aligned will very easy to cause memory fragment when long time used. For BMP case, _percpu_size don't have to align with TLS_STACK_ALIGN after this patch, as .percpu.bss stack don't have to TLS_STACK_ALIGN. TLS_ALIGNED depends on BUILD_KERNEL || BUILD_PROTECTED. We can suppose TLS_ALIGNED will never defined in BUILD_FLAT. Signed-off-by: buxiasen <buxiasen@xiaomi.com> | 2 个月前 | |
elf:use SUBALIGN(SECTIONS_ALIGN) set elf section sh_aligment Some architectures of the MPU have alignment requirements for the starting position, so use SUBALGIN to set the alignment. Signed-off-by: anjiahao <anjiahao@xiaomi.com> | 2 个月前 | |
procfs:add armv8-m cpuinfo Signed-off-by: liaoao <liaoao@xiaomi.com> | 2 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 |