Skip to contentSkip to conversation

Cleanup more fixmap assumptions from gnttab code.

PATCH New Arun Sharma 1 participant 1 message Aug 12, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Cleanup more fixmap assumptions from gnttab code.

Cleanup more fixmap assumptions from gnttab code.

Missed out a hunk in the earlier patch.

linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c +2 -1
@@ -348,6 +348,8 @@
     for ( i = 0; i < NR_GRANT_FRAMES; i++ )
         set_fixmap(FIX_GNTTAB_END - i, frames[i] << PAGE_SHIFT);
 
+    shared = (grant_entry_t *)fix_to_virt(FIX_GNTTAB_END);
+
     return 0;
 }
 
@@ -368,7 +370,6 @@
 
     BUG_ON(gnttab_resume());
 
-    shared = (grant_entry_t *)fix_to_virt(FIX_GNTTAB_END);
 
     for ( i = 0; i < NR_GRANT_ENTRIES; i++ )
         gnttab_free_list[i] = i + 1;