toolchain: Remove vestigial COFF assembler symbol mangling support

The toolchain headers included an abstraction for defining symbol
names in assembly context in the situation where we're using a
DOS-style assembler that automatically prepends an underscore to
symbol names.

We aren't.  Zephyr is an ELF platform.  None of our toolchains do
this.  Nothing sets the "TOOL_PREPENDS_UNDERSCORE" macro from within
the project, and it surely isn't an industry standard.  Yank it out.
Now we can write assembler labels in natural syntax, and a few other
things fall out to simplify too.

(NOTE: these headers contain assembly code and will fail checkpatch.
That is an expected false positive.)

Change-Id: Ic89e74422b52fe50b3b7306a0347d7a560259581
Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
Andy Ross 2016-08-18 09:25:00 -07:00 committed by Andrew Boie
commit 9f628943a8
8 changed files with 60 additions and 83 deletions

View file

@ -80,11 +80,11 @@ SECTION_FUNC(exception.other, _Swap)
stw r14, __tNANO_fiber_OFFSET(r10)
br next_chosen
BRANCH_LABEL(not_fiber)
not_fiber:
/* Fiber was NULL, we'll choose nanokernel.task */
ldw r11, __tNANO_task_OFFSET(r10)
BRANCH_LABEL(next_chosen)
next_chosen:
/* Set _nanokernel.current to value we chose for r11 */
stw r11, __tNANO_current_OFFSET(r10)
@ -123,7 +123,7 @@ BRANCH_LABEL(next_chosen)
ori r3, r3, NIOS2_STATUS_PIE_MSK
wrctl status, r3
BRANCH_LABEL(no_unlock)
no_unlock:
#else
wrctl status, r3
#endif