#ifdef udata
struct u_data *p_udata; /* Udata pointer for platforms using dynamic udata */
#endif
- /* Everything below here is overlaid by time info at exit */
+ /* Everything below here is overlaid by time info at exit.
+ * Make sure it's 32-bit aligned. */
uint16_t p_priority; /* Process priority */
uint32_t p_pending; /* Bitmask of pending signals */
uint32_t p_ignored; /* Bitmask of ignored signals */
/* Add in child's time info. It was stored on top */
/* of p_priority in the childs process table entry. */
- udata.u_cutime += ((clock_t *)p->p_priority)[0];
- udata.u_cstime += ((clock_t *)p->p_priority)[1];
+ udata.u_cutime += ((clock_t *)&p->p_priority)[0];
+ udata.u_cstime += ((clock_t *)&p->p_priority)[1];
return retval;
}
}