X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fkernel%2Fao_task.h;h=03b629693c0e44baa9ba61a24caa39edc6d61ff4;hb=HEAD;hp=9197e25cef0f6f1c828d033404227206cd75a934;hpb=b140da92536d7c48ba37868f1c2afce7bb86dfdb;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;