more fiddling with leading underscore in symbols
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#include "MCF5475_SLT.h"
|
||||
#include "startcf.h"
|
||||
|
||||
extern unsigned long __Bas_base[];
|
||||
extern unsigned long _Bas_base[];
|
||||
|
||||
/* imported routines */
|
||||
extern int mmu_init();
|
||||
@@ -203,7 +203,7 @@ void BaS(void)
|
||||
|
||||
/* TT-RAM */
|
||||
|
||||
* (uint32_t *) 0x5a4 = (uint32_t *) __Bas_base; /* ramtop TOS system variable */
|
||||
* (uint32_t *) 0x5a4 = (uint32_t *) _Bas_base; /* ramtop TOS system variable */
|
||||
* (uint32_t *) 0x5a8 = 0x1357bd13; /* ramvalid TOS system variable */
|
||||
|
||||
/* init ACIA */
|
||||
|
||||
@@ -11,26 +11,26 @@ void _startup(void)
|
||||
"| disable interrupts\n\t"
|
||||
"move.w #0x2700,sr\n\t"
|
||||
"|// Initialize MBAR\n\t"
|
||||
"MOVE.L #___MBAR,D0\n\t"
|
||||
"MOVE.L #__MBAR,D0\n\t"
|
||||
"MOVEC D0,MBAR\n\t"
|
||||
"MOVE.L D0,_rt_mbar\n\t"
|
||||
"| mmu off\n\t"
|
||||
"move.l #___MMUBAR+1,d0\n\t"
|
||||
"move.l #__MMUBAR+1,d0\n\t"
|
||||
"movec d0,MMUBAR | mmubar setzen\n\t"
|
||||
"clr.l d0\n\t"
|
||||
"move.l d0,MCF_MMU_MMUCR\n\t | mmu off"
|
||||
"|/* Initialize RAMBARs: locate SRAM and validate it */\n\t"
|
||||
"move.l #___RAMBAR0 + 0x7,d0\n\t | supervisor only"
|
||||
"move.l #__RAMBAR0 + 0x7,d0\n\t | supervisor only"
|
||||
"movec d0,RAMBAR0\n\t"
|
||||
"move.l #___RAMBAR1 + 0x1,d0\n\t"""
|
||||
"move.l #__RAMBAR1 + 0x1,d0\n\t"""
|
||||
"movec d0,RAMBAR1\n\t"
|
||||
"| STACKPOINTER AUF ENDE SRAM1\n\t"
|
||||
"lea ___SUP_SP,a7\n\t"
|
||||
"lea __SUP_SP,a7\n\t"
|
||||
"| instruction cache on\n\t"
|
||||
"move.l #0x000C8100,d0\n\t"
|
||||
"movec d0,cacr\n\t"
|
||||
"nop\n\t"
|
||||
"| initialize any hardware specific issues\n\t"
|
||||
"bra _initialize_hardware\n\t"
|
||||
);
|
||||
);
|
||||
}
|
||||
|
||||
@@ -40,8 +40,8 @@
|
||||
#define halten_movep
|
||||
#define halten_ewf
|
||||
|
||||
#define DIP_SWITCH (*(volatile uint8_t *)(&__MBAR[0xA2C]))
|
||||
#define DIP_SWITCHa ___MBAR + 0xA2C
|
||||
#define DIP_SWITCH (*(volatile uint8_t *)(&_MBAR[0xA2C]))
|
||||
#define DIP_SWITCHa __MBAR + 0xA2C
|
||||
|
||||
#define sca_page_ID 6
|
||||
|
||||
|
||||
@@ -231,7 +231,7 @@ void init_fpga(void)
|
||||
|
||||
while (!MCF_GPIO_PPDSDR_FEC1L & (1 << 0))
|
||||
{
|
||||
warte10us();
|
||||
wait10us();
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user