Messages in this thread Patch in this message | | | Subject | Re: [Fastboot] [PATCH] /proc/cpumem | From | Vivek Goyal <> | Date | 17 Feb 2005 11:28:11 +0530 |
| |
Hi,
On Wed, 2005-02-16 at 14:19, Itsuro Oda wrote:
> > BTW, does not kexec/kdump run on 2.6.11-rc3-mm2 ? > How do I get and examine the latest kexec/kdump ?
Currently kdump is broken. I am working on Elf Header generation part in kexec-tools. Next week I should be able to post the initial patches.
--- > --- linux-2.6.11-rc3-mm2/arch/i386/mm/init.c 2005-02-16 > 15:36:29.000000000 +0900 > +++ linux-2.6.11-rc3-mm2-test/arch/i386/mm/init.c 2005-02-16 > 23:32:29.499709752 +0900 > @@ -248,6 +248,47 @@ > return 0; > } > > +int valid_phys_addr_range(unsigned long long phys_addr, size_t *size) > +{ > + int i; > + unsigned long long addr, end; > + efi_memory_desc_t *md; > + > + if (efi_enabled) { > + for (i = 0; i < memmap.nr_map; i++) { > + md = &memmap.map[i]; > + if (!is_available_memory(md)) { > + continue; > + } > + addr = md->phys_addr; > + end = md->phys_addr + (md->num_pages << > EFI_PAGE_SHIFT); > + if ((phys_addr >= addr) && (phys_addr < end)) { > + if (*size > end - phys_addr) { > + *size = end - phys_addr; > + } > + return 1; > + } > + } > + return 0; > + }
I thought efi related data structures are of type __initdata and will be gone after initilization. (efi.c)
Thanks Vivek
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |