-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
---
arch/mips/cpu/mips64/Makefile | 45 +++
arch/mips/cpu/mips64/cache.S | 229
Prepare for upcoming mips64 support. This patch add mips64 address
support.
Signed-off-by: Zhizhou Zhang
---
arch/mips/include/asm/addrspace.h |2 +-
arch/mips/include/asm/io.h | 16
arch/mips/include/asm/posix_types.h |6 ++
3 files changed, 23
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
---
board/qemu-mips/config.mk | 10 --
include/configs/qemu-mips.h |1 +
2 files changed, 1 insertion(+), 10 deletions(-)
delete mode 1
Replace camel-case style with upper-case style globally.
Signed-off-by: Zhizhou Zhang
---
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 +-
arch/mips/include
x27;s too complicate.
Zhizhou 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
-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
---
arch/mips/cpu/mips64/Makefile | 45 +++
arch/mips/cpu/mips64/cache.S | 229
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
---
board/qemu-mips/config.mk | 10 --
include/configs/qemu-mips.h |1 +
2 files changed, 1 insertion(+), 10 deletions(-)
delete mode 1
Replace camel-case style with upper-case style globally.
Signed-off-by: Zhizhou Zhang
---
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 +-
arch/mips/include
Prepare for upcoming mips64 support. This patch add mips64 address
space support.
Signed-off-by: Zhizhou Zhang
---
arch/mips/include/asm/addrspace.h |2 +-
arch/mips/include/asm/asm.h |2 +-
arch/mips/include/asm/io.h | 16
arch/mips/include/asm
big-endian 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:
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
---
board/qemu-mips/config.mk | 10 ---
examples/standalone/mips64.lds | 59
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
---
board/qemu-mips/u-boot.lds|8
The most important difference between mips32 and mips64 is the address
space. This patch solve This problem.
Signed-off-by: Zhizhou Zhang
---
arch/mips/include/asm/addrspace.h |2 +-
arch/mips/include/asm/io.h | 16
arch/mips/include/asm/posix_types.h |6
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
---
arch/mips/cpu/mips64/Makefile | 46 +++
arch/mips/cpu/mips64/cache.S | 229 +
arch
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|
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
---
board/qemu-mips/config.mk | 10 ---
examples/standalone/mips64.lds | 59
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
---
board/qemu-mips/u-boot.lds|8
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
---
arch/mips/cpu/mips64/Makefile | 46 +++
arch/mips/cpu/mips64/cache.S | 229 +
arch
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|
The most important difference between mips32 and mips64 is the address
space. This patch solve This problem.
Signed-off-by: Zhizhou Zhang
---
arch/mips/include/asm/addrspace.h |2 +-
arch/mips/include/asm/io.h | 16
arch/mips/include/asm/posix_types.h |6
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
---
Makefile |2 ++
1 file changed, 2 insertions(+)
diff --git a/Makefile b/Makefile
index 5ce5cc3..626d888 100644
--- a/Makefile
+++ b/Makefile
statements.
boards.cfg: add mips64 cpu define.
Signed-off-by: Zhizhou Zhang
---
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
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
---
arch/mips/include
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
---
arch/mips
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
statements.
boards.cfg: add mips64 cpu define.
Signed-off-by: Zhizhou Zhang
---
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
---
Makefile |2 ++
1 file changed, 2 insertions(+)
diff --git a/Makefile b/Makefile
index 5ce5cc3..626d888 100644
--- a/Makefile
+++ b/Makefile
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
---
arch/mips/include
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
---
arch/mips
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
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
---
board/qemu-mips/config.mk |3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/board/qemu-mips/config.mk b/board/qemu-mips/config.mk
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
---
arch/mips/cpu/mips64/cpu.c | 133
1 file changed, 133 insertions(+)
create mode 100644 arch
Signed-off-by: Zhizhou Zhang
---
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 file mode 100644
Signed-off-by: Zhizhou Zhang
---
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
freescale
Signed-off-by: Zhizhou Zhang
---
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/include/asm
Signed-off-by: Zhizhou Zhang
---
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/interrupts.c
new file
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
---
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 file mode 100644
Signed-off-by: Zhizhou Zhang
---
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 file mode 100644
Signed-off-by: Zhizhou Zhang
---
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
freescale
Signed-off-by: Zhizhou Zhang
---
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/include/asm
Signed-off-by: Zhizhou Zhang
---
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
@@ -24,7 +24,11
Signed-off-by: Zhizhou Zhang
---
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/mips/include/asm
Signed-off-by: Zhizhou Zhang
---
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/include/asm/cache.h
Signed-off-by: Zhizhou Zhang
---
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
+++ b/arch/mips
Signed-off-by: Zhizhou Zhang
---
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 100644
index
remove cache init
Signed-off-by: Zhizhou Zhang
---
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/start.S
new file
Signed-off-by: Zhizhou Zhang
---
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/interrupts.c
new file
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
---
arch/mips/cpu/mips64/cpu.c | 133
1 file changed, 133 insertions(+)
create mode 100644 arch
---
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
--- /dev/nu
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
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
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
---
board/qemu-mips/config.mk |3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/board/qemu-mips/config.mk b/board/qemu-mips/config.mk
Signed-off-by: Zhizhou Zhang
---
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 file mode 100644
Signed-off-by: Zhizhou Zhang
---
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 file mode 100644
Signed-off-by: Zhizhou Zhang
---
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
@@ -24,7 +24,11
Signed-off-by: Zhizhou Zhang
---
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/mips/include/asm
Signed-off-by: Zhizhou Zhang
---
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/include/asm/cache.h
Signed-off-by: Zhizhou Zhang
---
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
+++ b/arch/mips
remove cache init
Signed-off-by: Zhizhou Zhang
---
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/start.S
new file
Signed-off-by: Zhizhou Zhang
---
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 100644
index
---
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
--- /dev/nu
Signed-off-by: Zhizhou Zhang
---
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 file mode 100644
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
64 matches
Mail list logo