diff options
author | Vic (Chun-Ju) Yang <victoryang@chromium.org> | 2014-01-07 21:52:43 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-01-08 03:49:33 +0000 |
commit | ac4a1f1d64148e1ec5ab7d54894f85c336435e25 (patch) | |
tree | fda425ebd64c704cf8f9ec4e4c6977e564925c15 /chip | |
parent | 1c545a85e2ed1d7bb28d155324f963f1f57d1c18 (diff) | |
download | chrome-ec-ac4a1f1d64148e1ec5ab7d54894f85c336435e25.tar.gz |
emulator: Fix a bug that jump tag is overwritten
The mock system_usable_ram_end() always returns the same address.
However, this causes the second jump tag to overwrite the first one.
Also, now that the jump data is properly placed, we can actually remove
the mock implementation.
BUG=chrome-os-partner:19235
TEST=Add two jump tag and check the first one is not overwritten.
BRANCH=None
Change-Id: If868895a7c028dd25399adb69e9708de45c84f10
Signed-off-by: Vic (Chun-Ju) Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/181745
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/host/system.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/chip/host/system.c b/chip/host/system.c index 41f634aadd..6e1d1c36bf 100644 --- a/chip/host/system.c +++ b/chip/host/system.c @@ -228,11 +228,6 @@ uint32_t system_get_scratchpad(void) return 0; } -uintptr_t system_usable_ram_end(void) -{ - return (uintptr_t)(__shared_mem_buf + SHARED_MEM_SIZE); -} - static void __jump_resetvec(void) { save_time(get_time()); |