[U-Boot-Users] strange problem on lib_mips/board.c
zhuzhenhua
zzh.hust at gmail.com
Fri Nov 11 12:28:21 CET 2005
i am porting u-boot on our board, and in function board_init_f of board.c
i remove the line
__asm__ __volatile__("": : :"memory");
and change the
init_fnc_t *init_sequence[] = {
timer_init,
env_init, /* initialize environment */
#ifdef CONFIG_INCA_IP
incaip_set_cpuclk, /* set cpu clock according to environment variable */
#endif
init_baudrate, /* initialze baudrate settings */
serial_init, /* serial communications setup */
console_init_f,
display_banner, /* say that we are here */
checkboard,
init_func_ram,
NULL,
};
to
init_fnc_t *init_sequence[] = {
timer_init,
// env_init, /* initialize environment */
#ifdef CONFIG_INCA_IP
incaip_set_cpuclk, /* set cpu clock according to environment variable */
#endif
// init_baudrate, /* initialze baudrate settings */
serial_init, /* serial communications setup */
env_init,
init_baudrate,
console_init_f,
display_banner, /* say that we are here */
checkboard,
init_func_ram,
NULL,
};
and it will output string on uart and it can finish the init_fnc_t
*init_sequence[] correctly,
but if i do not remove the "__asm__.." line or not change the
init_sequence, it will get nothing output on uart.
can someone give some possible reason for this situation?
thanks!
More information about the U-Boot
mailing list