On Wed, Nov 28, 2012 at 02:33:10PM +0100, Daniel Schwierzeck wrote:
> 2012/11/26 Zhi-zhou Zhang :
> > On Sun, Nov 25, 2012 at 09:30:54PM +0100, Daniel Schwierzeck wrote:
> >> 2012/11/24 Zhi-zhou Zhang :
> >> > If bal is 8 bytes aligned, the _gp will not be 8
On Sun, Nov 25, 2012 at 09:30:54PM +0100, Daniel Schwierzeck wrote:
> 2012/11/24 Zhi-zhou Zhang :
> > If bal is 8 bytes aligned, the _gp will not be 8 bytes aligned.
> > then the following ld insntrustion generates a Adel exception.
> > So here make _gp be always aligned i
Because timestamp is declared as `static', we needn't initialize
it by writing it a zero. If we do it before relocate_code, we
will write into a flash address(0xbfc0).
Signed-off-by: Zhi-zhou Zhang
---
arch/mips/cpu/mips32/time.c |1 -
arch/mips/cpu/mips64/time.c |
If bal is 8 bytes aligned, the _gp will not be 8 bytes aligned.
then the following ld insntrustion generates a Adel exception.
So here make _gp be always aligned in 8 bytes.
Signed-off-by: Zhi-zhou Zhang
---
arch/mips/cpu/mips64/start.S |5 -
1 file changed, 4 insertions(+), 1 deletion
On Mon, Oct 1, 2012 at 7:06 PM, Daniel Schwierzeck
wrote:
> Hi Zhi-zhou,
>
> 2012/9/29 Zhi-zhou Zhang :
>> fix warnings when building mips64, we define CONFIG_MIPS64 in config file.
>> And this macro decides size_t.
>> hashtable.c: In function 'hexport_r':
signed int' [-Wformat]
hashtable.c: In function 'himport_r':
hashtable.c:654:3: warning: format '%zu' expects argument of type 'size_t', but
argument 2 has type 'unsigned int' [-Wformat]
Signed-off-by: Zhi-zhou Zhang
---
include/linux/types.h |
signed int' [-Wformat]
hashtable.c: In function 'himport_r':
hashtable.c:654:3: warning: format '%zu' expects argument of type 'size_t', but
argument 2 has type 'unsigned int' [-Wformat]
Signed-off-by: Zhi-zhou Zhang
---
include/linux/types.h |
On Wed, Sep 5, 2012 at 7:12 AM, Daniel Schwierzeck <
daniel.schwierz...@gmail.com> wrote:
> 2012/9/4 Zhizhou Zhang :
> > Both big-endian and little-endian are tested with below commands:
> > Rom version: (Default, Now we config it as rom version)
> > qemu-system-mips64el -M mips -bios u-boot.bin -
On Wed, Sep 5, 2012 at 6:25 AM, Daniel Schwierzeck <
daniel.schwierz...@gmail.com> wrote:
> 2012/9/4 Zhizhou Zhang :
> > Prepare for upcoming mips64 support. This patch add mips64 address
> > space support.
> >
> > Signed-off-by: Zhizhou Zhang
> > ---
> > arch/mips/include/asm/addrspace.h |
Dear Wolfgang Denk,
On Sat, Sep 1, 2012 at 8:42 PM, Wolfgang Denk wrote:
> Dear Zhizhou Zhang,
>
> In message <1346071750-6634-7-git-send-email-etou...@gmail.com> you wrote:
> > These files are derived from arch/mips/cpu/mips32/*. The main changes
> are:
> > 1, changes ABI o32 to n64, 2, add mip
Dear Wolfgang Denk,
On Sat, Sep 1, 2012 at 8:48 PM, Wolfgang Denk wrote:
> Dear Zhizhou Zhang,
>
> In message <1346071750-6634-10-git-send-email-etou...@gmail.com> you
> wrote:
> > Move CONFIG_SYS_TEXT_BASE to the board specified header file. So
> > change qemu-mips.h also. board/qemu-mips/confi
On Fri, Aug 24, 2012 at 8:23 AM, Daniel Schwierzeck <
daniel.schwierz...@gmail.com> wrote:
> 2012/8/20 Zhizhou Zhang :
> > 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
>
>
> with current master branch in git://git.denx.de/u-boot-mips.git you can
> drop the
> endianess flags which are now handled in arch/mips/config.mk
>
> Ok, I have done what you ask for. But I didn't find where does
CONFIG_SYS_LITTLE_ENDIAN or CONFIG_SYS_BIG_ENDIAN define.
Could you tell where s
r supported by U-Boot MIPS tree!
> > +#
> > +MIPSFLAGS = -march=mips64
> > +
> > +ENDIANNESS = -EL
> > +
> > +MIPSFLAGS += $(ENDIANNESS)
>
> with current master branch in git://git.denx.de/u-boot-mips.git you can
> drop the
> endianess flags which are
On Thu, Aug 23, 2012 at 11:04 AM, Mike Frysinger wrote:
> On Monday 20 August 2012 10:22:22 Zhizhou Zhang wrote:
> > 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
On Thu, Aug 23, 2012 at 11:07 AM, Mike Frysinger wrote:
> On Monday 20 August 2012 10:22:23 Zhizhou Zhang wrote:
> > +void __weak _machine_restart(void)
> > +{
> > +}
>
> this should be:
> void __noreturn __weak _machine_restart(void)
> {
> while (1);
> }
>
> there should also be a protot
On 8/18/12, Mike Frysinger wrote:
> On Saturday 18 August 2012 08:22:51 Zhi-zhou Zhang wrote:
>> On Sat, Aug 18, 2012 at 3:31 AM, Mike Frysinger wrote:
>> > On Friday 17 August 2012 11:30:44 Zhizhou Zhang wrote:
>> > > --- a/arch/mips/config.mk
>> > > +++
On 8/18/12, Mike Frysinger wrote:
> On Saturday 18 August 2012 08:22:51 Zhi-zhou Zhang wrote:
>> On Sat, Aug 18, 2012 at 3:31 AM, Mike Frysinger wrote:
>> > On Friday 17 August 2012 11:30:44 Zhizhou Zhang wrote:
>> > > --- a/arch/mips/config.mk
>> > > +++
On Sat, Aug 18, 2012 at 3:31 AM, Mike Frysinger wrote:
> On Friday 17 August 2012 11:30:44 Zhizhou Zhang wrote:
> > --- a/arch/mips/config.mk
> > +++ b/arch/mips/config.mk
> >
> > +ifeq "$(CPU)" "mips64"
> > +CONFIG_STANDALONE_LOAD_ADDR ?= 0xFfffFfff8020 -T mips64.lds
> > +else
> > CONFIG_ST
On Sat, Aug 18, 2012 at 3:34 AM, Mike Frysinger wrote:
> On Friday 17 August 2012 11:30:47 Zhizhou Zhang wrote:
> > --- /dev/null
> > +++ b/arch/mips/cpu/mips64/cpu.c
> >
> > +void __attribute__((weak)) _machine_restart(void)
> > +{
> > +}
>
> change to __weak (include linux/compiler.h if you nee
On Sat, Aug 18, 2012 at 1:08 AM, Andrew Dyer wrote:
> I think the OUTPUT_FORMAT line if wrong. This will produce little endian
> output even if explicitly told by command line switch -EB to make big
> endian.
>
Yes, But if I want make it configureable, I should modify a lot in
standalone/Makefi
On Thu, Aug 16, 2012 at 5:31 AM, Daniel Schwierzeck <
daniel.schwierz...@gmail.com> wrote:
> Hi,
>
> 2012/8/15 Zhi-zhou Zhang :
> > On Tue, Aug 14, 2012 at 11:51 PM, Mike Frysinger
> wrote:
> >
> >> On Tuesday 14 August 2012 11:49:49 Mike Frysinger wrote:
On Tue, Aug 14, 2012 at 11:51 PM, Mike Frysinger wrote:
> On Tuesday 14 August 2012 11:49:49 Mike Frysinger wrote:
> > On Tuesday 14 August 2012 11:06:51 Zhi-zhou Zhang wrote:
> > > As so far, U-Boot has already supports mips32. But there are some
> > >
> >
diff --git a/include/configs/qemu-mips64.h b/include/configs/qemu-mips64.h
new file mode 100644
index 000..767d4c3
--- /dev/null
+++ b/include/configs/qemu-mips64.h
@@ -0,0 +1,168 @@
+/*
+ * (C) Copyright 2003
+ * Wolfgang Denk, DENX Software Engineering, w...@denx.de.
+ *
+ * See file CREDITS
diff --git a/examples/standalone/mips64.lds b/examples/standalone/mips64.lds
new file mode 100644
index 000..00b96da
--- /dev/null
+++ b/examples/standalone/mips64.lds
@@ -0,0 +1,59 @@
+/*
+ * (C) Copyright 2003
+ * Wolfgang Denk Engineering,
+ *
+ * See file CREDITS for list of people who con
diff --git a/boards.cfg b/boards.cfg
index 1af87c0..f368543 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -374,6 +374,7 @@ M5485GFE m68kmcf547x_8x m548xevb
freescale -
M5485HFE m68kmcf547x_8x m548xevbfreescale -
M5485EVB:SYS_BUSCLK=1,SYS_BOOT
err.. maybe a bug of gcc? In my memory, size_t is equaled to unsigned int.
diff --git a/arch/mips/include/asm/posix_types.h
b/arch/mips/include/asm/posix_types.h
index 879aae2..86a866a 100644
--- a/arch/mips/include/asm/posix_types.h
+++ b/arch/mips/include/asm/posix_types.h
@@ -24,7 +24,11 @@ typ
diff --git a/board/qemu-mips/config.mk b/board/qemu-mips/config.mk
index 27cd34a..6a3d7a7 100644
--- a/board/qemu-mips/config.mk
+++ b/board/qemu-mips/config.mk
@@ -2,9 +2,16 @@
# Qemu -M mips system emulator
# See http://fabrice.bellard.free.fr/qemu
#
+ifeq "$(CPU)" "mips64"
+# ROM version
+#CO
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 @@
/*
OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-bigmips")
*/
+#if defined(CONFIG_64BIT)
+OUTPUT_FORMAT
diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h
index 025012a..80eab75 100644
--- a/arch/mips/include/asm/io.h
+++ b/arch/mips/include/asm/io.h
@@ -120,12 +120,20 @@ static inline void set_io_port_base(unsigned long
base)
*/
extern inline phys_addr_t virt_to_phys(volatile vo
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/include/asm/addrspace.h
@@ -136,7 +136,7 @@
cannot access physical memory directly from core */
#define UNCACHED_SDRAM(a) (((
diff --git a/arch/mips/cpu/mips64/time.c b/arch/mips/cpu/mips64/time.c
new file mode 100644
index 000..350896a
--- /dev/null
+++ b/arch/mips/cpu/mips64/time.c
@@ -0,0 +1,86 @@
+/*
+ * (C) Copyright 2003
+ * Wolfgang Denk, DENX Software Engineering, w...@denx.de.
+ *
+ * See file CREDITS for lis
diff --git a/arch/mips/cpu/mips64/start.S b/arch/mips/cpu/mips64/start.S
new file mode 100644
index 000..2208b6b
--- /dev/null
+++ b/arch/mips/cpu/mips64/start.S
@@ -0,0 +1,374 @@
+/*
+ * Startup Code for MIPS64 CPU-core
+ *
+ * Copyright (c) 2003 Wolfgang Denk
+ *
+ * See file CREDITS for l
diff --git a/arch/mips/cpu/mips64/interrupts.c
b/arch/mips/cpu/mips64/interrupts.c
new file mode 100644
index 000..27aa179
--- /dev/null
+++ b/arch/mips/cpu/mips64/interrupts.c
@@ -0,0 +1,38 @@
+/*
+ * (C) Copyright 2003
+ * Wolfgang Denk, DENX Software Engineering,
+ *
+ * See file CREDITS fo
diff --git a/arch/mips/cpu/mips64/cpu.c b/arch/mips/cpu/mips64/cpu.c
new file mode 100644
index 000..1ead349
--- /dev/null
+++ b/arch/mips/cpu/mips64/cpu.c
@@ -0,0 +1,116 @@
+/*
+ * (C) Copyright 2003
+ * Wolfgang Denk, DENX Software Engineering,
+ *
+ * See file CREDITS for list of people who
diff --git a/arch/mips/cpu/mips64/config.mk b/arch/mips/cpu/mips64/config.mk
new file mode 100644
index 000..cec250a
--- /dev/null
+++ b/arch/mips/cpu/mips64/config.mk
@@ -0,0 +1,36 @@
+#
+# (C) Copyright 2003
+# Wolfgang Denk, DENX Software Engineering,
+#
+# See file CREDITS for list of peop
diff --git a/arch/mips/cpu/mips64/cache.S b/arch/mips/cpu/mips64/cache.S
new file mode 100644
index 000..ba7c1b8
--- /dev/null
+++ b/arch/mips/cpu/mips64/cache.S
@@ -0,0 +1,229 @@
+/*
+ * Cache-handling routined for MIPS CPUs
+ *
+ * Copyright (c) 2003 Wolfgang Denk
+ *
+ * See file CREDITS
diff --git a/arch/mips/cpu/mips64/Makefile b/arch/mips/cpu/mips64/Makefile
new file mode 100644
index 000..eb8e005
--- /dev/null
+++ b/arch/mips/cpu/mips64/Makefile
@@ -0,0 +1,48 @@
+#
+# (C) Copyright 2003-2006
+# Wolfgang Denk, DENX Software Engineering, w...@denx.de.
+#
+# See file CREDITS f
diff --git a/arch/mips/config.mk b/arch/mips/config.mk
index 6ab8acd..12df150 100644
--- a/arch/mips/config.mk
+++ b/arch/mips/config.mk
@@ -23,9 +23,13 @@
CROSS_COMPILE ?= mips_4KC-
+ifeq "$(CPU)" "mips64"
+CONFIG_STANDALONE_LOAD_ADDR ?= 0xFfffFfff8020 -T mips64.lds
+PLATFORM_CPPFLAGS += -D
As so far, U-Boot has already supports mips32. But there are some
differences between mips64 and mips32. Such as different ABI, different
output format. so this patch adds mips64 support.
I use cross compiler from clfs and build U-Boot like this:
export
CROSS_COMPILE=/home/zhangzz/work/clfs/sys_ro
40 matches
Mail list logo