WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Turn on (and fix) do_initcalls so page scrub init

To: xen-changelog@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Turn on (and fix) do_initcalls so page scrub init
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Fri, 25 Mar 2005 02:19:24 +0000
Delivery-date: Sat, 26 Mar 2005 00:07:08 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-changelog>
List-help: <mailto:xen-changelog-request@lists.sourceforge.net?subject=help>
List-id: <xen-changelog.lists.sourceforge.net>
List-post: <mailto:xen-changelog@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.sourceforge.net?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-admin@xxxxxxxxxxxxxxxxxxxxx
ChangeSet 1.1364, 2005/03/24 19:19:24-07:00, djm@xxxxxxxxxxxxxxxxxx

        Turn on (and fix) do_initcalls so page scrub init
        is called... otherwise page scrub softirq causes null
        pointer deref



 arch/ia64/xensetup.c    |    9 +++++++--
 include/asm-ia64/init.h |    2 +-
 2 files changed, 8 insertions(+), 3 deletions(-)


diff -Nru a/xen/arch/ia64/xensetup.c b/xen/arch/ia64/xensetup.c
--- a/xen/arch/ia64/xensetup.c  2005-03-25 19:05:49 -05:00
+++ b/xen/arch/ia64/xensetup.c  2005-03-25 19:05:49 -05:00
@@ -140,7 +140,12 @@
     return 0;
 }
 
-
+static void __init do_initcalls(void)
+{
+    initcall_t *call;
+    for ( call = &__initcall_start; call < &__initcall_end; call++ )
+        (*call)();
+}
 
 void cmain(multiboot_info_t *mbi)
 {
@@ -240,7 +245,7 @@
     ac_timer_init();
 // init_xen_time(); ???
     schedulers_start();
-// do_initcalls(); ???
+    do_initcalls();
 printk("About to call sort_main_extable()\n");
     sort_main_extable();
 
diff -Nru a/xen/include/asm-ia64/init.h b/xen/include/asm-ia64/init.h
--- a/xen/include/asm-ia64/init.h       2005-03-25 19:05:49 -05:00
+++ b/xen/include/asm-ia64/init.h       2005-03-25 19:05:49 -05:00
@@ -16,7 +16,7 @@
 #define __initsetup  \
     __attribute_used__ __attribute__ ((__section__ (".setup.init")))
 #define __init_call  \
-    __attribute_used__ __attribute__ ((__section__ (".initcall.init")))
+    __attribute_used__ __attribute__ ((__section__ (".initcall1.init")))
 #define __exit_call  \
     __attribute_used__ __attribute__ ((__section__ (".exitcall.exit")))
 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Turn on (and fix) do_initcalls so page scrub init, BitKeeper Bot <=