aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/gnttab.c
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-06 23:12:59 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-06 23:12:59 +0000
commit15587769c8833c12ab9dc0bdea10e0b649778699 (patch)
tree3fd2e11472abf9638b7fb0bfb10671c74fa8dd77 /extras/mini-os/gnttab.c
parentbec98603f540df827009a761b931e9068e6599d4 (diff)
downloadxen-15587769c8833c12ab9dc0bdea10e0b649778699.tar.gz
xen-15587769c8833c12ab9dc0bdea10e0b649778699.tar.bz2
xen-15587769c8833c12ab9dc0bdea10e0b649778699.zip
minios: Fix netfront for ia64.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
Diffstat (limited to 'extras/mini-os/gnttab.c')
-rw-r--r--extras/mini-os/gnttab.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/extras/mini-os/gnttab.c b/extras/mini-os/gnttab.c
index da92fc33c9..4d75897a98 100644
--- a/extras/mini-os/gnttab.c
+++ b/extras/mini-os/gnttab.c
@@ -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;