Guys, how do I align address to 8 bytes?
For example, how would I align the following:
// Allocate Memory for the Stack tcb->stack_allocation = (unsigned char *)safe_malloc(mpu_mem * sizeof(int));
EDITED: would this work?
/* Align stack pointer. */ cpu_context = (unsigned int *)((unsigned int)(cpu_context) & 0xFFFFFFF8);