further raspberrypi fixes

This commit is contained in:
Jeff Epler 2021-11-10 12:11:06 -06:00
parent 9e799a7c74
commit 017b52c455
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE
2 changed files with 2 additions and 0 deletions

View File

@ -187,6 +187,7 @@ SRC_SDK := \
src/rp2_common/pico_unique_id/unique_id.c \
SRC_SDK := $(addprefix sdk/, $(SRC_SDK))
$(patsubst %.c,$(BUILD)/%.o,$(SRC_SDK)): CFLAGS += -Wno-missing-prototypes
SRC_C += \
boards/$(BOARD)/board.c \

View File

@ -46,6 +46,7 @@ static uint8_t read_flash_sreg(uint8_t status_command);
// This must be the first defined function so that it is placed at the start of
// memory where the bootloader jumps to!
extern void _stage2_boot(void);
void __attribute__((section(".entry._stage2_boot"), used)) _stage2_boot(void) {
uint32_t lr;
asm ("MOV %0, LR\n" : "=r" (lr) );