File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,10 +31,12 @@ extern unsigned int __bss_end__;
3131extern unsigned int _stored_data ;
3232extern unsigned int _start_data ;
3333extern unsigned int _end_data ;
34+ #ifdef RAM_CODE
3435/* .ramcode section (RAMFUNCTION) - may be in separate memory region */
3536extern unsigned int _stored_ramcode ;
3637extern unsigned int _start_ramcode ;
3738extern unsigned int _end_ramcode ;
39+ #endif
3840
3941extern void main (void );
4042extern void hal_early_init (void );
@@ -130,6 +132,7 @@ void boot_entry_C(void)
130132
131133 uart_putc_early ('I' ); /* checkpoint I: entered boot_entry_C */
132134
135+ #ifdef RAM_CODE
133136 /* Copy .ramcode section FIRST - to CPC SRAM which is already available.
134137 * This makes RAMFUNCTION code (memcpy, memmove) available before DDR.
135138 * Use volatile to prevent compiler from transforming to memcpy call. */
@@ -150,6 +153,7 @@ void boot_entry_C(void)
150153 (uint32_t )& _end_ramcode - (uint32_t )& _start_ramcode );
151154 }
152155#endif
156+ #endif /* RAM_CODE */
153157
154158 uart_putc_early ('J' ); /* checkpoint J: .ramcode done, entering hal_early_init */
155159
You can’t perform that action at this time.
0 commit comments