> So we need to allocate memory. That is why you suggested to use BRK, right ? > And the size seems to be a problem. > > So I suggest to use early_ioremap(). > > 1. After paging is enabled, before direct mapping page tables are > setup, we map the > initrd with early_ioremap(). And we are able to access it with va, > even on 32bit. > Then we can find all tables. > 2. We still use memblock to allocate memory. Maybe it will be > hotpluggable memory, > but this memory can be freed when all the acpi tables are parsed, right ? > > So I want to try early_ioremap(). All these should be done in setup_arch().
no. cpio search need to take whole range virtual address, and early_ioremap has size limitation. you will have to update cpio search to take mapping function. could be too messy. Yinghai -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/