diff options
author | Antonello Dettori <dev@dettori.io> | 2016-06-22 21:09:08 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-06-24 20:48:12 +0200 |
commit | e5f48d20e7d66471f182afe305fe073177722224 (patch) | |
tree | f4a28f1a43ca733aca74d79ee7cff4787dd1b9c1 /src/lib | |
parent | 5992afa57db4921f341bfdeb4bc796dfa6d0ae0e (diff) |
region: Add writeat and eraseat support
Implement writeat and eraseat support into the region_device_ops struct.
Change-Id: Iac2cf32e523d2f19ee9e5feefe1fba8c68982f3d
Signed-off-by: Antonello Dettori <dev@dettori.io>
Reviewed-on: https://review.coreboot.org/15318
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/prog_loaders.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/prog_loaders.c b/src/lib/prog_loaders.c index 38dfc2b5df..ecbc679f2a 100644 --- a/src/lib/prog_loaders.c +++ b/src/lib/prog_loaders.c @@ -30,7 +30,8 @@ #include <timestamp.h> /* Only can represent up to 1 byte less than size_t. */ -const struct mem_region_device addrspace_32bit = MEM_REGION_DEV_INIT(0, ~0UL); +const struct mem_region_device addrspace_32bit = + MEM_REGION_DEV_RO_INIT(0, ~0UL); int prog_locate(struct prog *prog) { |