cpu/rocket: naturally align data defined in crt0.S

The startup code accesses this data using sd/ld instructions, which
require that the address being accessed is 8-byte aligned.
The .dword asm directive does NOT imply any alignment, so we need
to force it using the .align directive.
This commit is contained in:
Jakub Piecuch 2021-10-04 15:20:29 +02:00
parent cb6861e1c8
commit 771897fa37
1 changed files with 3 additions and 0 deletions

View File

@ -112,11 +112,14 @@ inf_loop:
j inf_loop j inf_loop
.bss .bss
.align 8
smp_ap_args: smp_ap_args:
.dword 0 .dword 0
.dword 0 .dword 0
.dword 0 .dword 0
.align 8
smp_ap_target: smp_ap_target:
.dword 0 .dword 0
.align 8
smp_ap_ready: smp_ap_ready:
.dword 0 .dword 0