summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2020-08-30 14:39:03 -0400
committerDan Halbert <halbert@halwitz.org>2020-08-30 14:39:03 -0400
commit6dbd369272c4bedea4e00c1dca80d0b3ee2d6781 (patch)
tree44707cefb3dd7535492987671a75ad281d84824a /main.c
parent767f3d0feb1e145efc2def5048e91d910bbe2f9a (diff)
parent0adccc50dcc9e9db9a054da563fe4f165e8d912e (diff)
merge from upstream
Diffstat (limited to 'main.c')
-rwxr-xr-xmain.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index 392f96f30..5b719dc4b 100755
--- a/main.c
+++ b/main.c
@@ -444,11 +444,12 @@ int run_repl(void) {
}
int __attribute__((used)) main(void) {
- memory_init();
-
// initialise the cpu and peripherals
safe_mode_t safe_mode = port_init();
+ // Init memory after the port in case the port needs to set aside memory.
+ memory_init();
+
// Turn on LEDs
init_status_leds();
rgb_led_status_init();