aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorHuang, Ying <ying.huang@intel.com>2008-01-30 07:33:44 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:33:44 -0500
commitbeacfaac3f23b30814aafee37a055257c7062ef3 (patch)
tree9a9a25cafa5fa4b79026caa8b0b442dc54b78889 /arch/x86/kernel
parent4716e79c9946044a53a65418cfba04836f6a5c36 (diff)
x86 32-bit boot: rename bt_ioremap() to early_ioremap()
This patch renames bt_ioremap to early_ioremap, which is used in x86_64. This makes it easier to merge i386 and x86_64 usage. [ mingo@elte.hu: fix ] Signed-off-by: Huang Ying <ying.huang@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/efi.c24
-rw-r--r--arch/x86/kernel/efi_32.c2
-rw-r--r--arch/x86/kernel/setup_32.c6
-rw-r--r--arch/x86/kernel/srat_32.c6
4 files changed, 19 insertions, 19 deletions
diff --git a/arch/x86/kernel/efi.c b/arch/x86/kernel/efi.c
index 2939b015c2ed..5d492f99d967 100644
--- a/arch/x86/kernel/efi.c
+++ b/arch/x86/kernel/efi.c
@@ -256,12 +256,12 @@ void __init efi_init(void)
256 memmap.desc_version = boot_params.efi_info.efi_memdesc_version; 256 memmap.desc_version = boot_params.efi_info.efi_memdesc_version;
257 memmap.desc_size = boot_params.efi_info.efi_memdesc_size; 257 memmap.desc_size = boot_params.efi_info.efi_memdesc_size;
258 258
259 efi.systab = efi_early_ioremap((unsigned long)efi_phys.systab, 259 efi.systab = early_ioremap((unsigned long)efi_phys.systab,
260 sizeof(efi_system_table_t)); 260 sizeof(efi_system_table_t));
261 if (efi.systab == NULL) 261 if (efi.systab == NULL)
262 printk(KERN_ERR "Couldn't map the EFI system table!\n"); 262 printk(KERN_ERR "Couldn't map the EFI system table!\n");
263 memcpy(&efi_systab, efi.systab, sizeof(efi_system_table_t)); 263 memcpy(&efi_systab, efi.systab, sizeof(efi_system_table_t));
264 efi_early_iounmap(efi.systab, sizeof(efi_system_table_t)); 264 early_iounmap(efi.systab, sizeof(efi_system_table_t));
265 efi.systab = &efi_systab; 265 efi.systab = &efi_systab;
266 266
267 /* 267 /*
@@ -278,14 +278,14 @@ void __init efi_init(void)
278 /* 278 /*
279 * Show what we know for posterity 279 * Show what we know for posterity
280 */ 280 */
281 c16 = tmp = efi_early_ioremap(efi.systab->fw_vendor, 2); 281 c16 = tmp = early_ioremap(efi.systab->fw_vendor, 2);
282 if (c16) { 282 if (c16) {
283 for (i = 0; i < sizeof(vendor) && *c16; ++i) 283 for (i = 0; i < sizeof(vendor) && *c16; ++i)
284 vendor[i] = *c16++; 284 vendor[i] = *c16++;
285 vendor[i] = '\0'; 285 vendor[i] = '\0';
286 } else 286 } else
287 printk(KERN_ERR PFX "Could not map the firmware vendor!\n"); 287 printk(KERN_ERR PFX "Could not map the firmware vendor!\n");
288 efi_early_iounmap(tmp, 2); 288 early_iounmap(tmp, 2);
289 289
290 printk(KERN_INFO "EFI v%u.%.02u by %s \n", 290 printk(KERN_INFO "EFI v%u.%.02u by %s \n",
291 efi.systab->hdr.revision >> 16, 291 efi.systab->hdr.revision >> 16,
@@ -294,7 +294,7 @@ void __init efi_init(void)
294 /* 294 /*
295 * Let's see what config tables the firmware passed to us. 295 * Let's see what config tables the firmware passed to us.
296 */ 296 */
297 config_tables = efi_early_ioremap( 297 config_tables = early_ioremap(
298 efi.systab->tables, 298 efi.systab->tables,
299 efi.systab->nr_tables * sizeof(efi_config_table_t)); 299 efi.systab->nr_tables * sizeof(efi_config_table_t));
300 if (config_tables == NULL) 300 if (config_tables == NULL)
@@ -328,7 +328,7 @@ void __init efi_init(void)
328 } 328 }
329 } 329 }
330 printk("\n"); 330 printk("\n");
331 efi_early_iounmap(config_tables, 331 early_iounmap(config_tables,
332 efi.systab->nr_tables * sizeof(efi_config_table_t)); 332 efi.systab->nr_tables * sizeof(efi_config_table_t));
333 333
334 /* 334 /*
@@ -337,8 +337,8 @@ void __init efi_init(void)
337 * address of several of the EFI runtime functions, needed to 337 * address of several of the EFI runtime functions, needed to
338 * set the firmware into virtual mode. 338 * set the firmware into virtual mode.
339 */ 339 */
340 runtime = efi_early_ioremap((unsigned long)efi.systab->runtime, 340 runtime = early_ioremap((unsigned long)efi.systab->runtime,
341 sizeof(efi_runtime_services_t)); 341 sizeof(efi_runtime_services_t));
342 if (runtime != NULL) { 342 if (runtime != NULL) {
343 /* 343 /*
344 * We will only need *early* access to the following 344 * We will only need *early* access to the following
@@ -357,11 +357,11 @@ void __init efi_init(void)
357 } else 357 } else
358 printk(KERN_ERR "Could not map the EFI runtime service " 358 printk(KERN_ERR "Could not map the EFI runtime service "
359 "table!\n"); 359 "table!\n");
360 efi_early_iounmap(runtime, sizeof(efi_runtime_services_t)); 360 early_iounmap(runtime, sizeof(efi_runtime_services_t));
361 361
362 /* Map the EFI memory map */ 362 /* Map the EFI memory map */
363 memmap.map = efi_early_ioremap((unsigned long)memmap.phys_map, 363 memmap.map = early_ioremap((unsigned long)memmap.phys_map,
364 memmap.nr_map * memmap.desc_size); 364 memmap.nr_map * memmap.desc_size);
365 if (memmap.map == NULL) 365 if (memmap.map == NULL)
366 printk(KERN_ERR "Could not map the EFI memory map!\n"); 366 printk(KERN_ERR "Could not map the EFI memory map!\n");
367 memmap.map_end = memmap.map + (memmap.nr_map * memmap.desc_size); 367 memmap.map_end = memmap.map + (memmap.nr_map * memmap.desc_size);
diff --git a/arch/x86/kernel/efi_32.c b/arch/x86/kernel/efi_32.c
index afd2c3b039d6..114b896d7573 100644
--- a/arch/x86/kernel/efi_32.c
+++ b/arch/x86/kernel/efi_32.c
@@ -117,7 +117,7 @@ void __init efi_map_memmap(void)
117{ 117{
118 memmap.map = NULL; 118 memmap.map = NULL;
119 119
120 memmap.map = bt_ioremap((unsigned long) memmap.phys_map, 120 memmap.map = early_ioremap((unsigned long) memmap.phys_map,
121 (memmap.nr_map * memmap.desc_size)); 121 (memmap.nr_map * memmap.desc_size));
122 if (memmap.map == NULL) 122 if (memmap.map == NULL)
123 printk(KERN_ERR "Could not remap the EFI memmap!\n"); 123 printk(KERN_ERR "Could not remap the EFI memmap!\n");
diff --git a/arch/x86/kernel/setup_32.c b/arch/x86/kernel/setup_32.c
index 35db426de300..c038b09b1723 100644
--- a/arch/x86/kernel/setup_32.c
+++ b/arch/x86/kernel/setup_32.c
@@ -577,9 +577,9 @@ static void __init relocate_initrd(void)
577 if (clen > MAX_MAP_CHUNK-slop) 577 if (clen > MAX_MAP_CHUNK-slop)
578 clen = MAX_MAP_CHUNK-slop; 578 clen = MAX_MAP_CHUNK-slop;
579 mapaddr = ramdisk_image & PAGE_MASK; 579 mapaddr = ramdisk_image & PAGE_MASK;
580 p = bt_ioremap(mapaddr, clen+slop); 580 p = early_ioremap(mapaddr, clen+slop);
581 memcpy(q, p+slop, clen); 581 memcpy(q, p+slop, clen);
582 bt_iounmap(p, clen+slop); 582 early_iounmap(p, clen+slop);
583 q += clen; 583 q += clen;
584 ramdisk_image += clen; 584 ramdisk_image += clen;
585 ramdisk_size -= clen; 585 ramdisk_size -= clen;
@@ -697,7 +697,7 @@ void __init setup_arch(char **cmdline_p)
697 memcpy(&boot_cpu_data, &new_cpu_data, sizeof(new_cpu_data)); 697 memcpy(&boot_cpu_data, &new_cpu_data, sizeof(new_cpu_data));
698 pre_setup_arch_hook(); 698 pre_setup_arch_hook();
699 early_cpu_init(); 699 early_cpu_init();
700 bt_ioremap_init(); 700 early_ioremap_init();
701 701
702#ifdef CONFIG_EFI 702#ifdef CONFIG_EFI
703 if (!strncmp((char *)&boot_params.efi_info.efi_loader_signature, 703 if (!strncmp((char *)&boot_params.efi_info.efi_loader_signature,
diff --git a/arch/x86/kernel/srat_32.c b/arch/x86/kernel/srat_32.c
index 24bfd4a9e62a..2bf6903cb444 100644
--- a/arch/x86/kernel/srat_32.c
+++ b/arch/x86/kernel/srat_32.c
@@ -297,7 +297,7 @@ int __init get_memcfg_from_srat(void)
297 } 297 }
298 298
299 rsdt = (struct acpi_table_rsdt *) 299 rsdt = (struct acpi_table_rsdt *)
300 bt_ioremap(rsdp->rsdt_physical_address, sizeof(struct acpi_table_rsdt)); 300 early_ioremap(rsdp->rsdt_physical_address, sizeof(struct acpi_table_rsdt));
301 301
302 if (!rsdt) { 302 if (!rsdt) {
303 printk(KERN_WARNING 303 printk(KERN_WARNING
@@ -337,11 +337,11 @@ int __init get_memcfg_from_srat(void)
337 for (i = 0; i < tables; i++) { 337 for (i = 0; i < tables; i++) {
338 /* Map in header, then map in full table length. */ 338 /* Map in header, then map in full table length. */
339 header = (struct acpi_table_header *) 339 header = (struct acpi_table_header *)
340 bt_ioremap(saved_rsdt.table.table_offset_entry[i], sizeof(struct acpi_table_header)); 340 early_ioremap(saved_rsdt.table.table_offset_entry[i], sizeof(struct acpi_table_header));
341 if (!header) 341 if (!header)
342 break; 342 break;
343 header = (struct acpi_table_header *) 343 header = (struct acpi_table_header *)
344 bt_ioremap(saved_rsdt.table.table_offset_entry[i], header->length); 344 early_ioremap(saved_rsdt.table.table_offset_entry[i], header->length);
345 if (!header) 345 if (!header)
346 break; 346 break;
347 347