On Wed, Mar 10, 2010 at 12:29:42PM -0800, akpm@xxxxxxxxxxxxxxxxxxxx wrote: > > The patch titled > add a kernel_address() that works for data too > has been removed from the -mm tree. Its filename was > add-a-kernel_address-that-works-for-data-too.patch > > This patch was dropped because an updated version will be merged > > The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ > > ------------------------------------------------------ > Subject: add a kernel_address() that works for data too > From: Andi Kleen <andi@xxxxxxxxxxxxxx> > > Add a variant of kernel_text_address() that includes kernel data. > > Assumes kernel is _text ... _end - init section. True everywhere? No, it is not. ARM XIP has text in one area, and the data in RAM. There are two distinct sections: _text .. _etext _data .. _end They both exclude the init sections on ARM, except when XIP is enabled where the init data appears inside _data .. _end, and is demarked by __init_begin .. __init_end. Final point is that we end up with the Dwarf2 unwind tables after the _etext, but not included in _data - I don't think that matters though. -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html