From: kaf24@scramble.cl.cam.ac.uk Date: Wed, 2 Mar 2005 09:33:11 +0000 (+0000) Subject: bitkeeper revision 1.1236.1.45 (42258857U4okIoyPxH5YjJWR8rXbew) X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~17878^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d9edb54d671cf60004821d4856c7a01cc46ad92b;p=xen.git bitkeeper revision 1.1236.1.45 (42258857U4okIoyPxH5YjJWR8rXbew) Xen emulates WBINVD -- reduce diffs in Linux 2.6 in light of this. Signed-off-by: Keir Fraser --- diff --git a/linux-2.6.10-xen-sparse/include/asm-xen/asm-i386/system.h b/linux-2.6.10-xen-sparse/include/asm-xen/asm-i386/system.h index 77b6a507bd..cdd81a2ce2 100644 --- a/linux-2.6.10-xen-sparse/include/asm-xen/asm-i386/system.h +++ b/linux-2.6.10-xen-sparse/include/asm-xen/asm-i386/system.h @@ -119,13 +119,8 @@ static inline unsigned long _get_base(char * addr) #endif /* __KERNEL__ */ -static inline void wbinvd(void) -{ - mmu_update_t u; - u.ptr = MMU_EXTENDED_COMMAND; - u.val = MMUEXT_FLUSH_CACHE; - (void)HYPERVISOR_mmu_update(&u, 1, NULL); -} +#define wbinvd() \ + __asm__ __volatile__ ("wbinvd": : :"memory"); static inline unsigned long get_limit(unsigned long segment) { diff --git a/patches/linux-2.6.10/agpgart.patch b/patches/linux-2.6.10/agpgart.patch index 249afd6f0b..3249eab312 100644 --- a/patches/linux-2.6.10/agpgart.patch +++ b/patches/linux-2.6.10/agpgart.patch @@ -350,22 +350,3 @@ diff -ur linux-2.6.9/drivers/char/agp/uninorth-agp.c linux-2.6.9-new/drivers/cha for (i = 0; i < num_entries; i++) { agp_bridge->gatt_table[i] = -diff -ur linux-2.6.9/include/asm-i386/agp.h linux-2.6.9-new/include/asm-i386/agp.h ---- linux-2.6.9/include/asm-i386/agp.h 2004-10-18 22:53:06.000000000 +0100 -+++ linux-2.6.9-new/include/asm-i386/agp.h 2004-11-28 19:32:03.000000000 +0000 -@@ -3,6 +3,7 @@ - - #include - #include -+#include - - /* - * Functions to keep the agpgart mappings coherent with the MMU. -@@ -19,6 +20,6 @@ - /* Could use CLFLUSH here if the cpu supports it. But then it would - need to be called for each cacheline of the whole page so it may not be - worth it. Would need a page for it. */ --#define flush_agp_cache() asm volatile("wbinvd":::"memory") -+#define flush_agp_cache() wbinvd() - - #endif