diff options
author | Evan Lojewski <github@meklort.com> | 2020-07-18 10:34:49 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-18 10:34:49 -0600 |
commit | fb75521c041370e045eb1812aa257d5ebd2ffd32 (patch) | |
tree | 15ef244dbb8bb05b4ba3b461a77aa36e7c216425 /ape | |
parent | 437967699cf69896e6bb9c50979dbc17a4850ced (diff) | |
download | bcm5719-ortega-fb75521c041370e045eb1812aa257d5ebd2ffd32.tar.gz bcm5719-ortega-fb75521c041370e045eb1812aa257d5ebd2ffd32.zip |
debug: Enable the ape console on Port 0 (needed for SPI prints) and Port 1. (#92)
Diffstat (limited to 'ape')
-rw-r--r-- | ape/main.c | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -61,6 +61,7 @@ #include <types.h> #ifndef CXX_SIMULATOR +#include <ape_console.h> #include <printf.h> #endif @@ -335,16 +336,8 @@ bool handle_reset(void) void __attribute__((noreturn)) __start() { - bool full_init = false; - if (handle_reset() || SHM.RcpuWritePointer.r32 > sizeof(SHM.RcpuPrintfBuffer) || SHM.RcpuReadPointer.r32 > sizeof(SHM.RcpuPrintfBuffer) || - SHM.RcpuHostReadPointer.r32 > sizeof(SHM.RcpuPrintfBuffer)) - { - full_init = true; - - SHM.RcpuWritePointer.r32 = 0; - SHM.RcpuReadPointer.r32 = 0; - SHM.RcpuHostReadPointer.r32 = 0; - } + bool full_init = handle_reset(); + full_init = full_init || reset_ape_console(); printf("APE v" STRINGIFY(VERSION_MAJOR) "." STRINGIFY(VERSION_MINOR) "." STRINGIFY(VERSION_PATCH) " NCSI Port " STRINGIFY(NETWORK_PORT) "\n"); gPort = Network_getPort(NETWORK_PORT); |