Oopenvela-robotsched: unify the thread exit running task behavior.
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Fix references to the no-longer-existent misc/ directory in comments, README files, and documentation | 10 年前 | |
Run .c and .h files in this PR through nxstyle and fix complaints | 2 个月前 | |
arch/z16: Correct file naming for coding standard Rename all up_* files to conform to the name conventions of https://cwiki.apache.org/confluence/display/NUTTX/Naming+FAQ Rename all internal functions from up_* z16_ | 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 个月前 | |
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/z16: Correct file naming for coding standard Rename all up_* files to conform to the name conventions of https://cwiki.apache.org/confluence/display/NUTTX/Naming+FAQ Rename all internal functions from up_* z16_ | 2 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> 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 个月前 | |
arch: move some macros to public code. Signed-off-by: hujun5 <hujun5@xiaomi.com> | 2 个月前 | |
Run .c and .h files in this PR through nxstyle and fix complaints | 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: 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 个月前 | |
Revert "Reduce the size of tcb by four bytes." This reverts commit 893c5e92c28aca338b38a3d85bd232f9a25a5b56. Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com> | 2 个月前 | |
Revert "Reduce the size of tcb by four bytes." This reverts commit 893c5e92c28aca338b38a3d85bd232f9a25a5b56. Signed-off-by: wangzhi16 <wangzhi16@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/smp: update g_running_tasks to percpu/g_running_task If remove whole g_running_tasks, or replace it self as a macrro, will cause the gdb plugin not working. Signed-off-by: buxiasen <buxiasen@xiaomi.com> | 2 个月前 | |
Run .c and .h files in this PR through nxstyle and fix complaints | 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 个月前 |