aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/extable.c
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-05-12 10:28:53 +0100
committerKeir Fraser <keir@xensource.com>2007-05-12 10:28:53 +0100
commit39f1622a2811fd27091a5d580114cb93b78a22e3 (patch)
treefd739a9b7957d82061176d7df208868519cb4a51 /xen/arch/x86/extable.c
parent34df2e48f94720f4c4922e04057027f0d62f5a62 (diff)
downloadxen-39f1622a2811fd27091a5d580114cb93b78a22e3.tar.gz
xen-39f1622a2811fd27091a5d580114cb93b78a22e3.tar.bz2
xen-39f1622a2811fd27091a5d580114cb93b78a22e3.zip
xen: Free initmem after boot. Mark lots of init functions as __init
that weren't before. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/arch/x86/extable.c')
-rw-r--r--xen/arch/x86/extable.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/xen/arch/x86/extable.c b/xen/arch/x86/extable.c
index e8b620229e..da822d34af 100644
--- a/xen/arch/x86/extable.c
+++ b/xen/arch/x86/extable.c
@@ -1,5 +1,6 @@
#include <xen/config.h>
+#include <xen/init.h>
#include <xen/perfc.h>
#include <xen/spinlock.h>
#include <asm/uaccess.h>
@@ -9,8 +10,8 @@ extern struct exception_table_entry __stop___ex_table[];
extern struct exception_table_entry __start___pre_ex_table[];
extern struct exception_table_entry __stop___pre_ex_table[];
-static void sort_exception_table(struct exception_table_entry *start,
- struct exception_table_entry *end)
+static void __init sort_exception_table(struct exception_table_entry *start,
+ struct exception_table_entry *end)
{
struct exception_table_entry *p, *q, tmp;
@@ -28,7 +29,7 @@ static void sort_exception_table(struct exception_table_entry *start,
}
}
-void sort_exception_tables(void)
+void __init sort_exception_tables(void)
{
sort_exception_table(__start___ex_table, __stop___ex_table);
sort_exception_table(__start___pre_ex_table, __stop___pre_ex_table);