Skip to content
Snippets Groups Projects
Commit 4ada5415 authored by q3k's avatar q3k Committed by Serge Bazanski
Browse files

l0der: style fixes

parent b6e716dd
No related branches found
No related tags found
No related merge requests found
...@@ -112,7 +112,7 @@ static int _read_elf_header(FIL *fp, Elf32_Ehdr *hdr) ...@@ -112,7 +112,7 @@ static int _read_elf_header(FIL *fp, Elf32_Ehdr *hdr)
* :param size_t count: amount of bytes to read * :param size_t count: amount of bytes to read
* :returns: ``0`` on success or a negative value on error. Possible errors: * :returns: ``0`` on success or a negative value on error. Possible errors:
* *
* - ``-EIO``: Could not read from FAT - address out of bounds of not enough bytes available. * - ``-EIO``: Could not read from FAT - address out of bounds of not enough bytes available.
*/ */
static int _seek_and_read(FIL *fp, uint32_t address, void *data, size_t count) { static int _seek_and_read(FIL *fp, uint32_t address, void *data, size_t count) {
FRESULT fres; FRESULT fres;
...@@ -566,7 +566,6 @@ static int _load_pie(FIL *fp, Elf32_Ehdr *hdr, struct l0dable_info *info) ...@@ -566,7 +566,6 @@ static int _load_pie(FIL *fp, Elf32_Ehdr *hdr, struct l0dable_info *info)
} }
// Run relocations. // Run relocations.
if ((res = _run_relocations(fp, &li, hdr)) != 0) { if ((res = _run_relocations(fp, &li, hdr)) != 0) {
return res; return res;
} }
...@@ -574,7 +573,7 @@ static int _load_pie(FIL *fp, Elf32_Ehdr *hdr, struct l0dable_info *info) ...@@ -574,7 +573,7 @@ static int _load_pie(FIL *fp, Elf32_Ehdr *hdr, struct l0dable_info *info)
uint32_t image_entrypoint = li.load_address + hdr->e_entry; uint32_t image_entrypoint = li.load_address + hdr->e_entry;
LOG_INFO("l0der", "Entrypoint (ISR Vector) at %08lx", image_entrypoint); LOG_INFO("l0der", "Entrypoint (ISR Vector) at %08lx", image_entrypoint);
// Setup stack // Setup stack
uint32_t *isr = (uint32_t *)image_entrypoint; uint32_t *isr = (uint32_t *)image_entrypoint;
isr[0] = li.stack_top; isr[0] = li.stack_top;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment