mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-16 19:04:53 +08:00
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.