All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]mini-os: Fix to get netfront running on ia64
@ 2007-02-06  7:03 Dietmar Hahn
  2007-02-06 21:59 ` Grzegorz Milos
  2007-02-12 10:36 ` [PATCH]mini-os: Small fixes in makerules Dietmar Hahn
  0 siblings, 2 replies; 7+ messages in thread
From: Dietmar Hahn @ 2007-02-06  7:03 UTC (permalink / raw)
  To: Grzegorz Milos, xen-devel

[-- Attachment #1: Type: text/plain, Size: 161 bytes --]

Hi,

to get the netfront stuff on ia64 architecture running I still need to include 
the attached patch.
Please have a look and send comments!
Thanks.

Dietmar.

[-- Attachment #2: mini-os.patch --]
[-- Type: text/x-diff, Size: 1382 bytes --]

# HG changeset patch
# User dietmar.hahn@fujitsu-siemens.com
# Date 1170687542 -3600
# Node ID 80cd2c0ee40cddec1914542f221159b5911368b3
# Parent  01ec7dba9ff805a5c74a0318997b747d3e3e3327
2 Fixes for supporting netfront on ia64.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>


diff -r 01ec7dba9ff8 -r 80cd2c0ee40c extras/mini-os/gnttab.c
--- a/extras/mini-os/gnttab.c	Fri Feb 02 16:07:13 2007 +0000
+++ b/extras/mini-os/gnttab.c	Mon Feb 05 15:59:02 2007 +0100
@@ -21,7 +21,12 @@
 
 #define NR_RESERVED_ENTRIES 8
 
+/* NR_GRANT_FRAMES must be less than or equal to that configured in Xen */
+#ifdef __ia64__
+#define NR_GRANT_FRAMES 1
+#else
 #define NR_GRANT_FRAMES 4
+#endif
 #define NR_GRANT_ENTRIES (NR_GRANT_FRAMES * PAGE_SIZE / sizeof(grant_entry_t))
 
 static grant_entry_t *gnttab_table;
diff -r 01ec7dba9ff8 -r 80cd2c0ee40c extras/mini-os/netfront.c
--- a/extras/mini-os/netfront.c	Fri Feb 02 16:07:13 2007 +0000
+++ b/extras/mini-os/netfront.c	Mon Feb 05 15:59:02 2007 +0100
@@ -349,7 +349,9 @@ done:
     init_rx_buffers();
 
     unsigned char rawmac[6];
-    sscanf(mac,"%x:%x:%x:%x:%x:%x",
+        /* Special conversion specifier 'hh' needed for __ia64__. Without
+           this mini-os panics with 'Unaligned reference'. */
+    sscanf(mac,"%hhx:%hhx:%hhx:%hhx:%hhx:%hhx",
             &rawmac[0],
             &rawmac[1],
             &rawmac[2],

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

end of thread, other threads:[~2007-02-21  8:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-06  7:03 [PATCH]mini-os: Fix to get netfront running on ia64 Dietmar Hahn
2007-02-06 21:59 ` Grzegorz Milos
2007-02-12 10:36 ` [PATCH]mini-os: Small fixes in makerules Dietmar Hahn
2007-02-13 23:05   ` Grzegorz Milos
2007-02-19  9:47     ` [PATCH]mini-os: Bug in allocate_xenbus_id() Dietmar Hahn
2007-02-20 18:53       ` Grzegorz Milos
2007-02-21  8:24         ` Dietmar Hahn

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.