Skip to content

Commit c27198e

Browse files
committed
Fix for .ramcode CI issues.
1 parent 27d984c commit c27198e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/boot_ppc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ extern unsigned int __bss_end__;
3131
extern unsigned int _stored_data;
3232
extern unsigned int _start_data;
3333
extern unsigned int _end_data;
34+
#ifdef RAM_CODE
3435
/* .ramcode section (RAMFUNCTION) - may be in separate memory region */
3536
extern unsigned int _stored_ramcode;
3637
extern unsigned int _start_ramcode;
3738
extern unsigned int _end_ramcode;
39+
#endif
3840

3941
extern void main(void);
4042
extern 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

0 commit comments

Comments
 (0)