Matteo Concas created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1502
Project:Branches: matteo.concas/rtems-gaisler:matteo/ambapp_offset to rtems/rtos/rtems:main Author: Matteo Concas Assignee: Matteo Concas ## Summary grlib/ambapp: Use correct member offset On 64-bit platforms, `struct ambapp_dev` is 36 bytes which get padded to 40 bytes. In that scenario, substracting the size of the struct to get the address of the parent struct yields incorrect results. We instead use `RTEMS_CONTAINER_OF()` which will always give the correct parent no matter the padding. ## Generative AI <!-- If you have used AI please use the "AI Contribution" template otherwise leave this blank see our fulls statement at https://www.rtems.org/generative-ai/--> <!-- Default settings, if it is a dropdown it will set after submission --> -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1502 You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/namespace/49/sent_notifications/5-5dcdz8ns2wl7y6bdysikrosy8-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
