Using NEWRPL_MAGIC consintently

This commit is contained in:
Stefan Achatz 2020-12-24 14:28:59 +01:00
parent ac383ac73f
commit cd3d4ea31f
3 changed files with 4 additions and 6 deletions

View file

@ -831,4 +831,7 @@ extern unsigned char const __keyb_bitfromcode[64];
#define __ENABLE_ARM_ASSEMBLY__ 1
// Magic word "NRPL"
#define NEWRPL_MAGIC 0x4c50524e
#endif // TARGET_PRIME1_H

View file

@ -20,11 +20,6 @@
#define left 0
#define right 160
// Magic word "NRPL"
#define NEWRPL_MAGIC 0x4c50524e
static int line;
static gglsurface surface;

View file

@ -392,7 +392,7 @@ __ARM_MODE__ void cpu_off_prepare()
*MISCCR |= 0x1000; // USB PORT INTO SUSPEND MODE
// SIGNAL THAT IT'S US GOING INTO POWEROFF MODE
*INFORM2 = 0x4c50524e; // 'NRPL' SIGNAL THE BOOT PROCEDURE THAT WE WANT TO STAY IN NEWRPL
*INFORM2 = NEWRPL_MAGIC; // 'NRPL' SIGNAL THE BOOT PROCEDURE THAT WE WANT TO STAY IN NEWRPL
asm volatile ("mov r0,r0"); // USE NOPS AS BARRIER TO FORCE COMPILER TO RESPECT THE ORDER