Commit 367b8112 authored by Chris Zankel's avatar Chris Zankel

xtensa: move headers files to arch/xtensa/include

Move all header files for xtensa to arch/xtensa/include and platform and
variant header files to the appropriate arch/xtensa/platforms/ and
arch/xtensa/variants/ directories.

Moving the files gets also rid of all uses of symlinks in the Makefile.

This has been completed already for the majority of the architectures
and xtensa is one out of six missing.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarChris Zankel <chris@zankel.net>
parent 206ead28
......@@ -33,6 +33,15 @@ KBUILD_CFLAGS += -ffreestanding
KBUILD_CFLAGS += -pipe -mlongcalls
vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y))
plfdirs := $(patsubst %,arch/xtensa/platforms/%/,$(platform-y))
ifeq ($(KBUILD_SRC),)
KBUILD_CPPFLAGS += $(patsubst %,-I%include,$(vardirs) $(plfdirs))
else
KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(vardirs) $(plfdirs))
endif
KBUILD_DEFCONFIG := iss_defconfig
# ramdisk/initrd support
......@@ -66,21 +75,6 @@ libs-y += arch/xtensa/lib/ $(LIBGCC)
boot := arch/xtensa/boot
archinc := include/asm-xtensa
archprepare: $(archinc)/.platform
# Update processor variant and platform symlinks if something which affects
# them changed.
$(archinc)/.platform: $(wildcard include/config/arch/*.h) include/config/auto.conf
@echo ' SYMLINK $(archinc)/variant -> $(archinc)/variant-$(VARIANT)'
$(Q)mkdir -p $(archinc)
$(Q)ln -fsn $(srctree)/$(archinc)/variant-$(VARIANT) $(archinc)/variant
@echo ' SYMLINK $(archinc)/platform -> $(archinc)/platform-$(PLATFORM)'
$(Q)ln -fsn $(srctree)/$(archinc)/platform-$(PLATFORM) $(archinc)/platform
@touch $@
all: zImage
......@@ -89,10 +83,6 @@ bzImage : zImage
zImage zImage.initrd: vmlinux
$(Q)$(MAKE) $(build)=$(boot) $@
CLEAN_FILES += arch/xtensa/vmlinux.lds \
$(archinc)/platform $(archinc)/variant \
$(archinc)/.platform
define archhelp
@echo '* zImage - Compressed kernel image (arch/xtensa/boot/images/zImage.*)'
endef
......
#include <asm/variant/core.h>
#include <variant/core.h>
OUTPUT_ARCH(xtensa)
ENTRY(_ResetVector)
......
#include <asm/variant/core.h>
#include <variant/core.h>
#include <asm/regs.h>
#include <asm/asmmacro.h>
#include <asm/cacheasm.h>
......
......@@ -11,7 +11,7 @@
#ifndef _XTENSA_ASMMACRO_H
#define _XTENSA_ASMMACRO_H
#include <asm/variant/core.h>
#include <variant/core.h>
/*
* Some little helpers for loops. Use zero-overhead-loops
......
......@@ -11,7 +11,7 @@
#ifndef _XTENSA_CACHE_H
#define _XTENSA_CACHE_H
#include <asm/variant/core.h>
#include <variant/core.h>
#define L1_CACHE_SHIFT XCHAL_DCACHE_LINEWIDTH
#define L1_CACHE_BYTES XCHAL_DCACHE_LINESIZE
......
......@@ -12,7 +12,7 @@
#define _XTENSA_CHECKSUM_H
#include <linux/in6.h>
#include <asm/variant/core.h>
#include <variant/core.h>
/*
* computes the checksum of a memory block at buff, length len,
......
......@@ -13,11 +13,11 @@
#define _XTENSA_COPROCESSOR_H
#include <linux/stringify.h>
#include <asm/variant/tie.h>
#include <variant/tie.h>
#include <asm/types.h>
#ifdef __ASSEMBLY__
# include <asm/variant/tie-asm.h>
# include <variant/tie-asm.h>
.macro xchal_sa_start a b
.set .Lxchal_pofs_, 0
......
......@@ -11,8 +11,8 @@
#ifndef _XTENSA_IRQ_H
#define _XTENSA_IRQ_H
#include <asm/platform/hardware.h>
#include <asm/variant/core.h>
#include <platform/hardware.h>
#include <variant/core.h>
#ifndef PLATFORM_NR_IRQS
# define PLATFORM_NR_IRQS 0
......
/*
* include/asm-xtensa/platform.h
*
* Platform specific functions
*
* This file is subject to the terms and conditions of the GNU General
......
......@@ -11,7 +11,7 @@
#ifndef _XTENSA_PROCESSOR_H
#define _XTENSA_PROCESSOR_H
#include <asm/variant/core.h>
#include <variant/core.h>
#include <asm/coprocessor.h>
#include <linux/compiler.h>
......
......@@ -111,7 +111,7 @@ struct pt_regs {
unsigned long areg[16]; /* 128 (64) */
};
#include <asm/variant/core.h>
#include <variant/core.h>
# define task_pt_regs(tsk) ((struct pt_regs*) \
(task_stack_page(tsk) + KERNEL_STACK_SIZE - (XCHAL_NUM_AREGS-16)*4) - 1)
......
......@@ -13,6 +13,6 @@
#ifndef _XTENSA_SERIAL_H
#define _XTENSA_SERIAL_H
#include <asm/platform/serial.h>
#include <platform/serial.h>
#endif /* _XTENSA_SERIAL_H */
......@@ -25,7 +25,7 @@
#include <asm/page.h>
#include <asm/signal.h>
#include <asm/tlbflush.h>
#include <asm/variant/tie-asm.h>
#include <variant/tie-asm.h>
/* Unimplemented features. */
......
......@@ -16,7 +16,7 @@
#include <asm-generic/vmlinux.lds.h>
#include <asm/variant/core.h>
#include <variant/core.h>
OUTPUT_ARCH(xtensa)
ENTRY(_start)
......
......@@ -16,7 +16,7 @@
#include <asm/errno.h>
#include <linux/linkage.h>
#include <asm/variant/core.h>
#include <variant/core.h>
/*
* computes a partial checksum, e.g. for TCP/UDP fragments
......
......@@ -9,7 +9,7 @@
* Copyright (C) 2002 - 2005 Tensilica Inc.
*/
#include <asm/variant/core.h>
#include <variant/core.h>
.macro src_b r, w0, w1
#ifdef __XTENSA_EB__
......
......@@ -11,7 +11,7 @@
* Copyright (C) 2002 Tensilica Inc.
*/
#include <asm/variant/core.h>
#include <variant/core.h>
/*
* void *memset(void *dst, int c, size_t length)
......
......@@ -11,7 +11,7 @@
* Copyright (C) 2002 Tensilica Inc.
*/
#include <asm/variant/core.h>
#include <variant/core.h>
#include <linux/errno.h>
/* Load or store instructions that may cause exceptions use the EX macro. */
......
......@@ -11,7 +11,7 @@
* Copyright (C) 2002 Tensilica Inc.
*/
#include <asm/variant/core.h>
#include <variant/core.h>
/* Load or store instructions that may cause exceptions use the EX macro. */
......
......@@ -53,7 +53,7 @@
* a11/ original length
*/
#include <asm/variant/core.h>
#include <variant/core.h>
#ifdef __XTENSA_EB__
#define ALIGN(R, W0, W1) src R, W0, W1
......
......@@ -24,7 +24,7 @@
#include <asm/uaccess.h>
#include <asm/irq.h>
#include <asm/platform/simcall.h>
#include <platform/platform-iss/simcall.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
......
......@@ -3,7 +3,7 @@
#if 0
#include <asm/io.h>
#include <xtensa/simcall.h>
#include <platform/platform-iss/simcall.h>
extern int __simc ();
......
......@@ -33,7 +33,7 @@
#include <linux/rtnetlink.h>
#include <linux/platform_device.h>
#include <asm/platform/simcall.h>
#include <platform/platform-iss/simcall.h>
#define DRIVER_NAME "iss-netdev"
#define ETH_MAX_PACKET 1500
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment