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

feat(core/shmem): move shared memory logic to dedicated source file #124

Merged
merged 1 commit into from May 23, 2024

Conversation

joaopeixoto13
Copy link
Collaborator

This patch relocates the initialization and shared memory access steps from the hardcoded settings in the existing IPC file to a generic shared memory file. Previously, the code assumed the existence of only one object working with the shared memory (ipc). With this update, the system is now prepared for future versions where multiple objects can be added and working with the shared memory.

@josecm josecm self-assigned this Feb 19, 2024
@danielRep danielRep self-requested a review March 25, 2024 14:16
danielRep
danielRep previously approved these changes Mar 25, 2024
Copy link
Member

@danielRep danielRep left a comment

Choose a reason for hiding this comment

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

Look's good to me 👍

Copy link
Member

@DavidMCerdeira DavidMCerdeira left a comment

Choose a reason for hiding this comment

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

Seems to be working. I've tested this for riscv64.

My only issue is the wording of the commit title.
I don't think "custom" is the correct term here.

Something like this is better:
feat(core/shmem): move shared memory logic to dedicated source file

@joaopeixoto13 joaopeixoto13 changed the title feat(core/shmem): add custom file for shared memory feat(core/shmem): move shared memory logic to dedicated source file May 22, 2024
@DavidMCerdeira DavidMCerdeira self-requested a review May 22, 2024 11:58
DavidMCerdeira
DavidMCerdeira previously approved these changes May 22, 2024
@DavidMCerdeira
Copy link
Member

Needs rebase with main @joaopeixoto13

@josecm
Copy link
Member

josecm commented May 23, 2024

Needs rebase with main @joaopeixoto13

@DavidMCerdeira messed up a bit, but did the rebase for @joaopeixoto13

This patch relocates the initialization and shared memory access steps
from the hardcoded settings in the existing IPC file to a generic
shared memory file. Previously, the code assumed the existence of
only one object working with the shared memory (ipc). With this update,
the system is now prepared for future versions where multiple objects
can be added and working with the shared memory.

Signed-off-by: joaopeixoto13 <joaopeixotooficial@gmail.com>
Signed-off-by: Jose Martins <josemartins90@gmail.com>
@josecm josecm merged commit 26c01a3 into main May 23, 2024
15 checks passed
@josecm josecm deleted the ref/shmem branch May 23, 2024 15:39
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.

None yet

4 participants