mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
AVR: Explicitly disable interrupts as the first step of system init
Disabling interrupts at the very beginning of system init does not make sense after reset since interrupts are disabled anyway. But it is very convenient for debugging purposes, in situations when the system misbehaves and ocassionally jumps to zero.
This commit is contained in:
@@ -368,6 +368,9 @@ vectortab:
|
||||
.func __start
|
||||
__start:
|
||||
|
||||
/* no interrupts! Useful for software reset by jumping to address 0 */
|
||||
cli
|
||||
|
||||
/* Clear the zero register, clear the status register and initialize the
|
||||
* IDLE thread stack
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user