Skip to contentSkip to conversation

Microblaze fix

U-Boot New monstr at monstr.eu 2 participants 5 messages Jan 19, 2010

lore
Share & tools
lore
#0 lore raw

Hi Wolfgang,

here are two bug fixes for Microblaze.
You can apply them if you are ok with them.

Thanks,
Michal

#1 lore raw

PATCH 1/2 microblaze: Remove getenv_IPaddr

From: Michal Simek <[email protected]>

Commit 6a45e384955262882375a2785426dc65aeb636c4
should remove reference from Microblaze too.

---
 lib_microblaze/board.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
lib_microblaze/board.c +0 -1
index 200ea5d..d4baea9 100644
@@ -43,7 +43,6 @@ extern int interrupts_init (void);
 #endif
 #if defined(CONFIG_CMD_NET)
 extern int eth_init (bd_t * bis);
-extern int getenv_IPaddr (char *);
 #endif
 
 /*
Signature · 1 line
1.5.5.1
#2 lore raw

PATCH 2/2 microblaze: zlib needs asm/unaligned.h

From: Michal Simek <[email protected]>

Microblaze has own hw unaligned handler if is available. Use big endian version.

---
 include/asm-microblaze/unaligned.h |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 include/asm-microblaze/unaligned.h
include/asm-microblaze/unaligned.h new file +16 -0
new file mode 100644
index 0000000..785c2e9
@@ -0,0 +1,16 @@
+#ifndef _ASM_MICROBLAZE_UNALIGNED_H
+#define _ASM_MICROBLAZE_UNALIGNED_H
+
+#ifdef __KERNEL__
+
+/*
+ * The Microblaze can do unaligned accesses itself in big endian mode.
+ */
+#include <linux/unaligned/access_ok.h>
+#include <linux/unaligned/generic.h>
+
+#define get_unaligned	__get_unaligned_be
+#define put_unaligned	__put_unaligned_be
+
+#endif	/* __KERNEL__ */
+#endif	/* _ASM_MICROBLAZE_UNALIGNED_H */
Signature · 1 line
1.5.5.1
#3 lore raw

PATCH 2/2 microblaze: zlib needs asm/unaligned.h

Dear monstr at monstr.eu,

Quoted 10 lines · In message <[email protected]> you wrote:

From: Michal Simek <[email protected]>

Microblaze has own hw unaligned handler if is available. Use big endian version.

---
 include/asm-microblaze/unaligned.h |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 include/asm-microblaze/unaligned.h

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
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
"We don't have to protect the environment -- the Second Coming is  at
hand."                                                   - James Watt
#4 lore raw

PATCH 1/2 microblaze: Remove getenv_IPaddr

In reply to monstr at monstr.eu

Dear monstr at monstr.eu,

Quoted 9 lines · In message <[email protected]> you wrote:

From: Michal Simek <[email protected]>

Commit 6a45e384955262882375a2785426dc65aeb636c4
should remove reference from Microblaze too.

---
 lib_microblaze/board.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 6 lines
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
The main thing is the play itself. I swear that greed for  money  has
nothing  to  do with it, although heaven knows I am sorely in need of
money.                                           - Feodor Dostoyevsky