Skip to contentSkip to conversation

mpc8245 PortX

U-Boot-Users 배장식 1 participant 1 message Jul 31, 2003

lore
Share & tools
lore

배장식

author
#0 lore raw

i want to access extended rom area (0x70000000) in mpc8245 sandpoint board (ARTis Microsystems A-3000)
i tried to reallocate BAT1(initial stack area ) 0x40000000 to 0x70000000 but board was hang...
i wrote BAT1 reallocation function and call BAT1 reallocation function in board.c ( board_init_r () )

void move_bat1 (void)

    {
    mtspr (IBAT1L, (0x70000000 | BATL_PP_10 | BATL_CACHEINHIBIT));
    mtspr (IBAT1U, (0x70000000 | BATU_BL_256M | BATU_VS | BATU_VP));

    mtspr (DBAT1L, (0x70000000 | BATL_PP_10 | BATL_CACHEINHIBIT));
    mtspr (DBAT1U, (0x70000000 | BATU_BL_256M | BATU_VS | BATU_VP));
    __asm__ __volatile__("eieio");
    __asm__ __volatile__("isync");
    __asm__ __volatile__("sync");

}

i think ram use stack at this function so 0x40000000 nerver accessed

what's wrong... :-((

^^ best regard~~