From ac4a1f1d64148e1ec5ab7d54894f85c336435e25 Mon Sep 17 00:00:00 2001 From: "Vic (Chun-Ju) Yang" Date: Tue, 7 Jan 2014 21:52:43 +0800 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/181745 Reviewed-by: Vincent Palatin Reviewed-by: Randall Spangler --- chip/host/system.c | 5 ----- 1 file changed, 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());