diff options
| author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 12:00:30 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 12:00:30 -0400 |
| commit | 5c8e191e8437616a498a8e1cc0af3dd0d32bbff2 (patch) | |
| tree | 78ed04467e3bd034eaa9696cdf8d668ba7e16381 | |
| parent | cbfee34520666862f8ff539e580c48958fbb7706 (diff) | |
| parent | 3ea335100014785fd2518461705654b200e58d00 (diff) | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/hpa/linux-2.6-x86setup
* 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/hpa/linux-2.6-x86setup:
Remove magic macros for screen_info structure members
[x86] remove uses of magic macros for boot_params access
| -rw-r--r-- | arch/arm/mach-footbridge/cats-hw.c | 6 | ||||
| -rw-r--r-- | arch/x86/boot/Makefile | 1 | ||||
| -rw-r--r-- | arch/x86/kernel/e820_64.c | 19 | ||||
| -rw-r--r-- | arch/x86/kernel/early_printk.c | 15 | ||||
| -rw-r--r-- | arch/x86/kernel/efi_32.c | 15 | ||||
| -rw-r--r-- | arch/x86/kernel/head64.c | 20 | ||||
| -rw-r--r-- | arch/x86/kernel/setup64.c | 4 | ||||
| -rw-r--r-- | arch/x86/kernel/setup_32.c | 67 | ||||
| -rw-r--r-- | arch/x86/kernel/setup_64.c | 51 | ||||
| -rw-r--r-- | arch/x86/mach-default/setup.c | 12 | ||||
| -rw-r--r-- | arch/x86/mach-visws/setup.c | 2 | ||||
| -rw-r--r-- | arch/x86/mach-voyager/setup.c | 14 | ||||
| -rw-r--r-- | arch/x86/mm/discontig_32.c | 5 | ||||
| -rw-r--r-- | arch/x86/xen/enlighten.c | 7 | ||||
| -rw-r--r-- | drivers/lguest/lguest.c | 4 | ||||
| -rw-r--r-- | drivers/video/console/dummycon.c | 4 | ||||
| -rw-r--r-- | drivers/video/console/vgacon.c | 51 | ||||
| -rw-r--r-- | drivers/video/intelfb/intelfbdrv.c | 5 | ||||
| -rw-r--r-- | drivers/video/vga16fb.c | 2 | ||||
| -rw-r--r-- | include/asm-x86/Kbuild | 1 | ||||
| -rw-r--r-- | include/asm-x86/bootparam.h | 3 | ||||
| -rw-r--r-- | include/asm-x86/bootsetup.h | 40 | ||||
| -rw-r--r-- | include/asm-x86/setup_32.h | 29 | ||||
| -rw-r--r-- | include/asm-x86/setup_64.h | 13 | ||||
| -rw-r--r-- | include/linux/screen_info.h | 9 |
25 files changed, 173 insertions, 226 deletions
diff --git a/arch/arm/mach-footbridge/cats-hw.c b/arch/arm/mach-footbridge/cats-hw.c index ef6ccc8993e9..c261472208cb 100644 --- a/arch/arm/mach-footbridge/cats-hw.c +++ b/arch/arm/mach-footbridge/cats-hw.c | |||
| @@ -78,9 +78,9 @@ static void __init | |||
| 78 | fixup_cats(struct machine_desc *desc, struct tag *tags, | 78 | fixup_cats(struct machine_desc *desc, struct tag *tags, |
| 79 | char **cmdline, struct meminfo *mi) | 79 | char **cmdline, struct meminfo *mi) |
| 80 | { | 80 | { |
| 81 | ORIG_VIDEO_LINES = 25; | 81 | screen_info.orig_video_lines = 25; |
| 82 | ORIG_VIDEO_POINTS = 16; | 82 | screen_info.orig_video_points = 16; |
| 83 | ORIG_Y = 24; | 83 | screen_info.orig_y = 24; |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | MACHINE_START(CATS, "Chalice-CATS") | 86 | MACHINE_START(CATS, "Chalice-CATS") |
diff --git a/arch/x86/boot/Makefile b/arch/x86/boot/Makefile index e8756e5f6b29..89dbf970e058 100644 --- a/arch/x86/boot/Makefile +++ b/arch/x86/boot/Makefile | |||
| @@ -39,6 +39,7 @@ setup-y += printf.o string.o tty.o video.o version.o voyager.o | |||
| 39 | setup-y += video-vga.o | 39 | setup-y += video-vga.o |
| 40 | setup-y += video-vesa.o | 40 | setup-y += video-vesa.o |
| 41 | setup-y += video-bios.o | 41 | setup-y += video-bios.o |
| 42 | |||
| 42 | targets += $(setup-y) | 43 | targets += $(setup-y) |
| 43 | hostprogs-y := tools/build | 44 | hostprogs-y := tools/build |
| 44 | 45 | ||
diff --git a/arch/x86/kernel/e820_64.c b/arch/x86/kernel/e820_64.c index 0f4d5e209e9b..e422b8159f69 100644 --- a/arch/x86/kernel/e820_64.c +++ b/arch/x86/kernel/e820_64.c | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | #include <asm/page.h> | 24 | #include <asm/page.h> |
| 25 | #include <asm/e820.h> | 25 | #include <asm/e820.h> |
| 26 | #include <asm/proto.h> | 26 | #include <asm/proto.h> |
| 27 | #include <asm/bootsetup.h> | 27 | #include <asm/setup.h> |
| 28 | #include <asm/sections.h> | 28 | #include <asm/sections.h> |
| 29 | 29 | ||
| 30 | struct e820map e820; | 30 | struct e820map e820; |
| @@ -68,10 +68,15 @@ static inline int bad_addr(unsigned long *addrp, unsigned long size) | |||
| 68 | 68 | ||
| 69 | /* initrd */ | 69 | /* initrd */ |
| 70 | #ifdef CONFIG_BLK_DEV_INITRD | 70 | #ifdef CONFIG_BLK_DEV_INITRD |
| 71 | if (LOADER_TYPE && INITRD_START && last >= INITRD_START && | 71 | if (boot_params.hdr.type_of_loader && boot_params.hdr.ramdisk_image) { |
| 72 | addr < INITRD_START+INITRD_SIZE) { | 72 | unsigned long ramdisk_image = boot_params.hdr.ramdisk_image; |
| 73 | *addrp = PAGE_ALIGN(INITRD_START + INITRD_SIZE); | 73 | unsigned long ramdisk_size = boot_params.hdr.ramdisk_size; |
| 74 | return 1; | 74 | unsigned long ramdisk_end = ramdisk_image+ramdisk_size; |
| 75 | |||
| 76 | if (last >= ramdisk_image && addr < ramdisk_end) { | ||
| 77 | *addrp = PAGE_ALIGN(ramdisk_end); | ||
| 78 | return 1; | ||
| 79 | } | ||
| 75 | } | 80 | } |
| 76 | #endif | 81 | #endif |
| 77 | /* kernel code */ | 82 | /* kernel code */ |
| @@ -594,8 +599,8 @@ void __init setup_memory_region(void) | |||
| 594 | * Otherwise fake a memory map; one section from 0k->640k, | 599 | * Otherwise fake a memory map; one section from 0k->640k, |
| 595 | * the next section from 1mb->appropriate_mem_k | 600 | * the next section from 1mb->appropriate_mem_k |
| 596 | */ | 601 | */ |
| 597 | sanitize_e820_map(E820_MAP, &E820_MAP_NR); | 602 | sanitize_e820_map(boot_params.e820_map, &boot_params.e820_entries); |
| 598 | if (copy_e820_map(E820_MAP, E820_MAP_NR) < 0) | 603 | if (copy_e820_map(boot_params.e820_map, boot_params.e820_entries) < 0) |
| 599 | early_panic("Cannot find a valid memory map"); | 604 | early_panic("Cannot find a valid memory map"); |
| 600 | printk(KERN_INFO "BIOS-provided physical RAM map:\n"); | 605 | printk(KERN_INFO "BIOS-provided physical RAM map:\n"); |
| 601 | e820_print_map("BIOS-e820"); | 606 | e820_print_map("BIOS-e820"); |
diff --git a/arch/x86/kernel/early_printk.c b/arch/x86/kernel/early_printk.c index fd9aff3f3890..b7d6c23f2871 100644 --- a/arch/x86/kernel/early_printk.c +++ b/arch/x86/kernel/early_printk.c | |||
| @@ -6,15 +6,10 @@ | |||
| 6 | #include <asm/io.h> | 6 | #include <asm/io.h> |
| 7 | #include <asm/processor.h> | 7 | #include <asm/processor.h> |
| 8 | #include <asm/fcntl.h> | 8 | #include <asm/fcntl.h> |
| 9 | #include <asm/setup.h> | ||
| 9 | #include <xen/hvc-console.h> | 10 | #include <xen/hvc-console.h> |
| 10 | 11 | ||
| 11 | /* Simple VGA output */ | 12 | /* Simple VGA output */ |
| 12 | |||
| 13 | #ifdef __i386__ | ||
| 14 | #include <asm/setup.h> | ||
| 15 | #else | ||
| 16 | #include <asm/bootsetup.h> | ||
| 17 | #endif | ||
| 18 | #define VGABASE (__ISA_IO_base + 0xb8000) | 13 | #define VGABASE (__ISA_IO_base + 0xb8000) |
| 19 | 14 | ||
| 20 | static int max_ypos = 25, max_xpos = 80; | 15 | static int max_ypos = 25, max_xpos = 80; |
| @@ -234,10 +229,10 @@ static int __init setup_early_printk(char *buf) | |||
| 234 | early_serial_init(buf); | 229 | early_serial_init(buf); |
| 235 | early_console = &early_serial_console; | 230 | early_console = &early_serial_console; |
| 236 | } else if (!strncmp(buf, "vga", 3) | 231 | } else if (!strncmp(buf, "vga", 3) |
| 237 | && SCREEN_INFO.orig_video_isVGA == 1) { | 232 | && boot_params.screen_info.orig_video_isVGA == 1) { |
| 238 | max_xpos = SCREEN_INFO.orig_video_cols; | 233 | max_xpos = boot_params.screen_info.orig_video_cols; |
| 239 | max_ypos = SCREEN_INFO.orig_video_lines; | 234 | max_ypos = boot_params.screen_info.orig_video_lines; |
| 240 | current_ypos = SCREEN_INFO.orig_y; | 235 | current_ypos = boot_params.screen_info.orig_y; |
| 241 | early_console = &early_vga_console; | 236 | early_console = &early_vga_console; |
| 242 | } else if (!strncmp(buf, "simnow", 6)) { | 237 | } else if (!strncmp(buf, "simnow", 6)) { |
| 243 | simnow_init(buf + 6); | 238 | simnow_init(buf + 6); |
diff --git a/arch/x86/kernel/efi_32.c b/arch/x86/kernel/efi_32.c index 2452c6fbe992..b42558c48e9d 100644 --- a/arch/x86/kernel/efi_32.c +++ b/arch/x86/kernel/efi_32.c | |||
| @@ -331,11 +331,13 @@ void __init efi_init(void) | |||
| 331 | memset(&efi, 0, sizeof(efi) ); | 331 | memset(&efi, 0, sizeof(efi) ); |
| 332 | memset(&efi_phys, 0, sizeof(efi_phys)); | 332 | memset(&efi_phys, 0, sizeof(efi_phys)); |
| 333 | 333 | ||
| 334 | efi_phys.systab = EFI_SYSTAB; | 334 | efi_phys.systab = |
| 335 | memmap.phys_map = EFI_MEMMAP; | 335 | (efi_system_table_t *)boot_params.efi_info.efi_systab; |
| 336 | memmap.nr_map = EFI_MEMMAP_SIZE/EFI_MEMDESC_SIZE; | 336 | memmap.phys_map = (void *)boot_params.efi_info.efi_memmap; |
| 337 | memmap.desc_version = EFI_MEMDESC_VERSION; | 337 | memmap.nr_map = boot_params.efi_info.efi_memmap_size/ |
| 338 | memmap.desc_size = EFI_MEMDESC_SIZE; | 338 | boot_params.efi_info.efi_memdesc_size; |
| 339 | memmap.desc_version = boot_params.efi_info.efi_memdesc_version; | ||
| 340 | memmap.desc_size = boot_params.efi_info.efi_memdesc_size; | ||
| 339 | 341 | ||
| 340 | efi.systab = (efi_system_table_t *) | 342 | efi.systab = (efi_system_table_t *) |
| 341 | boot_ioremap((unsigned long) efi_phys.systab, | 343 | boot_ioremap((unsigned long) efi_phys.systab, |
| @@ -446,7 +448,8 @@ void __init efi_init(void) | |||
| 446 | printk(KERN_ERR PFX "Could not map the runtime service table!\n"); | 448 | printk(KERN_ERR PFX "Could not map the runtime service table!\n"); |
| 447 | 449 | ||
| 448 | /* Map the EFI memory map for use until paging_init() */ | 450 | /* Map the EFI memory map for use until paging_init() */ |
| 449 | memmap.map = boot_ioremap((unsigned long) EFI_MEMMAP, EFI_MEMMAP_SIZE); | 451 | memmap.map = boot_ioremap(boot_params. |
