Skip to content
Commit 10ee6481 authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

Update bootutil to reduce amount of global state



The boot loader state currently exists as global variable (boot_data)
which is accessed by all routines; this updates all routines that
require access to the state to receive it by parameter.

Variables that are declared as "static" (globals) were #ifdef'ed to
only use static when building a native bootloader, to avoid stack
allocation. When bootutil is built to run in the simulator they are
stack allocated to avoid thread share.

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent b0f04733
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment