[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] EXPORT_SYMBOL



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.