8000 [Bug] thread->current_priority tlist 编译不过,加RT_USING_HOOK keill编译不过 · Issue #9990 · RT-Thread/rt-thread · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Bug] thread->current_priority tlist 编译不过,加RT_USING_HOOK keill编译不过 #9990

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

Closed
supperthomas opened this issue Feb 13, 2025 · 2 comments

Comments

@supperthomas
Copy link
Member
supperthomas commented Feb 13, 2025

RT-Thread Version

master

Hardware Type/Architectures

STM32L4,KEIL

Develop Toolchain

MDK Keil

Describe the bug

加载systemview软件包的时候,编译,出现current_priority 和tlist编译不过的情况

rt_list_entry(node, struct rt_thread, tlist);
=>RT_THREAD_LIST_NODE_ENTRY(node);

packages/SystemView-latest/SystemView_Src/Config/SEGGER_SYSVIEW_RTThread.c(87): error: no member named 'current_priority' in 'struct rt_thread'
thread->current_priority
=>RT_SCHED_PRIV(thread).current_priority

rt_kprintf("%-*.*s %3d %3d %4d ", maxlen, RT_NAME_MAX, thread->parent.name, thread->oncpu, thread->bind_cpu, thread->current_priority);
if (RT_SCHED_CTX(thread).oncpu != RT_CPU_DETACHED)
    rt_kprintf("%-*.*s %3d %3d %4d ", maxlen, RT_NAME_MAX,
               thread->parent.name, RT_SCHED_CTX(thread).oncpu,
               RT_SCHED_CTX(thread).bind_cpu,
               RT_SCHED_PRIV(thread).current_priority);

RT_USING_HOOK
keil AC6下面thread.c要加-std=gnu99

Other additional context

No response

@supperthomas
Copy link
Member Author
if rtconfig.PLATFORM in ['gcc', 'armclang']:
    LOCAL_CCFLAGS += ' -std=gnu99'
elif rtconfig.PLATFORM in ['armcc']:
    LOCAL_CCFLAGS += ' --c99 --gnu'

@supperthomas
Copy link
Member Author

#8537

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0