diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2017-09-07 14:44:55 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-09-09 02:26:16 -0700 |
commit | 5da63f4ea2c93e6b059d8c50ff01dbe53a13dec2 (patch) | |
tree | ae2417b2411abe87ef47d8b994ddc23ff288bccb /include/system.h | |
parent | 103108ec216e67a4937d9a51f7134d4923dd31f5 (diff) | |
download | chrome-ec-5da63f4ea2c93e6b059d8c50ff01dbe53a13dec2.tar.gz |
Treat SYSTEM_IMAGE_RW_B also as RW copy
SYSTEM_IMAGE_RW_B hasn't been globally treated as a RW copy.
This change makes EC treat it also as a RW copy.
BUG=none
BRANCH=none
TEST=make buildall
Change-Id: Iae5a9090cdf30f980014daca44cdf8f2a65ea1f2
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/656337
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/system.h')
-rw-r--r-- | include/system.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/system.h b/include/system.h index 5b7be4064f..2a229a68ef 100644 --- a/include/system.h +++ b/include/system.h @@ -48,6 +48,13 @@ enum system_image_copy_t { }; /** + * Checks if running image is RW or not + * + * @return True if system is running in a RW image or false otherwise. + */ +int system_is_in_rw(void); + +/** * Pre-initializes the module. This occurs before clocks or tasks are * set up. */ |