Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions zephyr/include/rtos/idc.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,14 @@
/** \brief IDC free function flags */
#define IDC_FREE_IRQ_ONLY BIT(0) /**< disable only irqs */

/** \brief IDC message payload. */
/**
* \brief IDC message payload.
*
* Placed in coherent (SHARED_DATA) memory and shared across cores.
*/
struct idc_payload {
uint8_t data[IDC_MAX_PAYLOAD_SIZE];
};
} __aligned(DCACHE_LINE_SIZE);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit funky to have this in in the type definition, but seems good otherwise.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still WIP btw, using latest clang with hifi.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clang linker would optimize on a byte boundary for size/perf reasons. We will get this on the userspace tests and linux configs next.


/** \brief IDC message. */
struct idc_msg {
Expand Down
Loading