Skip to content

Commit

Permalink
Fix Pi3
Browse files Browse the repository at this point in the history
  • Loading branch information
pottendo committed Feb 3, 2024
1 parent 31c453a commit 6989137
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ ifeq ($(strip $(AARCH)),64)
TARGET_CIRCLE ?= kernel8.img
else
TARGET_CIRCLE ?= kernel8-32.img
COMMON_OBJS += SpinLock.o
endif
else ifeq ($(strip $(RASPPI)),4)
ifeq ($(strip $(AARCH)),64)
Expand Down
2 changes: 2 additions & 0 deletions src/circle-kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
#include <circle/serial.h>
#include <circle/exceptionhandler.h>
#include <circle/interrupt.h>
#if RASPPI <= 3
#include <circle/spinlock.h>
#endif
#include <circle/memio.h>
#include <circle/timer.h>
#include <circle/logger.h>
Expand Down
6 changes: 5 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
#include "SpinLock.h"
#else
#include "circle-kernel.h"
#if RASPPI <= 3
#include "SpinLock.h"
#else
#define SpinLock CSpinLock
#endif
#endif
#include "ROMs.h"
#include "stb_image.h"
Expand Down Expand Up @@ -61,7 +66,6 @@ unsigned versionMajor = 1;
unsigned versionMinor = 24;
#if defined (__CIRCLE__)
#define CV "c"
#define SpinLock CSpinLock
#else
#define CV
#endif
Expand Down

0 comments on commit 6989137

Please sign in to comment.