commit | 439e23fe3624862e8ef3fabec8d95bfe6825a1c1 | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Thu Jan 17 13:30:41 2019 -0800 |
committer | Patrick Venture <venture@google.com> | Tue Jan 22 08:50:50 2019 -0800 |
tree | 53ea476e55310b231c1dbcf9b956c3e1f41efcf3 | |
parent | 5e022150b50f5e3a8fc38beb5618869762789a7c [diff] |
lpc_aspeed: implement copyFrom Implement copyFrom as effectively a memcpy from the mapped region into a vector. Change-Id: I7b629fc0aef69c65373a74ac086b8a038f2da53e Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/lpc_aspeed.cpp b/lpc_aspeed.cpp index f1caaa5..9d09858 100644 --- a/lpc_aspeed.cpp +++ b/lpc_aspeed.cpp
@@ -151,8 +151,7 @@ } } - /* TODO: Implement this. */ - return {}; + return std::vector<std::uint8_t>(mappedRegion, mappedRegion + length); } } // namespace blobs