summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorQuinn Jensen <quinn.jensen@freescale.com>2007-10-24 21:24:48 -0600
committerQuinn Jensen <quinn.jensen@freescale.com>2007-10-24 21:24:48 -0600
commitb4d071c2e403c2279e9e1b7216e22cdbe12d43c7 (patch)
tree108527ad66e42338e481edbdd3876dbc227cc4aa /include
parentcfaf263c60e94bf4fe4005bb7281df144636ba42 (diff)
Bugzilla 776 - FS-001 XIP from cramfs - Community patch
Patch for Bugzilla 776 - FS-001 XIP from cramfs Origin: http://lwn.net/Articles/235532/ Description: Venerable cramfs fs Linear XIP patch originally from MontaVista, used in the embedded Linux community for years, updated for 2.6.21. Tested on several systems with NOR Flash. PXA270, TI OMAP2430, ARM Versatile and Freescale iMX31ADS. Portions Copyright Shane Nay and Robert Leslie <rob@mars.org> http://www.bitshrine.org/gpp/linux-2.6.22-mx-Bugzilla-776-FS-001-XIP-from-cramfs-Commun.patch
Diffstat (limited to 'include')
-rw-r--r--include/linux/cramfs_fs_sb.h4
-rw-r--r--include/linux/mm.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/cramfs_fs_sb.h b/include/linux/cramfs_fs_sb.h
index 8390693568fd..e3ff06de7f9d 100644
--- a/include/linux/cramfs_fs_sb.h
+++ b/include/linux/cramfs_fs_sb.h
@@ -10,6 +10,10 @@ struct cramfs_sb_info {
unsigned long blocks;
unsigned long files;
unsigned long flags;
+#ifdef CONFIG_CRAMFS_LINEAR
+ unsigned long linear_phys_addr;
+ char * linear_virt_addr;
+#endif /* CONFIG_CRAMFS_LINEAR */
};
static inline struct cramfs_sb_info *CRAMFS_SB(struct super_block *sb)
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 1c1207472bb4..4f2b42c92664 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -164,6 +164,7 @@ extern unsigned int kobjsize(const void *objp);
#define VM_DONTEXPAND 0x00040000 /* Cannot expand with mremap() */
#define VM_RESERVED 0x00080000 /* Count as reserved_vm like IO */
#define VM_ACCOUNT 0x00100000 /* Is a VM accounted object */
+#define VM_XIP 0x00200000 /* Execute In Place from ROM/flash */
#define VM_HUGETLB 0x00400000 /* Huge TLB Page VM */
#define VM_NONLINEAR 0x00800000 /* Is non-linear (remap_file_pages) */
#define VM_MAPPED_COPY 0x01000000 /* T if mapped copy of data (nommu mmap) */