From: Grzegorz Milos <gm281@cam.ac.uk>
To: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH]mini-os: Fix to get netfront running on ia64
Date: Tue, 06 Feb 2007 21:59:49 +0000 [thread overview]
Message-ID: <45C8FA55.6060901@cam.ac.uk> (raw)
In-Reply-To: <200702060803.21254.dietmar.hahn@fujitsu-siemens.com>
That looks good. Keir could you apply please (if you haven't done so
already).
Thanks
Gregor
> 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.
>
>
> ------------------------------------------------------------------------
>
> # 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],
next prev parent reply other threads:[~2007-02-06 21:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-06 7:03 [PATCH]mini-os: Fix to get netfront running on ia64 Dietmar Hahn
2007-02-06 21:59 ` Grzegorz Milos [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45C8FA55.6060901@cam.ac.uk \
--to=gm281@cam.ac.uk \
--cc=dietmar.hahn@fujitsu-siemens.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.