Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
66630f71
Commit
66630f71
authored
Aug 03, 2010
by
Chris Zankel
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote branch 'origin/master'
parents
9fe6206f
ecd53497
Changes
13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
513 additions
and
259 deletions
+513
-259
arch/xtensa/Makefile
arch/xtensa/Makefile
+2
-0
arch/xtensa/configs/iss_defconfig
arch/xtensa/configs/iss_defconfig
+485
-246
arch/xtensa/include/asm/cacheflush.h
arch/xtensa/include/asm/cacheflush.h
+1
-0
arch/xtensa/include/asm/coprocessor.h
arch/xtensa/include/asm/coprocessor.h
+1
-0
arch/xtensa/include/asm/elf.h
arch/xtensa/include/asm/elf.h
+1
-0
arch/xtensa/include/asm/pgalloc.h
arch/xtensa/include/asm/pgalloc.h
+1
-0
arch/xtensa/include/asm/processor.h
arch/xtensa/include/asm/processor.h
+0
-1
arch/xtensa/include/asm/ptrace.h
arch/xtensa/include/asm/ptrace.h
+2
-0
arch/xtensa/kernel/Makefile
arch/xtensa/kernel/Makefile
+2
-2
arch/xtensa/kernel/asm-offsets.c
arch/xtensa/kernel/asm-offsets.c
+1
-0
arch/xtensa/kernel/entry.S
arch/xtensa/kernel/entry.S
+1
-0
arch/xtensa/kernel/head.S
arch/xtensa/kernel/head.S
+2
-2
arch/xtensa/platforms/iss/network.c
arch/xtensa/platforms/iss/network.c
+14
-8
No files found.
arch/xtensa/Makefile
View file @
66630f71
...
@@ -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
))
...
...
arch/xtensa/configs/iss_defconfig
View file @
66630f71
This diff is collapsed.
Click to expand it.
arch/xtensa/include/asm/cacheflush.h
View file @
66630f71
...
@@ -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)
...
...
arch/xtensa/include/asm/coprocessor.h
View file @
66630f71
...
@@ -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>
...
...
arch/xtensa/include/asm/elf.h
View file @
66630f71
...
@@ -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 */
...
...
arch/xtensa/include/asm/pgalloc.h
View file @
66630f71
...
@@ -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
...
...
arch/xtensa/include/asm/processor.h
View file @
66630f71
...
@@ -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>
...
...
arch/xtensa/include/asm/ptrace.h
View file @
66630f71
...
@@ -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.
...
...
arch/xtensa/kernel/Makefile
View file @
66630f71
...
@@ -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__
$<
\
...
...
arch/xtensa/kernel/asm-offsets.c
View file @
66630f71
...
@@ -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>
...
...
arch/xtensa/kernel/entry.S
View file @
66630f71
...
@@ -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>
...
...
arch/xtensa/kernel/head.S
View file @
66630f71
...
@@ -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
...
...
arch/xtensa/platforms/iss/network.c
View file @
66630f71
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment