From 78c3d92e22671a162a798c34397104cb6aab0403 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 17 Feb 2016 17:43:27 +1100 Subject: [PATCH] Fix misleading comment on xPortSupervisorStackPointer --- FreeRTOS/Source/portable/esp8266/port.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/FreeRTOS/Source/portable/esp8266/port.c b/FreeRTOS/Source/portable/esp8266/port.c index a86e7d9..2aa8b0b 100644 --- a/FreeRTOS/Source/portable/esp8266/port.c +++ b/FreeRTOS/Source/portable/esp8266/port.c @@ -81,14 +81,12 @@ unsigned cpu_sr; char level1_int_disabled; -/* Supervisor stack pointer entry. On reset, sdk_user_start sets a - * tentative 512 byte supervisor stack size. +/* Supervisor stack pointer entry. This is the "high water mark" of + how far the supervisor stack grew down before task started. Is zero + before the scheduler starts. - When the scheduler starts, this changes to the "high water mark" of - how far the supervisor stack grew down before task started. - - After tasks start, task stacks are all allocated from the heap and - FreeRTOS checks for stack overflow. + After the scheduler starts, task stacks are all allocated from the + heap and FreeRTOS checks for stack overflow. */ void *xPortSupervisorStackPointer;