Skip to contentSkip to conversation

: Powerpc: Fix EHCA driver on relocatable kernel

PATCH In review Sonny Rao 2 participants 2 messages Aug 20, 2010 – Sep 20, 2010 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Sonny Rao

author
#0 lore raw

PATCH 1/2 : Powerpc: Fix EHCA driver on relocatable kernel

Some modules (like eHCA) want to map all of kernel memory, for this to work with a relocated kernel, we need to export kernstart_addr so modules can use PHYSICAL_START and memstart_addr so they could use MEMORY_START. Note that the 32bit code already exports these symbols.

arch/powerpc/mm/init_64.c +2 -0
Index: common/arch/powerpc/mm/init_64.c
===================================================================
@@ -79,7 +79,9 @@
 #endif /* CONFIG_PPC_STD_MMU_64 */
 
 phys_addr_t memstart_addr = ~0;
+EXPORT_SYMBOL(memstart_addr);
 phys_addr_t kernstart_addr;
+EXPORT_SYMBOL(kernstart_addr);
 
 void free_initmem(void)
 {

A message that is not in the archive (sent off-list or not yet received): 20100820040809.GS16505-r/[email protected]

#2 lore raw
Quoted 6 lines · On Thu, 19 Aug 2010 23:08:09 -0500 Sonny Rao…

Some modules (like eHCA) want to map all of kernel memory, for this to work with a relocated kernel, we need to export kernstart_addr so modules can use PHYSICAL_START and memstart_addr so they could use MEMORY_START. Note that the 32bit code already exports these symbols.

Quoted 14 lines

Index: common/arch/powerpc/mm/init_64.c
===================================================================

arch/powerpc/mm/init_64.c +2 -0
@@ -79,7 +79,9 @@
 #endif /* CONFIG_PPC_STD_MMU_64 */
 
 phys_addr_t memstart_addr = ~0;
+EXPORT_SYMBOL(memstart_addr);
 phys_addr_t kernstart_addr;
+EXPORT_SYMBOL(kernstart_addr);
 
 void free_initmem(void)
 {
Quoted 4 lines

_______________________________________________
Linuxppc-dev mailing list Linuxppc-dev-uLR06cmDAlY/[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html