mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
aligned_alloc, parameters order
This commit is contained in:
@@ -38,7 +38,7 @@ char* strdup(const char* s) {
|
||||
return y;
|
||||
}
|
||||
|
||||
void* aligned_alloc(size_t size, size_t alignment) {
|
||||
void* aligned_alloc(size_t alignment, size_t size) {
|
||||
return pvPortAllocAligned(size, alignment);
|
||||
}
|
||||
|
||||
|
||||
@@ -461,7 +461,7 @@ static bool elf_load_section_data(ELFFile* elf, ELFSection* section, Elf32_Shdr*
|
||||
return true;
|
||||
}
|
||||
|
||||
section->data = aligned_alloc(section_header->sh_size, section_header->sh_addralign);
|
||||
section->data = aligned_alloc(section_header->sh_addralign, section_header->sh_size);
|
||||
section->size = section_header->sh_size;
|
||||
|
||||
if(section_header->sh_type == SHT_NOBITS) {
|
||||
|
||||
Reference in New Issue
Block a user