lkml.org 
[lkml]   [2006]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[RFC PATCH 09/35] Change __FIXADDR_TOP to leave room for the hypervisor.
    Move the definition of __FIXADDR_TOP into a subarch include file so
    that it can be overridden for subarch xen -- the hypervisor needs
    about 64MB at the top of the address space.

    Signed-off-by: Ian Pratt <ian.pratt@xensource.com>
    Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
    Signed-off-by: Chris Wright <chrisw@sous-sol.org>
    ---
    include/asm-i386/fixmap.h | 8 +-------
    include/asm-i386/mach-default/mach_fixmap.h | 11 +++++++++++
    include/asm-i386/mach-xen/mach_fixmap.h | 11 +++++++++++
    3 files changed, 23 insertions(+), 7 deletions(-)

    --- xen-subarch-2.6.orig/include/asm-i386/fixmap.h
    +++ xen-subarch-2.6/include/asm-i386/fixmap.h
    @@ -14,13 +14,7 @@
    #define _ASM_FIXMAP_H

    #include <linux/config.h>
    -
    -/* used by vmalloc.c, vsyscall.lds.S.
    - *
    - * Leave one empty page between vmalloc'ed areas and
    - * the start of the fixmap.
    - */
    -#define __FIXADDR_TOP 0xfffff000
    +#include <mach_fixmap.h>

    #ifndef __ASSEMBLY__
    #include <linux/kernel.h>
    --- /dev/null
    +++ xen-subarch-2.6/include/asm-i386/mach-default/mach_fixmap.h
    @@ -0,0 +1,11 @@
    +#ifndef __ASM_MACH_FIXMAP_H
    +#define __ASM_MACH_FIXMAP_H
    +
    +/* used by vmalloc.c, vsyscall.lds.S.
    + *
    + * Leave one empty page between vmalloc'ed areas and
    + * the start of the fixmap.
    + */
    +#define __FIXADDR_TOP 0xfffff000
    +
    +#endif /* __ASM_MACH_FIXMAP_H */
    --- /dev/null
    +++ xen-subarch-2.6/include/asm-i386/mach-xen/mach_fixmap.h
    @@ -0,0 +1,11 @@
    +#ifndef __ASM_MACH_FIXMAP_H
    +#define __ASM_MACH_FIXMAP_H
    +
    +/* used by vmalloc.c, vsyscall.lds.S.
    + *
    + * Leave one empty page between vmalloc'ed areas and
    + * the start of the fixmap.
    + */
    +#define __FIXADDR_TOP (HYPERVISOR_VIRT_START - 2 * PAGE_SIZE)
    +
    +#endif /* __ASM_MACH_FIXMAP_H */
    --
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-03-22 07:43    [W:4.484 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site