summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2016-11-26 01:28:58 +0000
committerVadim Bendebury <vbendeb@chromium.org>2016-11-26 01:29:24 +0000
commitb3a98521228174d58a63d5be6495b4989419e17b (patch)
treec414a4c67861ca527d3036a4bfa8502396e34b9b /core
parent1ece199078c2665b625debd196ca389e5bda58f1 (diff)
downloadchrome-ec-b3a98521228174d58a63d5be6495b4989419e17b.tar.gz
Revert "ec: Improve efficiency of host command dispatcher"
This reverts commit c459c8278ed2dc84100693eab93389a0df9429bd as the fix is not straightforwad, some host command codes in private repos are expressed using C preprecessor which breaks the assumption of this patch that all host commands are expressed as four digit hex numbers. Change-Id: I922de9ae8dbab6eef048463c5c09b1f338152083 Reviewed-on: https://chromium-review.googlesource.com/414492 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Commit-Queue: Vadim Bendebury <vbendeb@chromium.org> Tested-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/cortex-m/ec.lds.S2
-rw-r--r--core/cortex-m0/ec.lds.S2
-rw-r--r--core/host/host_exe.lds2
-rw-r--r--core/minute-ia/ec.lds.S2
-rw-r--r--core/nds32/ec.lds.S2
5 files changed, 5 insertions, 5 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S
index 90212a5389..9e791f0380 100644
--- a/core/cortex-m/ec.lds.S
+++ b/core/cortex-m/ec.lds.S
@@ -123,7 +123,7 @@ SECTIONS
. = ALIGN(4);
__hcmds = .;
- KEEP(*(SORT(.rodata.hcmds*)))
+ KEEP(*(.rodata.hcmds))
__hcmds_end = .;
. = ALIGN(4);
diff --git a/core/cortex-m0/ec.lds.S b/core/cortex-m0/ec.lds.S
index 6102bfa973..d2bee481a9 100644
--- a/core/cortex-m0/ec.lds.S
+++ b/core/cortex-m0/ec.lds.S
@@ -70,7 +70,7 @@ SECTIONS
. = ALIGN(4);
__hcmds = .;
- KEEP(*(SORT(.rodata.hcmds*)))
+ KEEP(*(.rodata.hcmds))
__hcmds_end = .;
. = ALIGN(4);
diff --git a/core/host/host_exe.lds b/core/host/host_exe.lds
index 2c4eabdeeb..0763002945 100644
--- a/core/host/host_exe.lds
+++ b/core/host/host_exe.lds
@@ -16,7 +16,7 @@ SECTIONS {
. = ALIGN(8);
__hcmds = .;
- *(SORT(.rodata.hcmds*))
+ *(.rodata.hcmds)
__hcmds_end = .;
. = ALIGN(4);
diff --git a/core/minute-ia/ec.lds.S b/core/minute-ia/ec.lds.S
index 63db8f1e2a..2bdcc91e25 100644
--- a/core/minute-ia/ec.lds.S
+++ b/core/minute-ia/ec.lds.S
@@ -41,7 +41,7 @@ SECTIONS
. = ALIGN(4);
__hcmds = .;
- KEEP(*(SORT(.rodata.hcmds*)))
+ KEEP(*(.rodata.hcmds))
__hcmds_end = .;
. = ALIGN(4);
diff --git a/core/nds32/ec.lds.S b/core/nds32/ec.lds.S
index a888654781..43b905c899 100644
--- a/core/nds32/ec.lds.S
+++ b/core/nds32/ec.lds.S
@@ -65,7 +65,7 @@ SECTIONS
. = ALIGN(4);
__hcmds = .;
- KEEP(*(SORT(.rodata.hcmds*)))
+ KEEP(*(.rodata.hcmds))
__hcmds_end = .;
. = ALIGN(4);