]> granicus.if.org Git - esp-idf/commit
cpu_start: disable boot watchdog only after starting the main task
authorIvan Grokhotkov <ivan@espressif.com>
Wed, 7 Dec 2016 17:41:27 +0000 (01:41 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Wed, 7 Dec 2016 17:42:37 +0000 (01:42 +0800)
commit13d802262a6c6d854be94266dd6f113f95680d65
tree3fd2c6a95d0c53047acb007b6ad32d7642c113bb
parentb57aecdfe93546f32f49e90c5dd710fe6891ecb1
cpu_start: disable boot watchdog only after starting the main task

Boot watchdogs were disabled very early in startup code. It was possible to introduce an infinite loop anywhere in the many functions called from startup code, and this would not be detected by interrupt watchdog and task watchdog. This change postpones disabling of boot watchdogs to the point when the scheduler is running. Also replaces register expressed using integer address with a name.
components/esp32/cpu_start.c