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:
parent
ed240f2796
commit
ee659ae1a1
46 changed files with 1 additions and 84 deletions
2
Makefile
2
Makefile
|
@ -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)
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
* where they are not supported on ARC EM family processors.
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <toolchain.h>
|
||||
#include <sections.h>
|
||||
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
* CPU power management routines.
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <kernel_structs.h>
|
||||
#include <offsets_short.h>
|
||||
#include <toolchain.h>
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
* See isr_wrapper.S for details.
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <kernel_structs.h>
|
||||
#include <offsets_short.h>
|
||||
#include <toolchain.h>
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
* Fault handlers for ARCv2 processors.
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <toolchain.h>
|
||||
#include <sections.h>
|
||||
#include <arch/cpu.h>
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
* a parameter.
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <offsets_short.h>
|
||||
#include <toolchain.h>
|
||||
#include <sections.h>
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
* See isr_wrapper.S for details.
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <kernel_structs.h>
|
||||
#include <offsets_short.h>
|
||||
#include <toolchain.h>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <toolchain.h>
|
||||
#include <sections.h>
|
||||
#include <arch/cpu.h>
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
* See isr_wrapper.S for details.
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <kernel_structs.h>
|
||||
#include <offsets_short.h>
|
||||
#include <toolchain.h>
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
* Wrapper for _thread_entry routine when called from the initial context.
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <toolchain.h>
|
||||
#include <sections.h>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
* rebooting might trigger the exact same problem over and over.
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <toolchain.h>
|
||||
#include <sections.h>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
* Software ISR table for ARM
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <toolchain.h>
|
||||
#include <sections.h>
|
||||
#include <arch/cpu.h>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <offsets_short.h>
|
||||
#include <toolchain.h>
|
||||
#include <sections.h>
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
* wrapped around by _isr_wrapper()).
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <kernel_structs.h>
|
||||
#include <offsets_short.h>
|
||||
#include <toolchain.h>
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
* Fault handlers for ARM Cortex-M processors.
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <toolchain.h>
|
||||
#include <sections.h>
|
||||
#include <arch/cpu.h>
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
* a parameter.
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <offsets_short.h>
|
||||
#include <toolchain.h>
|
||||
#include <sections.h>
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
* on ARM Cortex-M3/M4 CPUs.
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <kernel_structs.h>
|
||||
#include <offsets_short.h>
|
||||
#include <toolchain.h>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
#include <arch/nios2/asm.h>
|
||||
#include <kernel_structs.h>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <arch/cpu.h>
|
||||
#include <kernel_structs.h>
|
||||
#include <offsets_short.h>
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <toolchain.h>
|
||||
#include <sections.h>
|
||||
#include <arch/cpu.h>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <toolchain.h>
|
||||
#include <sections.h>
|
||||
#include <kernel_structs.h>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
#include <kernel_structs.h>
|
||||
|
||||
/* exports */
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <toolchain.h>
|
||||
#include <sections.h>
|
||||
#include <arch/cpu.h>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
#include <irq.h>
|
||||
#include <kernel_structs.h>
|
||||
#include <offsets_short.h>
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <kernel_structs.h>
|
||||
#include <offsets.h>
|
||||
#include <toolchain.h>
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <toolchain.h>
|
||||
|
||||
/* imports */
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <kernel_structs.h>
|
||||
#include <offsets.h>
|
||||
#include <toolchain.h>
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <toolchain.h>
|
||||
|
||||
/* imports */
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
* This module contains functions for manipulating caches.
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
#include <arch/x86/asm.h>
|
||||
|
||||
#ifndef CONFIG_CLFLUSH_INSTRUCTION_SUPPORTED
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
* after having been loaded into RAM.
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <arch/x86/asm.h>
|
||||
|
||||
/* exports (private APIs) */
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -17,8 +17,6 @@
|
|||
* save frame on the stack.
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <kernel_structs.h>
|
||||
#include <arch/x86/asm.h>
|
||||
#include <offsets_short.h>
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
* utilities.
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <arch/x86/asm.h>
|
||||
|
||||
/* exports (internal APIs) */
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <arch/x86/asm.h>
|
||||
|
||||
#ifdef CONFIG_SYS_POWER_DEEP_SLEEP
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
* @brief LOAPIC spurioys interrupt handler
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#include <kernel_structs.h>
|
||||
#include <arch/x86/asm.h>
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
* @ brief architecture specific support for the mem_probe tests
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
#include <arch/x86/asm.h>
|
||||
|
||||
GDATA(foo)
|
||||
|
|
|
@ -12,8 +12,6 @@ This module implements assembler exception and interrupt stubs for regression
|
|||
testing.
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#ifdef CONFIG_ISA_IA32
|
||||
|
||||
/* IA-32 specific */
|
||||
|
|
|
@ -12,8 +12,6 @@ This module implements assembler exception and interrupt stubs for regression
|
|||
testing.
|
||||
*/
|
||||
|
||||
#define _ASMLANGUAGE
|
||||
|
||||
#ifdef CONFIG_ISA_IA32
|
||||
|
||||
/* IA-32 specific */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue