X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fkernel%2Fao_task.h;h=7549b59838d6abbc4c85a22e5b42ae4ce7e9449e;hb=master;hp=9197e25cef0f6f1c828d033404227206cd75a934;hpb=b10049d847fac855b1139d6441de853641b7365b;p=fw%2Faltos diff --git a/src/kernel/ao_task.h b/src/kernel/ao_task.h index 9197e25c..27f47a56 100644 --- a/src/kernel/ao_task.h +++ b/src/kernel/ao_task.h @@ -48,10 +48,16 @@ struct ao_task { struct ao_list queue; struct ao_list alarm_queue; /* Provide both 32-bit and 8-bit stacks */ +#ifdef AO_STACK_CANARY + uint32_t bottom_canary; +#endif union { uint32_t stack32[AO_STACK_SIZE>>2]; uint8_t stack8[AO_STACK_SIZE]; } AO_STACK_ALIGNMENT; +#ifdef AO_STACK_CANARY + uint32_t top_canary; +#endif #if HAS_SAMPLE_PROFILE uint32_t ticks; uint32_t yields;