All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] [GIT PULL] MIPS updates
@ 2008-05-02  3:33 Shinya Kuribayashi
  2008-05-02  3:35 ` [U-Boot-Users] [PATCH][MIPS] cpu/mips/cache.S: Add dcache_enable Shinya Kuribayashi
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Shinya Kuribayashi @ 2008-05-02  3:33 UTC (permalink / raw)
  To: u-boot

Dear Wolfgang,

please pull MIPS updates. 2 patches are there. One fixes a build failure
caused by absence of dcache_enable(). The other is for a better handling
of gas minor version (this isn't a kind of bug fix, but I'd like to push
this for 1.3.3 release. Ok?).

Each patch has not been posted to u-boot-users yet, so they will follow
this mail. Please review (and apply).

thanks,

  Shinya

---
The following changes since commit 50f93d30dae3c5d888aa244d964ccd77be9b1c0c:
  Wolfgang Denk (1):
        Merge branch 'master' of git+ssh://10.10.0.7/home/wd/git/u-boot/master

are available in the git repository at:

  git://git.denx.de/u-boot-mips.git master

Shinya Kuribayashi (2):
      [MIPS] cpu/mips/cache.S: Add dcache_enable
      [MIPS] cpu/mips/config.mk: Fix GNU assembler minor version picker

 cpu/mips/cache.S   |   16 ++++++++++++++++
 cpu/mips/config.mk |    2 +-
 2 files changed, 17 insertions(+), 1 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot-Users] [PATCH][MIPS] cpu/mips/cache.S: Add dcache_enable
  2008-05-02  3:33 [U-Boot-Users] [GIT PULL] MIPS updates Shinya Kuribayashi
@ 2008-05-02  3:35 ` Shinya Kuribayashi
  2008-05-02 17:40   ` Jean-Christophe PLAGNIOL-VILLARD
  2008-05-02  3:37 ` [U-Boot-Users] [PATCH][MIPS] cpu/mips/config.mk: Fix GNU assembler minor version picker Shinya Kuribayashi
  2008-05-03 22:10 ` [U-Boot-Users] [GIT PULL] MIPS updates Wolfgang Denk
  2 siblings, 1 reply; 5+ messages in thread
From: Shinya Kuribayashi @ 2008-05-02  3:35 UTC (permalink / raw)
  To: u-boot

Recent bootelf command fixes (017e9b7925f74878d0e9475388cca9bda5ef9482,
"allow ports to override bootelf behavior") requires ports to have this
function.

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
---

 cpu/mips/cache.S |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)


diff --git a/cpu/mips/cache.S b/cpu/mips/cache.S
index f593968..428d251 100644
--- a/cpu/mips/cache.S
+++ b/cpu/mips/cache.S
@@ -285,6 +285,22 @@ LEAF(dcache_disable)
 	jr	ra
 	END(dcache_disable)
 
+/*******************************************************************************
+*
+* dcache_enable - enable cache
+*
+* RETURNS: N/A
+*
+*/
+LEAF(dcache_enable)
+	mfc0	t0, CP0_CONFIG
+	ori	t0, CONF_CM_CMASK
+	xori	t0, CONF_CM_CMASK
+	ori	t0, CONF_CM_CACHABLE_NONCOHERENT
+	mtc0	t0, CP0_CONFIG
+	jr	ra
+	END(dcache_enable)
+
 #ifdef CFG_INIT_RAM_LOCK_MIPS
 /*******************************************************************************
 *

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot-Users] [PATCH][MIPS] cpu/mips/config.mk: Fix GNU assembler minor version picker
  2008-05-02  3:33 [U-Boot-Users] [GIT PULL] MIPS updates Shinya Kuribayashi
  2008-05-02  3:35 ` [U-Boot-Users] [PATCH][MIPS] cpu/mips/cache.S: Add dcache_enable Shinya Kuribayashi
@ 2008-05-02  3:37 ` Shinya Kuribayashi
  2008-05-03 22:10 ` [U-Boot-Users] [GIT PULL] MIPS updates Wolfgang Denk
  2 siblings, 0 replies; 5+ messages in thread
From: Shinya Kuribayashi @ 2008-05-02  3:37 UTC (permalink / raw)
  To: u-boot

Current trick to pick up GNU assembler minor version uses a dot(.) as a
delimiter, and take the second field to obtain minor version number. But
as can be expected, this doesn't work with a version string which has
dots more than needs.

Here's an example:

$ mips-linux-gnu-as --version | grep 'GNU assembler'
GNU assembler (Sourcery G++ Lite 4.2-129) 2.18.50.20080215
$ mips-linux-gnu-as --version | grep 'GNU assembler' | cut -d. -f2
2-129) 2
$

This patch restricts the version format to 2.XX.XX... This will work
in most cases.

$ mips-linux-gnu-as --version | grep 'GNU assembler' | egrep -o '2\.[0-9\.]+'
2.18.50.20080215
$ mips-linux-gnu-as --version | grep 'GNU assembler' | egrep -o '2\.[0-9\.]+' | cut -d. -f2
18
$

Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
---

 cpu/mips/config.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/cpu/mips/config.mk b/cpu/mips/config.mk
index b505a42..a173c54 100644
--- a/cpu/mips/config.mk
+++ b/cpu/mips/config.mk
@@ -20,7 +20,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 # MA 02111-1307 USA
 #
-v=$(shell $(AS) --version |grep "GNU assembler" |cut -d. -f2)
+v=$(shell $(AS) --version | grep 'GNU assembler' | egrep -o '2\.[0-9\.]+' | cut -d. -f2)
 MIPSFLAGS:=$(shell \
 if [ "$v" -lt "14" ]; then \
 	echo "-mcpu=4kc"; \

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot-Users] [PATCH][MIPS] cpu/mips/cache.S: Add dcache_enable
  2008-05-02  3:35 ` [U-Boot-Users] [PATCH][MIPS] cpu/mips/cache.S: Add dcache_enable Shinya Kuribayashi
@ 2008-05-02 17:40   ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 0 replies; 5+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2008-05-02 17:40 UTC (permalink / raw)
  To: u-boot

On 12:35 Fri 02 May     , Shinya Kuribayashi wrote:
> Recent bootelf command fixes (017e9b7925f74878d0e9475388cca9bda5ef9482,
> "allow ports to override bootelf behavior") requires ports to have this
> function.
> 
> Signed-off-by: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot-Users] [GIT PULL] MIPS updates
  2008-05-02  3:33 [U-Boot-Users] [GIT PULL] MIPS updates Shinya Kuribayashi
  2008-05-02  3:35 ` [U-Boot-Users] [PATCH][MIPS] cpu/mips/cache.S: Add dcache_enable Shinya Kuribayashi
  2008-05-02  3:37 ` [U-Boot-Users] [PATCH][MIPS] cpu/mips/config.mk: Fix GNU assembler minor version picker Shinya Kuribayashi
@ 2008-05-03 22:10 ` Wolfgang Denk
  2 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2008-05-03 22:10 UTC (permalink / raw)
  To: u-boot

In message <481A8B97.5030209@ruby.dti.ne.jp> you wrote:
> Dear Wolfgang,
> 
> please pull MIPS updates. 2 patches are there. One fixes a build failure
> caused by absence of dcache_enable(). The other is for a better handling
> of gas minor version (this isn't a kind of bug fix, but I'd like to push
> this for 1.3.3 release. Ok?).
> 
> Each patch has not been posted to u-boot-users yet, so they will follow
> this mail. Please review (and apply).
> 
> thanks,
> 
>   Shinya
> 
> ---
> The following changes since commit 50f93d30dae3c5d888aa244d964ccd77be9b1c0c:
>   Wolfgang Denk (1):
>         Merge branch 'master' of git+ssh://10.10.0.7/home/wd/git/u-boot/master
> 
> are available in the git repository at:
> 
>   git://git.denx.de/u-boot-mips.git master
> 
> Shinya Kuribayashi (2):
>       [MIPS] cpu/mips/cache.S: Add dcache_enable
>       [MIPS] cpu/mips/config.mk: Fix GNU assembler minor version picker
> 
>  cpu/mips/cache.S   |   16 ++++++++++++++++
>  cpu/mips/config.mk |    2 +-
>  2 files changed, 17 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If a man had a child who'd gone  anti-social,  killed  perhaps,  he'd
still tend to protect that child.
	-- McCoy, "The Ultimate Computer", stardate 4731.3

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-05-03 22:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-02  3:33 [U-Boot-Users] [GIT PULL] MIPS updates Shinya Kuribayashi
2008-05-02  3:35 ` [U-Boot-Users] [PATCH][MIPS] cpu/mips/cache.S: Add dcache_enable Shinya Kuribayashi
2008-05-02 17:40   ` Jean-Christophe PLAGNIOL-VILLARD
2008-05-02  3:37 ` [U-Boot-Users] [PATCH][MIPS] cpu/mips/config.mk: Fix GNU assembler minor version picker Shinya Kuribayashi
2008-05-03 22:10 ` [U-Boot-Users] [GIT PULL] MIPS updates Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.