Skip to contentSkip to conversation

image.h: amd64 support

PATCH New Peter Korsgaard 2 participants 2 messages Oct 20, 2009 – Oct 21, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 image.h: amd64 support

Use IH_CPU_I386 for amd64 machines as well, so bootm.c is able to build on amd64 sandbox.

---
 include/image.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/image.h +1 -1
index 0d2f472..5524f84 100644
@@ -84,7 +84,7 @@
 #define IH_CPU IH_CPU_PPC
 #elif defined(__ARM__)
 #define IH_CPU IH_CPU_ARM
-#elif defined(__I386__)
+#elif defined(__I386__) || defined(__x86_64__)
 #define IH_CPU IH_CPU_I386
 #elif defined(__mips__)
 #define IH_CPU IH_CPU_MIPS
Signature · 1 line
1.6.3.3
Applied
#1 lore raw

PATCH 1/1 image.h: amd64 support

Hi Peter,

Quoted 4 lines · Peter Korsgaard

Use IH_CPU_I386 for amd64 machines as well, so bootm.c is able to build on amd64 sandbox.

Applied, thanks.

Sascha

Quoted 21 lines
---
 include/image.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/image.h +1 -1
index 0d2f472..5524f84 100644
@@ -84,7 +84,7 @@
 #define IH_CPU IH_CPU_PPC
 #elif defined(__ARM__)
 #define IH_CPU IH_CPU_ARM
-#elif defined(__I386__)
+#elif defined(__I386__) || defined(__x86_64__)
 #define IH_CPU IH_CPU_I386
 #elif defined(__mips__)
 #define IH_CPU IH_CPU_MIPS
Signature · 1 line
1.6.3.3
Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |