diff --git a/src/board/system76/darp5/scratch.c b/src/board/system76/darp5/scratch.c index e022b80..1bb2589 100644 --- a/src/board/system76/darp5/scratch.c +++ b/src/board/system76/darp5/scratch.c @@ -1,3 +1,4 @@ +#include <8051.h> #include #include @@ -45,7 +46,7 @@ static void scratch_start(void) __naked { void scratch_trampoline(void) { // Uses SCAR0, 1, 2, 3, and 4 which are mapped at 0x0000 in data space and are // 4096 bytes in size. - + // Disable interrupts EA = 0; diff --git a/src/board/system76/galp3-c/scratch.c b/src/board/system76/galp3-c/scratch.c index e022b80..1bb2589 100644 --- a/src/board/system76/galp3-c/scratch.c +++ b/src/board/system76/galp3-c/scratch.c @@ -1,3 +1,4 @@ +#include <8051.h> #include #include @@ -45,7 +46,7 @@ static void scratch_start(void) __naked { void scratch_trampoline(void) { // Uses SCAR0, 1, 2, 3, and 4 which are mapped at 0x0000 in data space and are // 4096 bytes in size. - + // Disable interrupts EA = 0; diff --git a/src/board/system76/lemp9/scratch.c b/src/board/system76/lemp9/scratch.c index 1c1923f..2221b52 100644 --- a/src/board/system76/lemp9/scratch.c +++ b/src/board/system76/lemp9/scratch.c @@ -1,3 +1,4 @@ +#include <8051.h> #include #include @@ -29,7 +30,7 @@ static void scratch_start(void) __naked { void scratch_trampoline(void) { // Uses SCAR0 which is mapped at 0x0000 in data space and are // 4096 bytes in size. - + // Disable interrupts EA = 0; @@ -49,7 +50,7 @@ void scratch_trampoline(void) { SCAR0L = 0x00; SCAR0M = 0x00; SCAR0H = 0x00; - + // Jump to reset function __asm__("ljmp 0"); }