summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorDino Li <dino.li@ite.com.tw>2015-06-29 17:35:11 +0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-07-01 03:49:14 +0000
commitedb53663dd476b4f8cf43bdfe510cc8512d9b089 (patch)
tree9f2abc5158172338ff59d05d53bd3a7b04f9edf8 /core
parent943e9292f1b02fb819ec22904825c5274fdc68d2 (diff)
downloadchrome-ec-edb53663dd476b4f8cf43bdfe510cc8512d9b089.tar.gz
nds32: remove macro "RO"
"RO" is a workaround for GP base instructions. And now we have added "-mno-gp-direct" option in the NDS32 toolchain. So the compiler would not generate GP base instructions directly, and we can remove this "RO". Signed-off-by: Dino Li <dino.li@ite.com.tw> BRANCH=none BUG=chrome-os-partner:24378 TEST=console "version" and "gpioget" Change-Id: I23cb6374fb8eb57081d713bf5c70b80a87dd2fb5 Signed-off-by: Dino Li <dino.li@ite.com.tw> Reviewed-on: https://chromium-review.googlesource.com/281862 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/nds32/config_core.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/core/nds32/config_core.h b/core/nds32/config_core.h
index f2e16eaf79..0bf6595611 100644
--- a/core/nds32/config_core.h
+++ b/core/nds32/config_core.h
@@ -16,17 +16,4 @@
*/
#define CONFIG_SOFTWARE_CLZ
-/*
- * Force the compiler to use a proper relocation when accessing an external
- * variable in a read-only section.
- * TODO(crosbug.com/p/24378): remove me when the nds32 toolchain bug is fixed.
- */
-#undef RO
-#define RO(var) \
-({ \
- typeof(var) *__ptr_val; \
- asm volatile("la %0, " #var "\n" : "=r"(__ptr_val)); \
- ((typeof(var))(*__ptr_val)); \
-})
-
#endif /* __CROS_EC_CONFIG_CORE_H */