direct-io.hg

changeset 4316:8a9bfc8e69e8

bitkeeper revision 1.1236.1.128 (4243752c85MV0g7IdVNPy6olC7dJjQ)

Turn on (and fix) do_initcalls so page scrub init
is called... otherwise page scrub softirq causes null
pointer deref
author djm@sportsman.spdomain
date Fri Mar 25 02:19:24 2005 +0000 (2005-03-25)
parents 161c92d3d52a
children 22fdee49d272
files xen/arch/ia64/xensetup.c xen/include/asm-ia64/init.h
line diff
     1.1 --- a/xen/arch/ia64/xensetup.c	Thu Mar 24 23:56:08 2005 +0000
     1.2 +++ b/xen/arch/ia64/xensetup.c	Fri Mar 25 02:19:24 2005 +0000
     1.3 @@ -140,7 +140,12 @@ xen_find_first_hole(u64 start, u64 end, 
     1.4      return 0;
     1.5  }
     1.6  
     1.7 -
     1.8 +static void __init do_initcalls(void)
     1.9 +{
    1.10 +    initcall_t *call;
    1.11 +    for ( call = &__initcall_start; call < &__initcall_end; call++ )
    1.12 +        (*call)();
    1.13 +}
    1.14  
    1.15  void cmain(multiboot_info_t *mbi)
    1.16  {
    1.17 @@ -240,7 +245,7 @@ printk("About to call ac_timer_init()\n"
    1.18      ac_timer_init();
    1.19  // init_xen_time(); ???
    1.20      schedulers_start();
    1.21 -// do_initcalls(); ???
    1.22 +    do_initcalls();
    1.23  printk("About to call sort_main_extable()\n");
    1.24      sort_main_extable();
    1.25  
     2.1 --- a/xen/include/asm-ia64/init.h	Thu Mar 24 23:56:08 2005 +0000
     2.2 +++ b/xen/include/asm-ia64/init.h	Fri Mar 25 02:19:24 2005 +0000
     2.3 @@ -16,7 +16,7 @@
     2.4  #define __initsetup  \
     2.5      __attribute_used__ __attribute__ ((__section__ (".setup.init")))
     2.6  #define __init_call  \
     2.7 -    __attribute_used__ __attribute__ ((__section__ (".initcall.init")))
     2.8 +    __attribute_used__ __attribute__ ((__section__ (".initcall1.init")))
     2.9  #define __exit_call  \
    2.10      __attribute_used__ __attribute__ ((__section__ (".exitcall.exit")))
    2.11