From 0c6b564af06e02f40f1cf603cb42e994a71499e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Tue, 5 Nov 2013 06:43:37 +0000 Subject: [PATCH] BaS() now survives USB initialization (although it still fails due to missing resource descriptors) --- BaS_gcc/sources/BaS.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BaS_gcc/sources/BaS.c b/BaS_gcc/sources/BaS.c index dac53cd..556628c 100644 --- a/BaS_gcc/sources/BaS.c +++ b/BaS_gcc/sources/BaS.c @@ -298,10 +298,12 @@ void BaS(void) */ memset((void *) 0x400, 0, 0x400); +#ifdef MACHINE_FIREBEE /* set Falcon bus control register */ /* sets bit 3 and 6. Both are undefined on an original Falcon? */ * (volatile uint8_t *) 0xffff8007 = 0x48; +#endif /* MACHINE_FIREBEE */ /* ST RAM */ @@ -316,6 +318,7 @@ void BaS(void) * (uint32_t *) 0x5a4 = 0x1d000000; * (uint32_t *) 0x5a8 = 0x1357bd13; /* ramvalid TOS system variable */ +#ifdef MACHINE_FIREBEE /* m5484lite has no ACIA and no dip switch... */ acia_init(); /* Test for pseudo-supervisor mode: DIP switch #6 down */ @@ -324,6 +327,7 @@ void BaS(void) * and all the supervisor instructions are emulated. */ __asm__ __volatile__("move.w #0x0700,sr \n\t" : : : "memory"); } +#endif /* MACHINE_FIREBEE */ srec_execute("BASFLASH.S19");