|
楼主 |
发表于 2004-9-24 10:18:56
|
显示全部楼层
谢谢老大,现在编译通过了,此外,编译过程中除了上面那个文件错误,还出错以下三个错误:
1、sim/arm/skyeye_mach_cs89712.c 中第143行 ARMword cs89712_io_read_word(ARMul_State *state, ARMword addr) 函数修改如下:
[code:1]ARMword cs89712_io_read_word(ARMul_State *state, ARMword addr)
{
ARMword data = 0;
switch (addr - 0x80000000) {
case SYSCON:
data = io.syscon;
break;
case SYSFLG:
data = io.sysflg;
break;
/* case MEMCFG1:
* case MEMCFG2:
* case DRFPR */
case INTSR:
data = io.intsr;
break;
case INTMR:
data = io.intmr;
break;
case LCDCON:
data = io.lcdcon;
break;
case TC1D:
data = io.tcd[0];
break;
case TC2D:
data = io.tcd[1];
break;
/* case RTCDR:
* case RTCMR:
* case PMPCON :
* case CODR:*/
case UARTDR:
data = io.uartdr;
io.sysflg |= URXFE;
io.intsr &= ~URXINT;
cs89712_update_int(state);
break;
/* case UBRLCR: */
case SYNCIO:
/* if we return zero here, the battery voltage calculation
* results in a divide-by-zero that messes up the kernel */
data = 1;
break;
/* case PALLSW:
* case PALMSW:*/
/* write-only: */
case STFCLR:
case BLEOI:
case MCEOI:
case TEOI:
case TC1EOI:
case TC2EOI:
case RTCEOI:
case UMSEOI:
case COEOI:
case HALT:
case STDBY:
break;
default:
//chy 2003-07-11: sometime has fault, but linux can continue running !!!!????
//SKYEYE_DBG("io_read_word(0x%08x) = 0x%08x\n", addr, data);
break; //添加这一行
}
return data;
}[/code:1]
2、gdb/arm-tdepc.c 中第2725行 static struct gdbarch * arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)函数,问题同1
3、sim/arm/skyeye_march_lpc.c 问题同skyeye_arch_s3c44b0.c
以上几个问题应该都是编译器引起的。。 :-( |
|