diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-08-09 13:47:26 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-08-09 17:40:37 -0700 |
commit | 371d06bbfdf56fad142539c9a72759e53d5bc26a (patch) | |
tree | 0fe36ffa1485b319a7b0d3e59db9c722f97ce020 /common/flash_common.c | |
parent | 019f50590e5c0d49baaf9dbe980c22f8e1e19df1 (diff) | |
download | chrome-ec-371d06bbfdf56fad142539c9a72759e53d5bc26a.tar.gz |
Tidy shared memory module
Adds shmem command to print amount of shared memory. This is also a
useful indicator of how much IRAM is left, since shared memory will
expand to fill all unused IRAM.
Removes never-implemented wait param to shared_mem_acquire().
BUG=none
TEST=shmem
Change-Id: I798ff644d701dcba52219b70bec99c06a23d03ec
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/29809
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'common/flash_common.c')
-rw-r--r-- | common/flash_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/flash_common.c b/common/flash_common.c index 84a2a2d55a..6e2587e652 100644 --- a/common/flash_common.c +++ b/common/flash_common.c @@ -158,7 +158,7 @@ static int command_flash_write(int argc, char **argv) size = shared_mem_size(); /* Acquire the shared memory buffer */ - rv = shared_mem_acquire(size, 0, &data); + rv = shared_mem_acquire(size, &data); if (rv) { ccputs("Can't get shared mem\n"); return rv; |