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-devel

[Xen-devel] EXPORT_SYMBOL

To: <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] EXPORT_SYMBOL
From: "Charles Coffing" <ccoffing@xxxxxxxxxx>
Date: Thu, 05 Aug 2004 14:14:31 -0600
Delivery-date: Thu, 05 Aug 2004 21:30:35 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
I built 2.6.7-xen0 with modular drivers, but I couldn't get any modules
to load because the following symbols weren't exported:
        evtchn_do_upcall
        HYPERVISOR_shared_info
        phys_to_machine_mapping


Here's a patch:

diff -ru
xeno-unstable/linux-2.6.7-xen-sparse/arch/xen/i386/kernel/setup.c
xeno-unstable.export/linux-2.6.7-xen-sparse/arch/xen/i386/kernel/setup.c
---
xeno-unstable/linux-2.6.7-xen-sparse/arch/xen/i386/kernel/setup.c       
2004-08-04
20:56:53.000000000 -0600
+++
xeno-unstable.export/linux-2.6.7-xen-sparse/arch/xen/i386/kernel/setup.c        
2004-08-05
10:58:02.000000000 -0600
@@ -137,8 +137,9 @@
  * page as soon as fixmap is up and running.
  */
 shared_info_t *HYPERVISOR_shared_info = (shared_info_t
*)empty_zero_page;
-
+EXPORT_SYMBOL(HYPERVISOR_shared_info);
 unsigned long *phys_to_machine_mapping;
+EXPORT_SYMBOL(phys_to_machine_mapping);
 
 multicall_entry_t multicall_list[8];
 int nr_multicall_ents = 0;
diff -ru xeno-unstable/linux-2.6.7-xen-sparse/arch/xen/kernel/evtchn.c
xeno-unstable.export/linux-2.6.7-xen-sparse/arch/xen/kernel/evtchn.c
---
xeno-unstable/linux-2.6.7-xen-sparse/arch/xen/kernel/evtchn.c   2004-08-04
20:56:54.000000000 -0600
+++
xeno-unstable.export/linux-2.6.7-xen-sparse/arch/xen/kernel/evtchn.c    
2004-08-05
10:58:45.000000000 -0600
@@ -7,6 +7,7 @@
  */
 
 #include <linux/config.h>
+#include <linux/module.h>
 #include <linux/irq.h>
 #include <linux/interrupt.h>
 #include <linux/sched.h>
@@ -81,7 +82,7 @@
 
     local_irq_restore(flags);
 }
-
+EXPORT_SYMBOL(evtchn_do_upcall);
 
 static int find_unbound_irq(void)
 {



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] EXPORT_SYMBOL, Charles Coffing <=