Hello.

I just compiled uboot from gcc 4.3.5. When the uboot is running, it crashed
at ath_reg_wr_nf(), which is the SPI register write function. If I comment
it out, the uboot will keep going until it crashed again at
ath_pci_write_config(), which is PCI register write. Both of two call
#define ath_reg_wr(_phys, _val) do {    \
        ath_reg_wr_nf(_phys, _val);     \
        ath_reg_rd(_phys);              \


 #define ath_reg_wr_nf(_phys, _val) \
    ((*(volatile ath_reg_t *)KSEG1ADDR(_phys)) = (_val))


However When I use gcc 4.2.4 to compile the same uboot code, it works fun.
Any idea about what's going on here? I assume it must be related to BUS
configuration issue...

Thanks,

-George
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to