lkml.org 
[lkml]   [2005]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] mspec driver for 2.6.12-rc2-mm3
> +/*
> + * Walk the EFI memory map to pull out leftover pages in the lower
> + * memory regions which do not end up in the regular memory map and
> + * stick them into the uncached allocator
> + */
> +static void __init
> +mspec_walk_efi_memmap_uc (void)
> +{
> + void *efi_map_start, *efi_map_end, *p;
> + efi_memory_desc_t *md;
> + u64 efi_desc_size, start, end;
> +
> + efi_map_start = __va(ia64_boot_param->efi_memmap);
> + efi_map_end = efi_map_start + ia64_boot_param->efi_memmap_size;
> + efi_desc_size = ia64_boot_param->efi_memdesc_size;
> +
> + for (p = efi_map_start; p < efi_map_end; p += efi_desc_size) {
> + md = p;
> + if (md->attribute == EFI_MEMORY_UC) {
> + start = PAGE_ALIGN(md->phys_addr);
> + end = PAGE_ALIGN((md->phys_addr+(md->num_pages << EFI_PAGE_SHIFT)) & PAGE_MASK);
> + if (mspec_build_memmap(start, end) < 0)
> + return;
> + }
> + }
> +}
> +

Does this compile without CONFIG_EFI?

(It seems that ia64 Kconfig tries to turn on EFI always, but I thing
allnoconfig will turn it off)

> --- linux-2.6.12-rc2-mm3-vanilla/include/asm-ia64/sn/fetchop.h 2005-03-01 23:38:12 -08:00
> +++ linux-2.6.12-rc2-mm3/include/asm-ia64/sn/fetchop.h 1969-12-31 16:00:00 -08:00

Did you mean to remove fetchop.h?

> --- linux-2.6.12-rc2-mm3-vanilla/include/asm-ia64/sn/mspec.h 1969-12-31 16:00:00 -08:00
> +++ linux-2.6.12-rc2-mm3/include/asm-ia64/sn/mspec.h 2005-04-12 02:14:06 -07:00

I guess so.


-
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/

\
 
 \ /
  Last update: 2005-04-12 12:31    [from the cache]
©2003-2011 Jasper Spaans