This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
mabl wrote:Hi Giovanni, won't those 4 bytes be wasted by the function call? Or is the GCC to supid to optimize it all away?
It is a macro not a function and it stores the pointer in a thread structure, the pointer points to "main" so the structure is really referred. The p_name field of the main thread points to ch_debug.
i've included the changes. Cool trick with "main" But now you cannot just check if a device runs chibios by reading out the Flash and doing a search for CHRT.
EDIT: Have you thought about backporting the changes to the Stable Branch? There should not be much impact, right?
the oocd RTOS detection routine depends on detecting symbols unique to the operating system. Currently I only use "rlist" for detection. Are there other symbols I can assume to be always there and not change their name in the future? Like chSysInit and _idle_thread?