FreeRTOS/Demo/RISC-V_RV64_PolarFire_SoftConsole/polarfire_hal/platform/mpfs_hal/common/nwc/mss_pll.c
/***************************************************************************/
/**
 * Copy switch code routine to RAM.
 * Copy locations have been defined in the linker script
 ******************************************************************************/
Copy switch code routine to RAM.
Copy locations have been defined in the linker script
Copy switch code routine to RAM . Copy locations have been defined in the linker script
__attribute__((weak)) void copy_switch_code(void)
{
    uint32_t * sc_lma = &__sc_load;
    uint32_t * end_sc_vma = &__sc_end;
    uint32_t * sc_vma = &__sc_start;
    if ( sc_vma != sc_lma )
    {
        while ( sc_vma < end_sc_vma )
        {
            *sc_vma = *sc_lma;
            sc_vma++ ; sc_lma++;
         }
    }
}
__attribute__ ( ( weak ) ) void copy_switch_code ( void ) { uint32_t * sc_lma = & __sc_load ; uint32_t * end_sc_vma = & __sc_end ; uint32_t * sc_vma = & __sc_start ; if ( sc_vma != sc_lma ) { while ( sc_vma < end_sc_vma ) { * sc_vma = * sc_lma ; sc_vma ++ ; sc_lma ++ ; } } }
Copy switch code routine to RAM.
Copy switch code routine to RAM .