diff options
Diffstat (limited to 'sys/arm/include/frame.h')
-rw-r--r-- | sys/arm/include/frame.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arm/include/frame.h b/sys/arm/include/frame.h index a24eccc..09ba55f 100644 --- a/sys/arm/include/frame.h +++ b/sys/arm/include/frame.h @@ -138,10 +138,14 @@ typedef struct irqframe { } irqframe_t; /* - * Switch frame + * Switch frame. + * + * It is important this is a multiple of 8 bytes so the stack is correctly + * aligned when we create new threads. */ struct switchframe { + u_int pad; /* Used to pad the struct to a multiple of 8-bytes */ u_int sf_r4; u_int sf_r5; u_int sf_r6; |