void Isr_Init(void)
{
unsigned int cc;
pISR_UNDEF = (unsigned)HaltUndef;
pISR_SWI = (unsigned)HaltSwi;
pISR_PABORT = (unsigned)HaltPabort;
pISR_DABORT = (unsigned)HaltDabort;
//中断向量重映射
for (cc = _RAM_STARTADDRESS;cc < (_RAM_STARTADDRESS + 0x20);cc += 4)
{
*((volatile unsigned *)cc) = 0xEA000000 + ((unsigned int)Image$$RO$$Base - 0x0c000000 - 8) / 4;
}
//rINTCON=0x1; // Vectored Int. IRQ enable,FIQ disable
rINTCON = 0x5; // Non-vectored,IRQ enable,FIQ disable
rINTMOD = 0x0; // All=IRQ mode
rINTMSK |= BIT_GLOBAL | BIT_EINT4567; // All interrupt is masked.
}
??*((volatile unsigned *)cc) = 0xEA000000 + ((unsigned int)Image$$RO$$Base - 0x0c000000 - 8) / 4??????
什么意思? |