zephyriot / zep-jira14

0 stars 0 forks source link

arch-specific inline functions cannot manipulate _kernel #1456

Open nashif opened 7 years ago

nashif commented 7 years ago

Reported by Andrew Boie:

I needed to implement some arch-specific inline functions to handle direct interrupts. The most logical place to put this implementation would be in include/arch/*/arch.h. However, these functions need to manipulate or read the kernel data structures defined in kernel/include/kernel_structs.h. However this header pulls in kernel.h, which pulls in arch/cpu.h, leading to a circular dependency.

Find a way for arches to define some inline functions, that automatically get pulled in when arch.h is included, such that these inline functions may reference _kernel, _current, etc.

(Imported from Jira ZEP-1595)

nashif commented 7 years ago

by Sharron LIU:

Set priority high, as GH-942 may rely on this, to my understanding.

nashif commented 7 years ago

by Andrew Boie:

GH-942 isn't blocked by this. Fixing this issue will let me improve performance however. I suggest Medium priority.

nashif commented 7 years ago

by Mark Linkmeyer:

Fixing incorrect priority