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:
parent
cb6861e1c8
commit
771897fa37
|
@ -112,11 +112,14 @@ inf_loop:
|
|||
j inf_loop
|
||||
|
||||
.bss
|
||||
.align 8
|
||||
smp_ap_args:
|
||||
.dword 0
|
||||
.dword 0
|
||||
.dword 0
|
||||
.align 8
|
||||
smp_ap_target:
|
||||
.dword 0
|
||||
.align 8
|
||||
smp_ap_ready:
|
||||
.dword 0
|
||||
|
|
Loading…
Reference in New Issue