提交 66eddbfc 编写于 作者: L Linus Torvalds

Merge git://git.kernel.org/pub/scm/linux/kernel/git/czankel/xtensa-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/czankel/xtensa-2.6:
  xtensa: Disable PCI and nfsroot on simulation target
  xtensa: Add missing include in coprocessor.h
  xtensa: Fix the network driver for the simulator target
  xtensa: Shuffle include statements to fix linker script
  xtensa: Add -mforce-no-pic option is supported
  xtensa: Fixes due to bss boundary symbol name changes.
  xtensa: Fix linker script patch-up
  xtensa: Fix FLUSH_DCACHE macro for some variants.
...@@ -35,6 +35,8 @@ KBUILD_CFLAGS += -ffreestanding ...@@ -35,6 +35,8 @@ KBUILD_CFLAGS += -ffreestanding
KBUILD_CFLAGS += -pipe -mlongcalls KBUILD_CFLAGS += -pipe -mlongcalls
KBUILD_CFLAGS += $(call cc-option,-mforce-no-pic,)
vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y)) vardirs := $(patsubst %,arch/xtensa/variants/%/,$(variant-y))
plfdirs := $(patsubst %,arch/xtensa/platforms/%/,$(platform-y)) plfdirs := $(patsubst %,arch/xtensa/platforms/%/,$(platform-y))
......
此差异已折叠。
...@@ -115,6 +115,7 @@ extern void flush_cache_page(struct vm_area_struct*, unsigned long, unsigned lon ...@@ -115,6 +115,7 @@ extern void flush_cache_page(struct vm_area_struct*, unsigned long, unsigned lon
#define flush_cache_vmap(start,end) do { } while (0) #define flush_cache_vmap(start,end) do { } while (0)
#define flush_cache_vunmap(start,end) do { } while (0) #define flush_cache_vunmap(start,end) do { } while (0)
#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 0
#define flush_dcache_page(page) do { } while (0) #define flush_dcache_page(page) do { } while (0)
#define flush_cache_page(vma,addr,pfn) do { } while (0) #define flush_cache_page(vma,addr,pfn) do { } while (0)
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#define _XTENSA_COPROCESSOR_H #define _XTENSA_COPROCESSOR_H
#include <linux/stringify.h> #include <linux/stringify.h>
#include <variant/core.h>
#include <variant/tie.h> #include <variant/tie.h>
#include <asm/types.h> #include <asm/types.h>
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#define _XTENSA_ELF_H #define _XTENSA_ELF_H
#include <asm/ptrace.h> #include <asm/ptrace.h>
#include <asm/coprocessor.h>
/* Xtensa processor ELF architecture-magic number */ /* Xtensa processor ELF architecture-magic number */
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <linux/highmem.h> #include <linux/highmem.h>
#include <linux/slab.h>
/* /*
* Allocating and freeing a pmd is trivial: the 1-entry pmd is * Allocating and freeing a pmd is trivial: the 1-entry pmd is
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#define _XTENSA_PROCESSOR_H #define _XTENSA_PROCESSOR_H
#include <variant/core.h> #include <variant/core.h>
#include <asm/coprocessor.h>
#include <platform/hardware.h> #include <platform/hardware.h>
#include <linux/compiler.h> #include <linux/compiler.h>
......
...@@ -77,6 +77,8 @@ ...@@ -77,6 +77,8 @@
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <asm/coprocessor.h>
/* /*
* This struct defines the way the registers are stored on the * This struct defines the way the registers are stored on the
* kernel stack during a system call or other kernel entry. * kernel stack during a system call or other kernel entry.
......
...@@ -23,8 +23,8 @@ obj-$(CONFIG_MODULES) += xtensa_ksyms.o module.o ...@@ -23,8 +23,8 @@ obj-$(CONFIG_MODULES) += xtensa_ksyms.o module.o
# #
# Replicate rules in scripts/Makefile.build # Replicate rules in scripts/Makefile.build
sed-y = -e 's/(\(\.[a-z]*it\|\.ref\|\)\.text)/(\1.literal \1.text)/g' \ sed-y = -e 's/\*(\(\.[a-z]*it\|\.ref\|\)\.text)/*(\1.literal \1.text)/g' \
-e 's/(\(\.text\.[a-z]*\))/(\1.literal \1)/g' -e 's/\*(\(\.text\.[a-z]*\))/*(\1.literal \1)/g'
quiet_cmd__cpp_lds_S = LDS $@ quiet_cmd__cpp_lds_S = LDS $@
cmd__cpp_lds_S = $(CPP) $(cpp_flags) -P -C -Uxtensa -D__ASSEMBLY__ $< \ cmd__cpp_lds_S = $(CPP) $(cpp_flags) -P -C -Uxtensa -D__ASSEMBLY__ $< \
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
*/ */
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/coprocessor.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/stddef.h> #include <linux/stddef.h>
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include <linux/linkage.h> #include <linux/linkage.h>
#include <asm/asm-offsets.h> #include <asm/asm-offsets.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/coprocessor.h>
#include <asm/thread_info.h> #include <asm/thread_info.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/unistd.h> #include <asm/unistd.h>
......
...@@ -184,8 +184,8 @@ _startup: ...@@ -184,8 +184,8 @@ _startup:
* Now clear the BSS segment. * Now clear the BSS segment.
*/ */
movi a2, _bss_start # start of BSS movi a2, __bss_start # start of BSS
movi a3, _bss_end # end of BSS movi a3, __bss_stop # end of BSS
__loopt a2, a3, a4, 2 __loopt a2, a3, a4, 2
s32i a0, a2, 0 s32i a0, a2, 0
......
...@@ -623,6 +623,19 @@ static struct platform_driver iss_net_driver = { ...@@ -623,6 +623,19 @@ static struct platform_driver iss_net_driver = {
static int driver_registered; static int driver_registered;
static const struct net_device_ops iss_netdev_ops = {
.ndo_open = iss_net_open,
.ndo_stop = iss_net_close,
.ndo_get_stats = iss_net_get_stats,
.ndo_start_xmit = iss_net_start_xmit,
.ndo_validate_addr = eth_validate_addr,
.ndo_change_mtu = iss_net_change_mtu,
.ndo_set_mac_address = iss_net_set_mac,
//.ndo_do_ioctl = iss_net_ioctl,
.ndo_tx_timeout = iss_net_tx_timeout,
.ndo_set_multicast_list = iss_net_set_multicast_list,
};
static int iss_net_configure(int index, char *init) static int iss_net_configure(int index, char *init)
{ {
struct net_device *dev; struct net_device *dev;
...@@ -686,15 +699,8 @@ static int iss_net_configure(int index, char *init) ...@@ -686,15 +699,8 @@ static int iss_net_configure(int index, char *init)
*/ */
snprintf(dev->name, sizeof dev->name, "eth%d", index); snprintf(dev->name, sizeof dev->name, "eth%d", index);
dev->netdev_ops = &iss_netdev_ops;
dev->mtu = lp->mtu; dev->mtu = lp->mtu;
dev->open = iss_net_open;
dev->hard_start_xmit = iss_net_start_xmit;
dev->stop = iss_net_close;
dev->get_stats = iss_net_get_stats;
dev->set_multicast_list = iss_net_set_multicast_list;
dev->tx_timeout = iss_net_tx_timeout;
dev->set_mac_address = iss_net_set_mac;
dev->change_mtu = iss_net_change_mtu;
dev->watchdog_timeo = (HZ >> 1); dev->watchdog_timeo = (HZ >> 1);
dev->irq = -1; dev->irq = -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册