* [PATCH] amd-iommu: two more __init annotations
@ 2011-05-13 11:01 Jan Beulich
0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2011-05-13 11:01 UTC (permalink / raw)
To: xen-devel@lists.xensource.com
[-- Attachment #1: Type: text/plain, Size: 755 bytes --]
Signed-off-by: Jan Beulich <jbeulich@novell.com>
--- a/xen/drivers/passthrough/amd/iommu_map.c
+++ b/xen/drivers/passthrough/amd/iommu_map.c
@@ -317,7 +317,8 @@ void amd_iommu_set_root_page_table(
dte[0] = entry;
}
-void amd_iommu_set_intremap_table(u32 *dte, u64 intremap_ptr, u8 int_valid)
+void __init amd_iommu_set_intremap_table(
+ u32 *dte, u64 intremap_ptr, u8 int_valid)
{
u64 addr_hi, addr_lo;
u32 entry;
@@ -354,7 +355,7 @@ void amd_iommu_set_intremap_table(u32 *d
dte[4] = entry;
}
-void amd_iommu_add_dev_table_entry(
+void __init amd_iommu_add_dev_table_entry(
u32 *dte, u8 sys_mgt, u8 dev_ex, u8 lint1_pass, u8 lint0_pass,
u8 nmi_pass, u8 ext_int_pass, u8 init_pass)
{
[-- Attachment #2: amd-iommu-init.patch --]
[-- Type: text/plain, Size: 749 bytes --]
Signed-off-by: Jan Beulich <jbeulich@novell.com>
--- a/xen/drivers/passthrough/amd/iommu_map.c
+++ b/xen/drivers/passthrough/amd/iommu_map.c
@@ -317,7 +317,8 @@ void amd_iommu_set_root_page_table(
dte[0] = entry;
}
-void amd_iommu_set_intremap_table(u32 *dte, u64 intremap_ptr, u8 int_valid)
+void __init amd_iommu_set_intremap_table(
+ u32 *dte, u64 intremap_ptr, u8 int_valid)
{
u64 addr_hi, addr_lo;
u32 entry;
@@ -354,7 +355,7 @@ void amd_iommu_set_intremap_table(u32 *d
dte[4] = entry;
}
-void amd_iommu_add_dev_table_entry(
+void __init amd_iommu_add_dev_table_entry(
u32 *dte, u8 sys_mgt, u8 dev_ex, u8 lint1_pass, u8 lint0_pass,
u8 nmi_pass, u8 ext_int_pass, u8 init_pass)
{
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-13 11:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-13 11:01 [PATCH] amd-iommu: two more __init annotations Jan Beulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).