Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
firmware
Commits
4ada5415
Commit
4ada5415
authored
5 years ago
by
q3k
Committed by
Serge Bazanski
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
l0der: style fixes
parent
b6e716dd
No related branches found
No related tags found
1 merge request
!45
l0dables: implement l0der
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
epicardium/l0der/l0der.c
+2
-3
2 additions, 3 deletions
epicardium/l0der/l0der.c
with
2 additions
and
3 deletions
epicardium/l0der/l0der.c
+
2
−
3
View file @
4ada5415
...
...
@@ -112,7 +112,7 @@ static int _read_elf_header(FIL *fp, Elf32_Ehdr *hdr)
* :param size_t count: amount of bytes to read
* :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
)
{
FRESULT
fres
;
...
...
@@ -566,7 +566,6 @@ static int _load_pie(FIL *fp, Elf32_Ehdr *hdr, struct l0dable_info *info)
}
// Run relocations.
if
((
res
=
_run_relocations
(
fp
,
&
li
,
hdr
))
!=
0
)
{
return
res
;
}
...
...
@@ -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
;
LOG_INFO
(
"l0der"
,
"Entrypoint (ISR Vector) at %08lx"
,
image_entrypoint
);
// Setup stack
// Setup stack
uint32_t
*
isr
=
(
uint32_t
*
)
image_entrypoint
;
isr
[
0
]
=
li
.
stack_top
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment