Skip to content
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

Platform: Library: Move mailbox_sw_reg_read64() from posix mailbox.h #9589

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

singalsu
Copy link
Collaborator

Without this change testbench IPC4 build fails with copier with implicit definition of the function. The mailbox_sw_reg_read64() function should be there in the same platform library mailbox.h header as the 32 bit version of similar function. The header mailbox.h for all Intel platforms is organized similarly.

The argument type is changed to size_t from uint32_t to follow other similar functions.

Without this change testbench IPC4 build fails with copier with
implicit definition of the function. The mailbox_sw_reg_read64()
function should be there in the same platform library mailbox.h
header as the 32 bit version of similar function. The header
mailbox.h for all Intel platforms is organized similarly.

The argument type is changed to size_t from uint32_t to follow
other similar functions.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
@singalsu singalsu requested a review from ranj063 October 17, 2024 09:14
Comment on lines -75 to -76
static inline uint64_t mailbox_sw_reg_read64(uint32_t offset)
{
Copy link
Member

Choose a reason for hiding this comment

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

Can testbench include this header ? We really want to get rid of platform/include now with Zephyr.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The failure is not from testbench source code but rest of SOF code built into testbench.

@singalsu singalsu marked this pull request as ready for review October 17, 2024 11:52
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

Successfully merging this pull request may close these issues.

2 participants