Zhang (4):
MIPS: don't use camel-case style
MIPS: change address related header files
MIPS: remove board/qemu-mips/config.mk
MIPS: add board qemu-mips64 support
Zhizhou Zhang (4):
MIPS: don't use camel-case style
MIPS: change address related header files
MIPS: remove board/qemu-mips
Replace camel-case style with upper-case style globally.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/cpu/mips32/cache.S | 10 ++---
arch/mips/cpu/mips32/cpu.c |8 ++--
arch/mips/cpu/xburst/cpu.c | 12 +++---
arch/mips/cpu/xburst/start.S |4
We define CONFIG_SYS_TEXT_BASE in board's specified header file.
So config.mk is useless, then remove it.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
board/qemu-mips/config.mk | 10 --
include/configs/qemu-mips.h |1 +
2 files changed, 1 insertion(+), 10 deletions
Prepare for upcoming mips64 support. This patch add mips64 address
support.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/include/asm/addrspace.h |2 +-
arch/mips/include/asm/io.h | 16
arch/mips/include/asm/posix_types.h |6 ++
3 files
-system-mips64el -M mips -cpu MIPS64R2-generic -kernel u-boot -nographic
qemu-system-mips64 -M mips -cpu MIPS64R2-generic -kernel u-boot -nographic
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/cpu/mips64/Makefile | 45 +++
arch/mips/cpu/mips64/cache.S | 229
and little-endian support
- Remove cache probe
- Add standalone support for mips64
Changes in V3:
- merge related files into one patch, no longer one file one patch.
- add detailed commit message.
- remove standalone example. it's too complicate.
Zhizhou Zhang (4):
MIPS: Don't use camel
Prepare for upcoming mips64 support. This patch add mips64 address
space support.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/include/asm/addrspace.h |2 +-
arch/mips/include/asm/asm.h |2 +-
arch/mips/include/asm/io.h | 16
arch
Replace camel-case style with upper-case style globally.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/cpu/mips32/cache.S | 10 ++---
arch/mips/cpu/mips32/cpu.c |8 ++--
arch/mips/cpu/xburst/cpu.c | 12 +++---
arch/mips/cpu/xburst/start.S |4
We define CONFIG_SYS_TEXT_BASE in board's specified header file.
So config.mk is useless, then remove it.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
board/qemu-mips/config.mk | 10 --
include/configs/qemu-mips.h |1 +
2 files changed, 1 insertion(+), 10 deletions
-system-mips64el -M mips -cpu MIPS64R2-generic -kernel u-boot -nographic
qemu-system-mips64 -M mips -cpu MIPS64R2-generic -kernel u-boot -nographic
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/cpu/mips64/Makefile | 45 +++
arch/mips/cpu/mips64/cache.S | 229
The most important difference between mips32 and mips64 is the address
space. This patch solve This problem.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/include/asm/addrspace.h |2 +-
arch/mips/include/asm/io.h | 16
arch/mips/include/asm
standalone example. it's too complicate.
Zhizhou Zhang (4):
MIPS: Add support for MIPS64 cpus
MIPS: change related header files
MIPS: add board qemu-mips64 support
MIPS: add mips64 standalone support
arch/mips/cpu/mips64/Makefile | 46 +++
arch/mips/cpu/mips64/cache.S| 229
These files are derived from arch/mips/cpu/mips32/*. The main changes are:
1, changes ABI o32 to n64, 2, add mips64 build cflags.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/cpu/mips64/Makefile | 46 +++
arch/mips/cpu/mips64/cache.S | 229
Both big-endian and little-endian are tested with below commands:
qemu-system-mips64el -M mips -cpu MIPS64R2-generic -kernel u-boot -nographic
qemu-system-mips64 -M mips -cpu MIPS64R2-generic -kernel u-boot -nographic
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
board/qemu-mips/u-boot.lds
Move CONFIG_SYS_TEXT_BASE to the board specified header file. So
change qemu-mips.h also. board/qemu-mips/config.mk is not used, then
remove it.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
board/qemu-mips/config.mk | 10 ---
examples/standalone/mips64.lds | 59
standalone example. it's too complicate.
Zhizhou Zhang (4):
MIPS: Add support for MIPS64 cpus
MIPS: change related header files
MIPS: add board qemu-mips64 support
MIPS: add mips64 standalone support
arch/mips/cpu/mips64/Makefile | 46 +++
arch/mips/cpu/mips64/cache.S| 229
These files are derived from arch/mips/cpu/mips32/*. The main changes are:
1, changes ABI o32 to n64, 2, add mips64 build cflags.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/cpu/mips64/Makefile | 46 +++
arch/mips/cpu/mips64/cache.S | 229
The most important difference between mips32 and mips64 is the address
space. This patch solve This problem.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/include/asm/addrspace.h |2 +-
arch/mips/include/asm/io.h | 16
arch/mips/include/asm
Both big-endian and little-endian are tested with below commands:
qemu-system-mips64el -M mips -cpu MIPS64R2-generic -kernel u-boot -nographic
qemu-system-mips64 -M mips -cpu MIPS64R2-generic -kernel u-boot -nographic
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
board/qemu-mips/u-boot.lds
Move CONFIG_SYS_TEXT_BASE to the board specified header file. So
change qemu-mips.h also. board/qemu-mips/config.mk is not used, then
remove it.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
board/qemu-mips/config.mk | 10 ---
examples/standalone/mips64.lds | 59
This patch add mips64 cpu support.
Changes in V3:
- merge related files into one patch, no longer one file one patch.
- add detailed commit message.
- remove standalone example. it's too complicate.
Zhizhou Zhang (4):
[MIPS] Add support for MIPS64 cpus
[MIPS] add mips64 support in mips
These files are derived from arch/mips/cpu/mips32/*. Howerver some
Changes are made:
*.S: changes ABI o32 to n64
config.mk: add mips64 building cflags
cpu.c: add cache size probe
interrupts.c: implement enable_interrupts and disable_interrupts
Signed-off-by: Zhizhou Zhang etou
The most important difference between mips32 and mips64 is the address
space. changes in addrspace.h and io.h are for this sake. And this patch
add cache discribe struct in cache.h, and make compatible to mips64 of
some types in posix_types.h.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
I think copy mips.lds to mips64.lds with only one line changed is not
good. So I disable it in top Makefile.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
Makefile |2 ++
1 file changed, 2 insertions(+)
diff --git a/Makefile b/Makefile
index 5ce5cc3..626d888 100644
--- a/Makefile
+++ b
statements.
boards.cfg: add mips64 cpu define.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
board/qemu-mips/config.mk | 10 ---
board/qemu-mips/u-boot.lds|8 ++
boards.cfg|1 +
include/configs/qemu-mips.h |3 +
include/configs/qemu-mips64.h | 171
This patch add mips64 cpu support.
Changes in V3:
- merge related files into one patch, no longer one file one patch.
- add detailed commit message.
- remove standalone example. it's too complicate.
Zhizhou Zhang (4):
[MIPS] Add support for MIPS64 cpus
[MIPS] add mips64 support in mips
These files are derived from arch/mips/cpu/mips32/*. Howerver some
Changes are made:
*.S: changes ABI o32 to n64
config.mk: add mips64 building cflags
cpu.c: add cache size probe
interrupts.c: implement enable_interrupts and disable_interrupts
Signed-off-by: Zhizhou Zhang etou
The most important difference between mips32 and mips64 is the address
space. changes in addrspace.h and io.h are for this sake. And this patch
add cache discribe struct in cache.h, and make compatible to mips64 of
some types in posix_types.h.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
statements.
boards.cfg: add mips64 cpu define.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
board/qemu-mips/config.mk | 10 ---
board/qemu-mips/u-boot.lds|8 ++
boards.cfg|1 +
include/configs/qemu-mips.h |3 +
include/configs/qemu-mips64.h | 171
I think copy mips.lds to mips64.lds with only one line changed is not
good. So I disable it in top Makefile.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
Makefile |2 ++
1 file changed, 2 insertions(+)
diff --git a/Makefile b/Makefile
index 5ce5cc3..626d888 100644
--- a/Makefile
+++ b
Daniel Schwierzeck told me to do it with macro, But it seems not
work. For u-boot.lds was genarete by gcc. It's hard to do that
without a lot modify.
---
arch/mips/config.mk |4
1 file changed, 4 insertions(+)
diff --git a/arch/mips/config.mk b/arch/mips/config.mk
index 6ab8acd..56996cc
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/cpu/mips64/config.mk | 39 +++
1 file changed, 39 insertions(+)
create mode 100644 arch/mips/cpu/mips64/config.mk
diff --git a/arch/mips/cpu/mips64/config.mk b/arch/mips/cpu/mips64/config.mk
new
---
arch/mips/cpu/mips64/Makefile | 47 +
1 file changed, 47 insertions(+)
create mode 100644 arch/mips/cpu/mips64/Makefile
diff --git a/arch/mips/cpu/mips64/Makefile b/arch/mips/cpu/mips64/Makefile
new file mode 100644
index 000..335fe88
---
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/cpu/mips64/time.c | 86 +++
1 file changed, 86 insertions(+)
create mode 100644 arch/mips/cpu/mips64/time.c
diff --git a/arch/mips/cpu/mips64/time.c b/arch/mips/cpu/mips64/time.c
new file mode
remove cache init
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/cpu/mips64/start.S | 373 ++
1 file changed, 373 insertions(+)
create mode 100644 arch/mips/cpu/mips64/start.S
diff --git a/arch/mips/cpu/mips64/start.S b/arch/mips/cpu/mips64
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/include/asm/addrspace.h |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/include/asm/addrspace.h
b/arch/mips/include/asm/addrspace.h
index 3a1e6d6..b768bb5 100644
--- a/arch/mips/include/asm/addrspace.h
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/include/asm/cache.h | 11 +++
1 file changed, 11 insertions(+)
diff --git a/arch/mips/include/asm/cache.h b/arch/mips/include/asm/cache.h
index 5406d5d..45e546d 100644
--- a/arch/mips/include/asm/cache.h
+++ b/arch/mips
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/include/asm/io.h | 18 +-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h
index 025012a..1b82c61 100644
--- a/arch/mips/include/asm/io.h
+++ b/arch
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
board/qemu-mips/u-boot.lds |8
1 file changed, 8 insertions(+)
diff --git a/board/qemu-mips/u-boot.lds b/board/qemu-mips/u-boot.lds
index 9460b20..06db68d 100644
--- a/board/qemu-mips/u-boot.lds
+++ b/board/qemu-mips/u-boot.lds
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
examples/standalone/mips64.lds | 59
1 file changed, 59 insertions(+)
create mode 100644 examples/standalone/mips64.lds
diff --git a/examples/standalone/mips64.lds b/examples/standalone/mips64.lds
new
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
include/configs/qemu-mips64.h | 171 +
1 file changed, 171 insertions(+)
create mode 100644 include/configs/qemu-mips64.h
diff --git a/include/configs/qemu-mips64.h b/include/configs/qemu-mips64.h
new
Though I defined CONFIG_SYS_TEXT_BASE in configs/qemu-mips64.h,
but the value is still affected by this file.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
board/qemu-mips/config.mk |3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/board/qemu-mips/config.mk b/board
This patch add mips64 support.
---
Change log for V2:
- move mips64 build flags to cpu/mips64.mk
- add cache size probe
- remove cache.S
Zhizhou Zhang (16):
add mips64 standalone support
add cpu/mips64/Makefile
add cpu/mips64/config.mk
add cpu/mips64/cpu.c
add cpu/mips64
Daniel Schwierzeck told me to do it with macro, But it seems not
work. For u-boot.lds was genarete by gcc. It's hard to do that
without a lot modify.
---
arch/mips/config.mk |4
1 file changed, 4 insertions(+)
diff --git a/arch/mips/config.mk b/arch/mips/config.mk
index 6ab8acd..56996cc
---
arch/mips/cpu/mips64/Makefile | 47 +
1 file changed, 47 insertions(+)
create mode 100644 arch/mips/cpu/mips64/Makefile
diff --git a/arch/mips/cpu/mips64/Makefile b/arch/mips/cpu/mips64/Makefile
new file mode 100644
index 000..335fe88
---
add icache and dcache probe here. but scache was not probed. For
I don't know how to determine it implemented or not.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/cpu/mips64/cpu.c | 133
1 file changed, 133 insertions(+)
create mode
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/cpu/mips64/interrupts.c | 39 +
1 file changed, 39 insertions(+)
create mode 100644 arch/mips/cpu/mips64/interrupts.c
diff --git a/arch/mips/cpu/mips64/interrupts.c
b/arch/mips/cpu/mips64
remove cache init
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/cpu/mips64/start.S | 373 ++
1 file changed, 373 insertions(+)
create mode 100644 arch/mips/cpu/mips64/start.S
diff --git a/arch/mips/cpu/mips64/start.S b/arch/mips/cpu/mips64
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/cpu/mips64/time.c | 86 +++
1 file changed, 86 insertions(+)
create mode 100644 arch/mips/cpu/mips64/time.c
diff --git a/arch/mips/cpu/mips64/time.c b/arch/mips/cpu/mips64/time.c
new file mode
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/include/asm/addrspace.h |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/include/asm/addrspace.h
b/arch/mips/include/asm/addrspace.h
index 3a1e6d6..b768bb5 100644
--- a/arch/mips/include/asm/addrspace.h
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/include/asm/cache.h | 11 +++
1 file changed, 11 insertions(+)
diff --git a/arch/mips/include/asm/cache.h b/arch/mips/include/asm/cache.h
index 5406d5d..45e546d 100644
--- a/arch/mips/include/asm/cache.h
+++ b/arch/mips
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/include/asm/io.h | 18 +-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h
index 025012a..1b82c61 100644
--- a/arch/mips/include/asm/io.h
+++ b/arch
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
board/qemu-mips/u-boot.lds |8
1 file changed, 8 insertions(+)
diff --git a/board/qemu-mips/u-boot.lds b/board/qemu-mips/u-boot.lds
index 9460b20..06db68d 100644
--- a/board/qemu-mips/u-boot.lds
+++ b/board/qemu-mips/u-boot.lds
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/include/asm/posix_types.h | 12 +---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/arch/mips/include/asm/posix_types.h
b/arch/mips/include/asm/posix_types.h
index 879aae2..0da1dde 100644
--- a/arch/mips
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
boards.cfg |1 +
1 file changed, 1 insertion(+)
diff --git a/boards.cfg b/boards.cfg
index fdb84ad..a6806b8 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -379,6 +379,7 @@ M5485GFE m68kmcf547x_8x m548xevb
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
examples/standalone/mips64.lds | 59
1 file changed, 59 insertions(+)
create mode 100644 examples/standalone/mips64.lds
diff --git a/examples/standalone/mips64.lds b/examples/standalone/mips64.lds
new
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
include/configs/qemu-mips64.h | 171 +
1 file changed, 171 insertions(+)
create mode 100644 include/configs/qemu-mips64.h
diff --git a/include/configs/qemu-mips64.h b/include/configs/qemu-mips64.h
new
This patch add mips64 support.
---
Change log for V2:
- move mips64 build flags to cpu/mips64.mk
- add cache size probe
- remove cache.S
Zhizhou Zhang (16):
add mips64 standalone support
add cpu/mips64/Makefile
add cpu/mips64/config.mk
add cpu/mips64/cpu.c
add cpu/mips64
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/cpu/mips64/interrupts.c | 39 +
1 file changed, 39 insertions(+)
create mode 100644 arch/mips/cpu/mips64/interrupts.c
diff --git a/arch/mips/cpu/mips64/interrupts.c
b/arch/mips/cpu/mips64
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/include/asm/posix_types.h | 12 +---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/arch/mips/include/asm/posix_types.h
b/arch/mips/include/asm/posix_types.h
index 879aae2..0da1dde 100644
--- a/arch/mips
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
boards.cfg |1 +
1 file changed, 1 insertion(+)
diff --git a/boards.cfg b/boards.cfg
index fdb84ad..a6806b8 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -379,6 +379,7 @@ M5485GFE m68kmcf547x_8x m548xevb
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/cpu/mips64/config.mk | 39 +++
1 file changed, 39 insertions(+)
create mode 100644 arch/mips/cpu/mips64/config.mk
diff --git a/arch/mips/cpu/mips64/config.mk b/arch/mips/cpu/mips64/config.mk
new
add icache and dcache probe here. but scache was not probed. For
I don't know how to determine it implemented or not.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
arch/mips/cpu/mips64/cpu.c | 133
1 file changed, 133 insertions(+)
create mode
Though I defined CONFIG_SYS_TEXT_BASE in configs/qemu-mips64.h,
but the value is still affected by this file.
Signed-off-by: Zhizhou Zhang etou...@gmail.com
---
board/qemu-mips/config.mk |3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/board/qemu-mips/config.mk b/board
64 matches
Mail list logo