]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/asm-arm/memory.h
[PATCH] mm: tlb_gather_mmu get_cpu_var
[karo-tx-linux.git] / include / asm-arm / memory.h
index bee10fcf7e836fa039a7ee1a1c302a3c19473fb9..a547ee598c6c9f2e1fa8968fb96be1a9c9ee0712 100644 (file)
 #error Top of user space clashes with start of module space
 #endif
 
+/*
+ * The XIP kernel gets mapped at the bottom of the module vm area.
+ * Since we use sections to map it, this macro replaces the physical address
+ * with its virtual address while keeping offset from the base section.
+ */
+#define XIP_VIRT_ADDR(physaddr)  (MODULE_START + ((physaddr) & 0x000fffff))
+
 #ifndef __ASSEMBLY__
 
 /*