Skip to content

compile problem of reentrant in XC8 #5

@ZanoZ

Description

@ZanoZ

Dear:
I have compile the cocoos in xc8, , the original version is ok,
and it report an error, after I add the os_tick() into timer ISR.
the error said that there are reentrant issue, and blablabla.... when I "\" the os_tick(), it will fine.
this is the error:"os_task.c:478: advisory: (1510) non-reentrant function "_os_task_clear_wait_queue" appears in multiple call graphs and has been duplicated by the compiler"

I know the different if reentrant function and usual function. But I am not sure it is right or not to add reentrant before every function in the code...
I don't know why you guys works well. maybe the compiler is different...
I use mplabx and xc8 v1.44
Thanks for any following..

BR
Zona.W

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions