Merge pull request #988 from antmicro/fix-longlong

Fix stack alignment
This commit is contained in:
enjoy-digital 2021-08-13 09:59:19 +02:00 committed by GitHub
commit 601e96e5d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -90,7 +90,7 @@ trap_entry:
crt_init:
la sp, _fstack + 4
la sp, _fstack
la a0, vector_table
csrw mtvec, a0

View File

@ -54,7 +54,7 @@ trap_entry:
crt_init:
la sp, _fstack + 4
la sp, _fstack
la a0, trap_entry
csrw mtvec, a0

View File

@ -58,7 +58,7 @@ trap_entry:
.text
crt_init:
la sp, _fstack + 4
la sp, _fstack
la a0, trap_entry
csrw mtvec, a0
sw x0, smp_lottery_lock, a1

View File

@ -85,7 +85,7 @@ SECTIONS
}
}
PROVIDE(_fstack = ORIGIN(sram) + LENGTH(sram) - 8);
PROVIDE(_fstack = ORIGIN(sram) + LENGTH(sram));
PROVIDE(_fdata_rom = LOADADDR(.data));
PROVIDE(_edata_rom = LOADADDR(.data) + SIZEOF(.data));