build: add _ASMLANGUAGE to all asm files

This avoids asm files from having to explicitly define the _ASMLANGUAGE
symbol themselves.

Change-Id: I71f5a169f75d7443a58a0365a41c55b20dae3029
Signed-off-by: Benjamin Walsh <walsh.benj@gmail.com>
This commit is contained in:
Benjamin Walsh 2017-01-22 18:06:10 -05:00 committed by Anas Nashif
commit ee659ae1a1
46 changed files with 1 additions and 84 deletions

View file

@ -399,7 +399,7 @@ KBUILD_CXXFLAGS := -c -g -std=c++11 \
-ffunction-sections -fdata-sections \
-fno-rtti -fno-exceptions
KBUILD_AFLAGS := -c -g -xassembler-with-cpp
KBUILD_AFLAGS := -c -g -xassembler-with-cpp -D_ASMLANGUAGE
LDFLAGS += $(call ld-option,-nostartfiles)
LDFLAGS += $(call ld-option,-nodefaultlibs)

View file

@ -16,8 +16,6 @@
* where they are not supported on ARC EM family processors.
*/
#define _ASMLANGUAGE
#include <toolchain.h>
#include <sections.h>

View file

@ -11,8 +11,6 @@
* CPU power management routines.
*/
#define _ASMLANGUAGE
#include <kernel_structs.h>
#include <offsets_short.h>
#include <toolchain.h>

View file

@ -13,8 +13,6 @@
* See isr_wrapper.S for details.
*/
#define _ASMLANGUAGE
#include <kernel_structs.h>
#include <offsets_short.h>
#include <toolchain.h>

View file

@ -11,8 +11,6 @@
* Fault handlers for ARCv2 processors.
*/
#define _ASMLANGUAGE
#include <toolchain.h>
#include <sections.h>
#include <arch/cpu.h>

View file

@ -13,8 +13,6 @@
* a parameter.
*/
#define _ASMLANGUAGE
#include <offsets_short.h>
#include <toolchain.h>
#include <sections.h>

View file

@ -14,8 +14,6 @@
* See isr_wrapper.S for details.
*/
#define _ASMLANGUAGE
#include <kernel_structs.h>
#include <offsets_short.h>
#include <toolchain.h>

View file

@ -11,8 +11,6 @@
* Reset handler that prepares the system for running C code.
*/
#define _ASMLANGUAGE
// #include <board.h>
#include <toolchain.h>
#include <sections.h>

View file

@ -6,8 +6,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define _ASMLANGUAGE
#include <toolchain.h>
#include <sections.h>
#include <arch/cpu.h>

View file

@ -14,8 +14,6 @@
* See isr_wrapper.S for details.
*/
#define _ASMLANGUAGE
#include <kernel_structs.h>
#include <offsets_short.h>
#include <toolchain.h>

View file

@ -11,8 +11,6 @@
* Wrapper for _thread_entry routine when called from the initial context.
*/
#define _ASMLANGUAGE
#include <toolchain.h>
#include <sections.h>

View file

@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define _ASMLANGUAGE
#include <toolchain.h>
#include <arch/arc/v2/aux_regs.h>
#include <swap_macros.h>

View file

@ -15,8 +15,6 @@
* rebooting might trigger the exact same problem over and over.
*/
#define _ASMLANGUAGE
#include <toolchain.h>
#include <sections.h>

View file

@ -11,8 +11,6 @@
* Reset handler that prepares the system for running C code.
*/
#define _ASMLANGUAGE
#include <board.h>
#include <toolchain.h>
#include <sections.h>

View file

@ -11,8 +11,6 @@
* Software ISR table for ARM
*/
#define _ASMLANGUAGE
#include <toolchain.h>
#include <sections.h>
#include <arch/cpu.h>

View file

@ -16,8 +16,6 @@
* rest should not be triggered until the kernel is ready to handle them.
*/
#define _ASMLANGUAGE
#include <board.h>
#include <toolchain.h>
#include <sections.h>

View file

@ -10,8 +10,6 @@
*
*/
#define _ASMLANGUAGE
#include <offsets_short.h>
#include <toolchain.h>
#include <sections.h>

View file

@ -14,8 +14,6 @@
* wrapped around by _isr_wrapper()).
*/
#define _ASMLANGUAGE
#include <kernel_structs.h>
#include <offsets_short.h>
#include <toolchain.h>

View file

@ -11,8 +11,6 @@
* Fault handlers for ARM Cortex-M processors.
*/
#define _ASMLANGUAGE
#include <toolchain.h>
#include <sections.h>
#include <arch/cpu.h>

View file

@ -12,8 +12,6 @@
* a parameter.
*/
#define _ASMLANGUAGE
#include <offsets_short.h>
#include <toolchain.h>
#include <sections.h>

View file

@ -12,8 +12,6 @@
* on ARM Cortex-M3/M4 CPUs.
*/
#define _ASMLANGUAGE
#include <kernel_structs.h>
#include <offsets_short.h>
#include <toolchain.h>

View file

@ -11,8 +11,6 @@
* This module initializes the watchdog for the fsl_frdm_k64f platform.
*/
#define _ASMLANGUAGE
#include <soc.h>
#include <toolchain.h>
#include <sections.h>

View file

@ -4,7 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define _ASMLANGUAGE
#include <arch/nios2/asm.h>
#include <kernel_structs.h>

View file

@ -4,7 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define _ASMLANGUAGE
#include <arch/nios2/asm.h>
#include <kernel_structs.h>
#include <offsets_short.h>

View file

@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define _ASMLANGUAGE
#include <arch/cpu.h>
#include <kernel_structs.h>
#include <offsets_short.h>

View file

@ -6,8 +6,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define _ASMLANGUAGE
#include <toolchain.h>
#include <sections.h>
#include <arch/cpu.h>

View file

@ -4,7 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define _ASMLANGUAGE
#include <arch/nios2/asm.h>
#include <kernel_structs.h>
#include <offsets_short.h>

View file

@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define _ASMLANGUAGE
#include <toolchain.h>
#include <sections.h>
#include <kernel_structs.h>

View file

@ -4,7 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define _ASMLANGUAGE
#include <kernel_structs.h>
/* exports */

View file

@ -6,8 +6,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define _ASMLANGUAGE
#include <toolchain.h>
#include <sections.h>
#include <arch/cpu.h>

View file

@ -4,7 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define _ASMLANGUAGE
#include <irq.h>
#include <kernel_structs.h>
#include <offsets_short.h>

View file

@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define _ASMLANGUAGE
#include <kernel_structs.h>
#include <offsets.h>
#include <toolchain.h>

View file

@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define _ASMLANGUAGE
#include <toolchain.h>
/* imports */

View file

@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define _ASMLANGUAGE
#include <kernel_structs.h>
#include <offsets.h>
#include <toolchain.h>

View file

@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define _ASMLANGUAGE
#include <toolchain.h>
/* imports */

View file

@ -10,7 +10,6 @@
* This module contains functions for manipulating caches.
*/
#define _ASMLANGUAGE
#include <arch/x86/asm.h>
#ifndef CONFIG_CLFLUSH_INSTRUCTION_SUPPORTED

View file

@ -11,8 +11,6 @@
* after having been loaded into RAM.
*/
#define _ASMLANGUAGE
#include <arch/x86/asm.h>
/* exports (private APIs) */

View file

@ -14,8 +14,6 @@
* and exiting a C exception handler.
*/
#define _ASMLANGUAGE
#include <kernel_structs.h>
#include <arch/x86/asm.h>
#include <arch/x86/arch.h> /* For MK_ISR_NAME */

View file

@ -14,8 +14,6 @@
* entering and exiting a C interrupt handler.
*/
#define _ASMLANGUAGE
#include <kernel_structs.h>
#include <arch/x86/asm.h>
#include <offsets_short.h>

View file

@ -17,8 +17,6 @@
* save frame on the stack.
*/
#define _ASMLANGUAGE
#include <kernel_structs.h>
#include <arch/x86/asm.h>
#include <offsets_short.h>

View file

@ -11,8 +11,6 @@
* utilities.
*/
#define _ASMLANGUAGE
#include <arch/x86/asm.h>
/* exports (internal APIs) */

View file

@ -4,8 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
#define _ASMLANGUAGE
#include <arch/x86/asm.h>
#ifdef CONFIG_SYS_POWER_DEEP_SLEEP

View file

@ -9,8 +9,6 @@
* @brief LOAPIC spurioys interrupt handler
*/
#define _ASMLANGUAGE
#include <kernel_structs.h>
#include <arch/x86/asm.h>

View file

@ -9,7 +9,6 @@
* @ brief architecture specific support for the mem_probe tests
*/
#define _ASMLANGUAGE
#include <arch/x86/asm.h>
GDATA(foo)

View file

@ -12,8 +12,6 @@ This module implements assembler exception and interrupt stubs for regression
testing.
*/
#define _ASMLANGUAGE
#ifdef CONFIG_ISA_IA32
/* IA-32 specific */

View file

@ -12,8 +12,6 @@ This module implements assembler exception and interrupt stubs for regression
testing.
*/
#define _ASMLANGUAGE
#ifdef CONFIG_ISA_IA32
/* IA-32 specific */