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>
This commit is contained in:
Vic (Chun-Ju) Yang
2014-01-07 21:52:43 +08:00
committed by chrome-internal-fetch
parent 1c545a85e2
commit ac4a1f1d64

View File

@@ -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());