Commit dc5cc6d9 authored by philip's avatar philip
Browse files

Add the exccause parameter into the bootreason block

parent 2d82e622
...@@ -477,12 +477,13 @@ static int node_bootreason (lua_State *L) ...@@ -477,12 +477,13 @@ static int node_bootreason (lua_State *L)
lua_pushnumber (L, ri->reason); lua_pushnumber (L, ri->reason);
if (ri->reason == REASON_EXCEPTION_RST) if (ri->reason == REASON_EXCEPTION_RST)
{ {
lua_pushnumber (L, ri->exccause);
lua_pushnumber (L, ri->epc1); lua_pushnumber (L, ri->epc1);
lua_pushnumber (L, ri->epc2); lua_pushnumber (L, ri->epc2);
lua_pushnumber (L, ri->epc3); lua_pushnumber (L, ri->epc3);
lua_pushnumber (L, ri->excvaddr); lua_pushnumber (L, ri->excvaddr);
lua_pushnumber (L, ri->depc); lua_pushnumber (L, ri->depc);
return 7; return 8;
} }
else else
return 2; return 2;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment