include/linux/screen_info.h | 9
75 files changed, 4594 insertions(+), 5204 deletions(-)
-diff -puN MAINTAINERS~git-newsetup MAINTAINERS
---- a/MAINTAINERS~git-newsetup
-+++ a/MAINTAINERS
-@@ -1774,8 +1774,8 @@ T: http://www.harbaum.org/till/i2c_tiny_
+Index: linux-2.6.22.19/MAINTAINERS
+===================================================================
+--- linux-2.6.22.19.orig/MAINTAINERS
++++ linux-2.6.22.19/MAINTAINERS
+@@ -1750,8 +1750,8 @@ T: http://www.harbaum.org/till/i2c_tiny_
S: Maintained
i386 BOOT CODE
L: Linux-Kernel@vger.kernel.org
S: Maintained
-diff -puN arch/i386/Kconfig.cpu~git-newsetup arch/i386/Kconfig.cpu
---- a/arch/i386/Kconfig.cpu~git-newsetup
-+++ a/arch/i386/Kconfig.cpu
+Index: linux-2.6.22.19/arch/i386/Kconfig.cpu
+===================================================================
+--- linux-2.6.22.19.orig/arch/i386/Kconfig.cpu
++++ linux-2.6.22.19/arch/i386/Kconfig.cpu
@@ -346,6 +346,6 @@ config X86_CMOV
config X86_MINIMUM_CPU_MODEL
+ default "4" if X86_XADD || X86_CMPXCHG || X86_BSWAP || X86_WP_WORKS_OK
+ default "3"
-diff -puN arch/i386/boot/Makefile~git-newsetup arch/i386/boot/Makefile
---- a/arch/i386/boot/Makefile~git-newsetup
-+++ a/arch/i386/boot/Makefile
+Index: linux-2.6.22.19/arch/i386/boot/Makefile
+===================================================================
+--- linux-2.6.22.19.orig/arch/i386/boot/Makefile
++++ linux-2.6.22.19/arch/i386/boot/Makefile
@@ -25,27 +25,53 @@ SVGA_MODE := -DSVGA_MODE=NORMAL_VGA
#RAMDISK := -DRAMDISK=512
$(obj)/compressed/vmlinux: FORCE
$(Q)$(MAKE) $(build)=$(obj)/compressed IMAGE_OFFSET=$(IMAGE_OFFSET) $@
-diff -puN /dev/null arch/i386/boot/a20.c
+Index: linux-2.6.22.19/arch/i386/boot/a20.c
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/a20.c
++++ linux-2.6.22.19/arch/i386/boot/a20.c
@@ -0,0 +1,161 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+ return -1;
+#endif
+}
-diff -puN /dev/null arch/i386/boot/apm.c
+Index: linux-2.6.22.19/arch/i386/boot/apm.c
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/apm.c
++++ linux-2.6.22.19/arch/i386/boot/apm.c
@@ -0,0 +1,97 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+}
+
+#endif
-diff -puN /dev/null arch/i386/boot/bitops.h
+Index: linux-2.6.22.19/arch/i386/boot/bitops.h
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/bitops.h
++++ linux-2.6.22.19/arch/i386/boot/bitops.h
@@ -0,0 +1,45 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+}
+
+#endif /* BOOT_BITOPS_H */
-diff -puN /dev/null arch/i386/boot/boot.h
+Index: linux-2.6.22.19/arch/i386/boot/boot.h
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/boot.h
++++ linux-2.6.22.19/arch/i386/boot/boot.h
@@ -0,0 +1,290 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+#endif /* __ASSEMBLY__ */
+
+#endif /* BOOT_BOOT_H */
-diff -puN arch/i386/boot/bootsect.S~git-newsetup /dev/null
---- a/arch/i386/boot/bootsect.S
+Index: linux-2.6.22.19/arch/i386/boot/bootsect.S
+===================================================================
+--- linux-2.6.22.19.orig/arch/i386/boot/bootsect.S
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
-vid_mode: .word SVGA_MODE
-root_dev: .word ROOT_DEV
-boot_flag: .word 0xAA55
-diff -puN /dev/null arch/i386/boot/cmdline.c
+Index: linux-2.6.22.19/arch/i386/boot/cmdline.c
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/cmdline.c
++++ linux-2.6.22.19/arch/i386/boot/cmdline.c
@@ -0,0 +1,97 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+
+ return len;
+}
-diff -puN /dev/null arch/i386/boot/code16gcc.h
+Index: linux-2.6.22.19/arch/i386/boot/code16gcc.h
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/code16gcc.h
++++ linux-2.6.22.19/arch/i386/boot/code16gcc.h
@@ -0,0 +1,9 @@
+/*
+ * code16gcc.h
+#ifndef __ASSEMBLY__
+asm(".code16gcc");
+#endif
-diff -puN arch/i386/boot/compressed/Makefile~git-newsetup arch/i386/boot/compressed/Makefile
---- a/arch/i386/boot/compressed/Makefile~git-newsetup
-+++ a/arch/i386/boot/compressed/Makefile
+Index: linux-2.6.22.19/arch/i386/boot/compressed/Makefile
+===================================================================
+--- linux-2.6.22.19.orig/arch/i386/boot/compressed/Makefile
++++ linux-2.6.22.19/arch/i386/boot/compressed/Makefile
@@ -9,9 +9,14 @@ targets := vmlinux vmlinux.bin vmlinux.
EXTRA_AFLAGS := -traditional
$(obj)/vmlinux: $(src)/vmlinux.lds $(obj)/head.o $(obj)/misc.o $(obj)/piggy.o FORCE
$(call if_changed,ld)
@:
-diff -puN arch/i386/boot/compressed/head.S~git-newsetup arch/i386/boot/compressed/head.S
---- a/arch/i386/boot/compressed/head.S~git-newsetup
-+++ a/arch/i386/boot/compressed/head.S
+Index: linux-2.6.22.19/arch/i386/boot/compressed/head.S
+===================================================================
+--- linux-2.6.22.19.orig/arch/i386/boot/compressed/head.S
++++ linux-2.6.22.19/arch/i386/boot/compressed/head.S
@@ -45,10 +45,10 @@ startup_32:
* at and where we were actually loaded at. This can only be done
* with a short local call on x86. Nothing else will tell us what
call 1f
1: popl %ebp
subl $1b, %ebp
-diff -puN arch/i386/boot/compressed/misc.c~git-newsetup arch/i386/boot/compressed/misc.c
---- a/arch/i386/boot/compressed/misc.c~git-newsetup
-+++ a/arch/i386/boot/compressed/misc.c
+Index: linux-2.6.22.19/arch/i386/boot/compressed/misc.c
+===================================================================
+--- linux-2.6.22.19.orig/arch/i386/boot/compressed/misc.c
++++ linux-2.6.22.19/arch/i386/boot/compressed/misc.c
@@ -11,7 +11,6 @@
#undef CONFIG_PARAVIRT
#ifndef CONFIG_RELOCATABLE
if ((u32)output != LOAD_PHYSICAL_ADDR)
error("Wrong destination address");
-diff -puN /dev/null arch/i386/boot/copy.S
+Index: linux-2.6.22.19/arch/i386/boot/copy.S
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/copy.S
++++ linux-2.6.22.19/arch/i386/boot/copy.S
@@ -0,0 +1,101 @@
+/* ----------------------------------------------------------------------- *
+ *
+ .size copy_to_gs, .-copy_to_gs
+
+#endif
-diff -puN /dev/null arch/i386/boot/cpu.c
+Index: linux-2.6.22.19/arch/i386/boot/cpu.c
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/cpu.c
++++ linux-2.6.22.19/arch/i386/boot/cpu.c
@@ -0,0 +1,69 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+ return 0;
+ }
+}
-diff -puN /dev/null arch/i386/boot/cpucheck.c
+Index: linux-2.6.22.19/arch/i386/boot/cpucheck.c
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/cpucheck.c
++++ linux-2.6.22.19/arch/i386/boot/cpucheck.c
@@ -0,0 +1,266 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+
+ return (cpu.level < req_level || err) ? -1 : 0;
+}
-diff -puN arch/i386/boot/edd.S~git-newsetup /dev/null
---- a/arch/i386/boot/edd.S
+Index: linux-2.6.22.19/arch/i386/boot/edd.S
+===================================================================
+--- linux-2.6.22.19.orig/arch/i386/boot/edd.S
+++ /dev/null
@@ -1,231 +0,0 @@
-/*
-
-edd_done:
-#endif
-diff -puN /dev/null arch/i386/boot/edd.c
+Index: linux-2.6.22.19/arch/i386/boot/edd.c
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/edd.c
++++ linux-2.6.22.19/arch/i386/boot/edd.c
@@ -0,0 +1,196 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+}
+
+#endif
-diff -puN /dev/null arch/i386/boot/header.S
+Index: linux-2.6.22.19/arch/i386/boot/header.S
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/header.S
++++ linux-2.6.22.19/arch/i386/boot/header.S
@@ -0,0 +1,283 @@
+/*
+ * header.S
+setup_corrupt:
+ .byte 7
+ .string "No setup signature found..."
-diff -puN /dev/null arch/i386/boot/main.c
+Index: linux-2.6.22.19/arch/i386/boot/main.c
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/main.c
++++ linux-2.6.22.19/arch/i386/boot/main.c
@@ -0,0 +1,161 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+ /* Do the last things and invoke protected mode */
+ go_to_protected_mode();
+}
-diff -puN /dev/null arch/i386/boot/mca.c
+Index: linux-2.6.22.19/arch/i386/boot/mca.c
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/mca.c
++++ linux-2.6.22.19/arch/i386/boot/mca.c
@@ -0,0 +1,43 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+ copy_from_fs(&boot_params.sys_desc_table, bx, len);
+ return 0;
+}
-diff -puN /dev/null arch/i386/boot/memory.c
+Index: linux-2.6.22.19/arch/i386/boot/memory.c
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/memory.c
++++ linux-2.6.22.19/arch/i386/boot/memory.c
@@ -0,0 +1,99 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+
+ return detect_memory_88();
+}
-diff -puN /dev/null arch/i386/boot/pm.c
+Index: linux-2.6.22.19/arch/i386/boot/pm.c
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/pm.c
++++ linux-2.6.22.19/arch/i386/boot/pm.c
@@ -0,0 +1,170 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+ protected_mode_jump(boot_params.hdr.code32_start,
+ (u32)&boot_params + (ds() << 4));
+}
-diff -puN /dev/null arch/i386/boot/pmjump.S
+Index: linux-2.6.22.19/arch/i386/boot/pmjump.S
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/pmjump.S
++++ linux-2.6.22.19/arch/i386/boot/pmjump.S
@@ -0,0 +1,54 @@
+/* ----------------------------------------------------------------------- *
+ *
+ .word __BOOT_CS # segment
+
+ .size protected_mode_jump, .-protected_mode_jump
-diff -puN /dev/null arch/i386/boot/printf.c
+Index: linux-2.6.22.19/arch/i386/boot/printf.c
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/printf.c
++++ linux-2.6.22.19/arch/i386/boot/printf.c
@@ -0,0 +1,331 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+
+ return printed;
+}
-diff -puN arch/i386/boot/setup.S~git-newsetup /dev/null
---- a/arch/i386/boot/setup.S
+Index: linux-2.6.22.19/arch/i386/boot/setup.S
+===================================================================
+--- linux-2.6.22.19.orig/arch/i386/boot/setup.S
+++ /dev/null
@@ -1,1075 +0,0 @@
-/*
-enddata:
-.bss
-endbss:
-diff -puN /dev/null arch/i386/boot/setup.ld
+Index: linux-2.6.22.19/arch/i386/boot/setup.ld
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/setup.ld
++++ linux-2.6.22.19/arch/i386/boot/setup.ld
@@ -0,0 +1,54 @@
+/*
+ * setup.ld
+ . = ASSERT(_end <= 0x8000, "Setup too big!");
+ . = ASSERT(hdr == 0x1f1, "The setup header has the wrong offset!");
+}
-diff -puN /dev/null arch/i386/boot/string.c
+Index: linux-2.6.22.19/arch/i386/boot/string.c
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/string.c
++++ linux-2.6.22.19/arch/i386/boot/string.c
@@ -0,0 +1,34 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+ }
+ return 0;
+}
-diff -puN arch/i386/boot/tools/build.c~git-newsetup arch/i386/boot/tools/build.c
---- a/arch/i386/boot/tools/build.c~git-newsetup
-+++ a/arch/i386/boot/tools/build.c
+Index: linux-2.6.22.19/arch/i386/boot/tools/build.c
+===================================================================
+--- linux-2.6.22.19.orig/arch/i386/boot/tools/build.c
++++ linux-2.6.22.19/arch/i386/boot/tools/build.c
@@ -1,13 +1,12 @@
/*
* Copyright (C) 1991, 1992 Linus Torvalds
+ /* Everything is OK */
+ return 0;
}
-diff -puN /dev/null arch/i386/boot/tty.c
+Index: linux-2.6.22.19/arch/i386/boot/tty.c
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/tty.c
++++ linux-2.6.22.19/arch/i386/boot/tty.c
@@ -0,0 +1,112 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+
+ return 0; /* Timeout! */
+}
-diff -puN /dev/null arch/i386/boot/version.c
+Index: linux-2.6.22.19/arch/i386/boot/version.c
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/version.c
++++ linux-2.6.22.19/arch/i386/boot/version.c
@@ -0,0 +1,23 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+const char kernel_version[] =
+ UTS_RELEASE " (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ") "
+ UTS_VERSION;
-diff -puN /dev/null arch/i386/boot/vesa.h
+Index: linux-2.6.22.19/arch/i386/boot/vesa.h
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/vesa.h
++++ linux-2.6.22.19/arch/i386/boot/vesa.h
@@ -0,0 +1,79 @@
+/* ----------------------------------------------------------------------- *
+ *
+} __attribute__((packed));
+
+#endif /* LIB_SYS_VESA_H */
-diff -puN /dev/null arch/i386/boot/video-bios.c
+Index: linux-2.6.22.19/arch/i386/boot/video-bios.c
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/video-bios.c
++++ linux-2.6.22.19/arch/i386/boot/video-bios.c
@@ -0,0 +1,125 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+ .xmode_first = VIDEO_FIRST_BIOS,
+ .xmode_n = 0x80,
+};
-diff -puN /dev/null arch/i386/boot/video-vesa.c
+Index: linux-2.6.22.19/arch/i386/boot/video-vesa.c
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/video-vesa.c
++++ linux-2.6.22.19/arch/i386/boot/video-vesa.c
@@ -0,0 +1,283 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+ .xmode_first = VIDEO_FIRST_VESA,
+ .xmode_n = 0x200,
+};
-diff -puN /dev/null arch/i386/boot/video-vga.c
+Index: linux-2.6.22.19/arch/i386/boot/video-vga.c
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/video-vga.c
++++ linux-2.6.22.19/arch/i386/boot/video-vga.c
@@ -0,0 +1,260 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+ .probe = vga_probe,
+ .set_mode = vga_set_mode,
+};
-diff -puN arch/i386/boot/video.S~git-newsetup /dev/null
---- a/arch/i386/boot/video.S
+Index: linux-2.6.22.19/arch/i386/boot/video.S
+===================================================================
+--- linux-2.6.22.19.orig/arch/i386/boot/video.S
+++ /dev/null
@@ -1,2043 +0,0 @@
-/* video.S
-adapter: .byte 0 # Video adapter: 0=CGA/MDA/HGA,1=EGA,2=VGA
-video_segment: .word 0xb800 # Video memory segment
-force_size: .word 0 # Use this size instead of the one in BIOS vars
-diff -puN /dev/null arch/i386/boot/video.c
+Index: linux-2.6.22.19/arch/i386/boot/video.c
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/video.c
++++ linux-2.6.22.19/arch/i386/boot/video.c
@@ -0,0 +1,456 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+ if (do_restore)
+ restore_screen();
+}
-diff -puN /dev/null arch/i386/boot/video.h
+Index: linux-2.6.22.19/arch/i386/boot/video.h
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/video.h
++++ linux-2.6.22.19/arch/i386/boot/video.h
@@ -0,0 +1,145 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+u16 vga_crtc(void); /* video-vga.c */
+
+#endif /* BOOT_VIDEO_H */
-diff -puN /dev/null arch/i386/boot/voyager.c
+Index: linux-2.6.22.19/arch/i386/boot/voyager.c
+===================================================================
--- /dev/null
-+++ a/arch/i386/boot/voyager.c
++++ linux-2.6.22.19/arch/i386/boot/voyager.c
@@ -0,0 +1,46 @@
+/* -*- linux-c -*- ------------------------------------------------------- *
+ *
+}
+
+#endif /* CONFIG_X86_VOYAGER */
-diff -puN arch/i386/kernel/cpu/Makefile~git-newsetup arch/i386/kernel/cpu/Makefile
-diff -puN /dev/null arch/i386/kernel/cpu/addon_cpuid_features.c
+Index: linux-2.6.22.19/arch/i386/kernel/cpu/addon_cpuid_features.c
+===================================================================
--- /dev/null
-+++ a/arch/i386/kernel/cpu/addon_cpuid_features.c
++++ linux-2.6.22.19/arch/i386/kernel/cpu/addon_cpuid_features.c
@@ -0,0 +1,50 @@
+
+/*
+ set_bit(cb->feature, c->x86_capability);
+ }
+}
-diff -puN arch/i386/kernel/cpu/common.c~git-newsetup arch/i386/kernel/cpu/common.c
---- a/arch/i386/kernel/cpu/common.c~git-newsetup
-+++ a/arch/i386/kernel/cpu/common.c
+Index: linux-2.6.22.19/arch/i386/kernel/cpu/common.c
+===================================================================
+--- linux-2.6.22.19.orig/arch/i386/kernel/cpu/common.c
++++ linux-2.6.22.19/arch/i386/kernel/cpu/common.c
@@ -353,6 +353,8 @@ static void __cpuinit generic_identify(s
if ( xlvl >= 0x80000004 )
get_model_name(c); /* Default name */
}
early_intel_workaround(c);
-diff -puN arch/i386/kernel/cpu/proc.c~git-newsetup arch/i386/kernel/cpu/proc.c
---- a/arch/i386/kernel/cpu/proc.c~git-newsetup
-+++ a/arch/i386/kernel/cpu/proc.c
+Index: linux-2.6.22.19/arch/i386/kernel/cpu/proc.c
+===================================================================
+--- linux-2.6.22.19.orig/arch/i386/kernel/cpu/proc.c
++++ linux-2.6.22.19/arch/i386/kernel/cpu/proc.c
@@ -29,7 +29,8 @@ static int show_cpuinfo(struct seq_file
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, "syscall", NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
};
-diff -puN arch/i386/kernel/e820.c~git-newsetup arch/i386/kernel/e820.c
---- a/arch/i386/kernel/e820.c~git-newsetup
-+++ a/arch/i386/kernel/e820.c
-@@ -766,7 +766,7 @@ void __init print_memory_map(char *who)
+Index: linux-2.6.22.19/arch/i386/kernel/e820.c
+===================================================================
+--- linux-2.6.22.19.orig/arch/i386/kernel/e820.c
++++ linux-2.6.22.19/arch/i386/kernel/e820.c
+@@ -734,7 +734,7 @@ void __init print_memory_map(char *who)
case E820_NVS:
printk("(ACPI NVS)\n");
break;
break;
}
}
-diff -puN arch/i386/kernel/setup.c~git-newsetup arch/i386/kernel/setup.c
---- a/arch/i386/kernel/setup.c~git-newsetup
-+++ a/arch/i386/kernel/setup.c
+Index: linux-2.6.22.19/arch/i386/kernel/setup.c
+===================================================================
+--- linux-2.6.22.19.orig/arch/i386/kernel/setup.c
++++ linux-2.6.22.19/arch/i386/kernel/setup.c
@@ -102,19 +102,10 @@ static unsigned int highmem_pages = -1;
/*
* Setup options
screen_info = SCREEN_INFO;
edid_info = EDID_INFO;
apm_info.bios = APM_BIOS_INFO;
-diff -puN arch/i386/kernel/verify_cpu.S~git-newsetup /dev/null
---- a/arch/i386/kernel/verify_cpu.S
+Index: linux-2.6.22.19/arch/i386/kernel/verify_cpu.S
+===================================================================
+--- linux-2.6.22.19.orig/arch/i386/kernel/verify_cpu.S
+++ /dev/null
@@ -1,94 +0,0 @@
-/* Check if CPU has some minimum CPUID bits
- popfl
- movl $1,%eax
- ret
-diff -puN arch/x86_64/Kconfig~git-newsetup arch/x86_64/Kconfig
---- a/arch/x86_64/Kconfig~git-newsetup
-+++ a/arch/x86_64/Kconfig
-@@ -453,6 +453,10 @@ config NR_CPUS
+Index: linux-2.6.22.19/arch/x86_64/Kconfig
+===================================================================
+--- linux-2.6.22.19.orig/arch/x86_64/Kconfig
++++ linux-2.6.22.19/arch/x86_64/Kconfig
+@@ -427,6 +427,10 @@ config NR_CPUS
This is purely to save memory - each supported CPU requires
memory in the static kernel configuration.
config HOTPLUG_CPU
bool "Support for suspend on SMP and hot-pluggable CPUs (EXPERIMENTAL)"
depends on SMP && HOTPLUG && EXPERIMENTAL
-diff -puN arch/x86_64/boot/Makefile~git-newsetup arch/x86_64/boot/Makefile
---- a/arch/x86_64/boot/Makefile~git-newsetup
-+++ a/arch/x86_64/boot/Makefile
+Index: linux-2.6.22.19/arch/x86_64/boot/Makefile
+===================================================================
+--- linux-2.6.22.19.orig/arch/x86_64/boot/Makefile
++++ linux-2.6.22.19/arch/x86_64/boot/Makefile
@@ -1,135 +1,9 @@
#
# arch/x86_64/boot/Makefile
- sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)"
+src := arch/i386/boot
+include $(src)/Makefile
-diff -puN arch/x86_64/boot/bootsect.S~git-newsetup /dev/null
---- a/arch/x86_64/boot/bootsect.S
+Index: linux-2.6.22.19/arch/x86_64/boot/bootsect.S
+===================================================================
+--- linux-2.6.22.19.orig/arch/x86_64/boot/bootsect.S
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
-vid_mode: .word SVGA_MODE
-root_dev: .word ROOT_DEV
-boot_flag: .word 0xAA55
-diff -puN arch/x86_64/boot/compressed/Makefile~git-newsetup arch/x86_64/boot/compressed/Makefile
---- a/arch/x86_64/boot/compressed/Makefile~git-newsetup
-+++ a/arch/x86_64/boot/compressed/Makefile
+Index: linux-2.6.22.19/arch/x86_64/boot/compressed/Makefile
+===================================================================
+--- linux-2.6.22.19.orig/arch/x86_64/boot/compressed/Makefile
++++ linux-2.6.22.19/arch/x86_64/boot/compressed/Makefile
@@ -7,11 +7,12 @@
#
LDFLAGS := -m elf_x86_64
LDFLAGS_vmlinux := -T
-diff -puN arch/x86_64/boot/compressed/head.S~git-newsetup arch/x86_64/boot/compressed/head.S
---- a/arch/x86_64/boot/compressed/head.S~git-newsetup
-+++ a/arch/x86_64/boot/compressed/head.S
+Index: linux-2.6.22.19/arch/x86_64/boot/compressed/head.S
+===================================================================
+--- linux-2.6.22.19.orig/arch/x86_64/boot/compressed/head.S
++++ linux-2.6.22.19/arch/x86_64/boot/compressed/head.S
@@ -46,10 +46,10 @@ startup_32:
* at and where we were actually loaded at. This can only be done
* with a short local call on x86. Nothing else will tell us what
call 1f
1: popl %ebp
subl $1b, %ebp
-diff -puN arch/x86_64/boot/install.sh~git-newsetup /dev/null
---- a/arch/x86_64/boot/install.sh
+Index: linux-2.6.22.19/arch/x86_64/boot/install.sh
+===================================================================
+--- linux-2.6.22.19.orig/arch/x86_64/boot/install.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-. $srctree/arch/i386/boot/install.sh
-diff -puN arch/x86_64/boot/mtools.conf.in~git-newsetup /dev/null
---- a/arch/x86_64/boot/mtools.conf.in
+Index: linux-2.6.22.19/arch/x86_64/boot/mtools.conf.in
+===================================================================
+--- linux-2.6.22.19.orig/arch/x86_64/boot/mtools.conf.in
+++ /dev/null
@@ -1,17 +0,0 @@
-#
- file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=36 filter
-
-
-diff -puN arch/x86_64/boot/setup.S~git-newsetup /dev/null
---- a/arch/x86_64/boot/setup.S
+Index: linux-2.6.22.19/arch/x86_64/boot/setup.S
+===================================================================
+--- linux-2.6.22.19.orig/arch/x86_64/boot/setup.S
+++ /dev/null
@@ -1,826 +0,0 @@
-/*
-enddata:
-.bss
-endbss:
-diff -puN arch/x86_64/boot/tools/build.c~git-newsetup /dev/null
---- a/arch/x86_64/boot/tools/build.c
+Index: linux-2.6.22.19/arch/x86_64/boot/tools/build.c
+===================================================================
+--- linux-2.6.22.19.orig/arch/x86_64/boot/tools/build.c
+++ /dev/null
@@ -1,185 +0,0 @@
-/*
-
- return 0; /* Everything is OK */
-}
-diff -puN arch/x86_64/kernel/Makefile~git-newsetup arch/x86_64/kernel/Makefile
---- a/arch/x86_64/kernel/Makefile~git-newsetup
-+++ a/arch/x86_64/kernel/Makefile
-@@ -45,6 +45,7 @@ obj-$(CONFIG_PCI) += early-quirks.o
+Index: linux-2.6.22.19/arch/x86_64/kernel/Makefile
+===================================================================
+--- linux-2.6.22.19.orig/arch/x86_64/kernel/Makefile
++++ linux-2.6.22.19/arch/x86_64/kernel/Makefile
+@@ -43,6 +43,7 @@ obj-$(CONFIG_PCI) += early-quirks.o
obj-y += topology.o
obj-y += intel_cacheinfo.o
obj-y += pcspeaker.o
CFLAGS_vsyscall.o := $(PROFILING) -g0
-@@ -58,6 +59,7 @@ cpuid-$(subst m,y,$(CONFIG_X86_CPUID))
+@@ -53,6 +54,7 @@ cpuid-$(subst m,y,$(CONFIG_X86_CPUID))
topology-y += ../../i386/kernel/topology.o
microcode-$(subst m,y,$(CONFIG_MICROCODE)) += ../../i386/kernel/microcode.o
intel_cacheinfo-y += ../../i386/kernel/cpu/intel_cacheinfo.o
quirks-y += ../../i386/kernel/quirks.o
i8237-y += ../../i386/kernel/i8237.o
msr-$(subst m,y,$(CONFIG_X86_MSR)) += ../../i386/kernel/msr.o
-diff -puN arch/x86_64/kernel/setup.c~git-newsetup arch/x86_64/kernel/setup.c
---- a/arch/x86_64/kernel/setup.c~git-newsetup
-+++ a/arch/x86_64/kernel/setup.c
-@@ -855,6 +855,8 @@ void __cpuinit identify_cpu(struct cpuin
+Index: linux-2.6.22.19/arch/x86_64/kernel/setup.c
+===================================================================
+--- linux-2.6.22.19.orig/arch/x86_64/kernel/setup.c
++++ linux-2.6.22.19/arch/x86_64/kernel/setup.c
+@@ -846,6 +846,8 @@ void __cpuinit identify_cpu(struct cpuin
c->x86_capability[2] = cpuid_edx(0x80860001);
}
c->apicid = phys_pkg_id(0);
/*
-@@ -940,7 +942,7 @@ static int show_cpuinfo(struct seq_file
+@@ -931,7 +933,7 @@ static int show_cpuinfo(struct seq_file
"fpu", "vme", "de", "pse", "tsc", "msr", "pae", "mce",
"cx8", "apic", NULL, "sep", "mtrr", "pge", "mca", "cmov",
"pat", "pse36", "pn", "clflush", NULL, "dts", "acpi", "mmx",
/* AMD-defined */
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
-@@ -956,10 +958,11 @@ static int show_cpuinfo(struct seq_file
+@@ -947,10 +949,11 @@ static int show_cpuinfo(struct seq_file
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
/* Other (Linux-defined) */
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
/* Intel-defined (#2) */
-@@ -970,7 +973,7 @@ static int show_cpuinfo(struct seq_file
+@@ -961,7 +964,7 @@ static int show_cpuinfo(struct seq_file
/* VIA/Cyrix/Centaur-defined */
NULL, NULL, "rng", "rng_en", NULL, NULL, "ace", "ace_en",
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
-@@ -981,6 +984,12 @@ static int show_cpuinfo(struct seq_file
+@@ -972,6 +975,12 @@ static int show_cpuinfo(struct seq_file
"osvw", "ibs", NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
};
static char *x86_power_flags[] = {
"ts", /* temperature sensor */
-diff -puN arch/x86_64/kernel/verify_cpu.S~git-newsetup arch/x86_64/kernel/verify_cpu.S
---- a/arch/x86_64/kernel/verify_cpu.S~git-newsetup
-+++ a/arch/x86_64/kernel/verify_cpu.S
+Index: linux-2.6.22.19/arch/x86_64/kernel/verify_cpu.S
+===================================================================
+--- linux-2.6.22.19.orig/arch/x86_64/kernel/verify_cpu.S
++++ linux-2.6.22.19/arch/x86_64/kernel/verify_cpu.S
@@ -37,20 +37,6 @@ verify_cpu:
pushl $0 # Kill any dangerous flags
popfl
jnz verify_cpu_no_longmode
verify_cpu_sse_test:
-diff -puN drivers/ide/legacy/hd.c~git-newsetup drivers/ide/legacy/hd.c
---- a/drivers/ide/legacy/hd.c~git-newsetup
-+++ a/drivers/ide/legacy/hd.c
+Index: linux-2.6.22.19/drivers/ide/legacy/hd.c
+===================================================================
+--- linux-2.6.22.19.orig/drivers/ide/legacy/hd.c
++++ linux-2.6.22.19/drivers/ide/legacy/hd.c
@@ -718,74 +718,25 @@ static int __init hd_init(void)
device_timer.function = hd_times_out;
blk_queue_hardsect_size(hd_queue, 512);
for (drive=0 ; drive < NR_HD ; drive++) {
struct gendisk *disk = alloc_disk(64);
-diff -puN include/asm-i386/boot.h~git-newsetup include/asm-i386/boot.h
---- a/include/asm-i386/boot.h~git-newsetup
-+++ a/include/asm-i386/boot.h
+Index: linux-2.6.22.19/include/asm-i386/boot.h
+===================================================================
+--- linux-2.6.22.19.orig/include/asm-i386/boot.h
++++ linux-2.6.22.19/include/asm-i386/boot.h
@@ -1,5 +1,5 @@
-#ifndef _LINUX_BOOT_H
-#define _LINUX_BOOT_H
-#endif /* _LINUX_BOOT_H */
+#endif /* _ASM_BOOT_H */
-diff -puN /dev/null include/asm-i386/bootparam.h
+Index: linux-2.6.22.19/include/asm-i386/bootparam.h
+===================================================================
--- /dev/null
-+++ a/include/asm-i386/bootparam.h
++++ linux-2.6.22.19/include/asm-i386/bootparam.h
@@ -0,0 +1,85 @@
+#ifndef _ASM_BOOTPARAM_H
+#define _ASM_BOOTPARAM_H
+} __attribute__((packed));
+
+#endif /* _ASM_BOOTPARAM_H */
-diff -puN include/asm-i386/cpufeature.h~git-newsetup include/asm-i386/cpufeature.h
---- a/include/asm-i386/cpufeature.h~git-newsetup
-+++ a/include/asm-i386/cpufeature.h
+Index: linux-2.6.22.19/include/asm-i386/cpufeature.h
+===================================================================
+--- linux-2.6.22.19.orig/include/asm-i386/cpufeature.h
++++ linux-2.6.22.19/include/asm-i386/cpufeature.h
@@ -12,7 +12,7 @@
#endif
#include <asm/required-features.h>
#define X86_FEATURE_FPU (0*32+ 0) /* Onboard FPU */
@@ -81,6 +81,7 @@
#define X86_FEATURE_BTS (3*32+13) /* Branch Trace Store */
- #define X86_FEATURE_LAPIC_TIMER_BROKEN (3*32+ 14) /* lapic timer broken in C1 */
+ /* 14 free */
#define X86_FEATURE_SYNC_RDTSC (3*32+15) /* RDTSC synchronizes the CPU */
+#define X86_FEATURE_REP_GOOD (3*32+16) /* rep microcode works well on this CPU */
#define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit)
#define cpu_has_fpu boot_cpu_has(X86_FEATURE_FPU)
-diff -puN include/asm-i386/e820.h~git-newsetup include/asm-i386/e820.h
---- a/include/asm-i386/e820.h~git-newsetup
-+++ a/include/asm-i386/e820.h
+Index: linux-2.6.22.19/include/asm-i386/e820.h
+===================================================================
+--- linux-2.6.22.19.orig/include/asm-i386/e820.h
++++ linux-2.6.22.19/include/asm-i386/e820.h
@@ -25,13 +25,15 @@
#ifndef __ASSEMBLY__
};
extern struct e820map e820;
-diff -puN include/asm-i386/processor.h~git-newsetup include/asm-i386/processor.h
---- a/include/asm-i386/processor.h~git-newsetup
-+++ a/include/asm-i386/processor.h
-@@ -118,6 +118,7 @@ void __init cpu_detect(struct cpuinfo_x8
+Index: linux-2.6.22.19/include/asm-i386/processor.h
+===================================================================
+--- linux-2.6.22.19.orig/include/asm-i386/processor.h
++++ linux-2.6.22.19/include/asm-i386/processor.h
+@@ -119,6 +119,7 @@ void __init cpu_detect(struct cpuinfo_x8
extern void identify_boot_cpu(void);
extern void identify_secondary_cpu(struct cpuinfo_x86 *);
extern void print_cpu_info(struct cpuinfo_x86 *);
extern unsigned int init_intel_cacheinfo(struct cpuinfo_x86 *c);
extern unsigned short num_cache_leaves;
-diff -puN include/asm-i386/required-features.h~git-newsetup include/asm-i386/required-features.h
---- a/include/asm-i386/required-features.h~git-newsetup
-+++ a/include/asm-i386/required-features.h
+Index: linux-2.6.22.19/include/asm-i386/required-features.h
+===================================================================
+--- linux-2.6.22.19.orig/include/asm-i386/required-features.h
++++ linux-2.6.22.19/include/asm-i386/required-features.h
@@ -3,7 +3,7 @@
/* Define minimum CPUID feature set for kernel These bits are checked
+#define REQUIRED_MASK7 0
#endif
-diff -puN include/asm-i386/setup.h~git-newsetup include/asm-i386/setup.h
---- a/include/asm-i386/setup.h~git-newsetup
-+++ a/include/asm-i386/setup.h
+Index: linux-2.6.22.19/include/asm-i386/setup.h
+===================================================================
+--- linux-2.6.22.19.orig/include/asm-i386/setup.h
++++ linux-2.6.22.19/include/asm-i386/setup.h
@@ -26,12 +26,15 @@
#define NEW_CL_POINTER 0x228 /* Relative to real mode data */
#define EFI_SYSTAB ((efi_system_table_t *) *((unsigned long *)(PARAM+0x1c4)))
#define EFI_MEMDESC_SIZE (*((unsigned long *) (PARAM+0x1c8)))
#define EFI_MEMDESC_VERSION (*((unsigned long *) (PARAM+0x1cc)))
-diff -puN include/asm-x86_64/alternative.h~git-newsetup include/asm-x86_64/alternative.h
---- a/include/asm-x86_64/alternative.h~git-newsetup
-+++ a/include/asm-x86_64/alternative.h
+Index: linux-2.6.22.19/include/asm-x86_64/alternative.h
+===================================================================
+--- linux-2.6.22.19.orig/include/asm-x86_64/alternative.h
++++ linux-2.6.22.19/include/asm-x86_64/alternative.h
@@ -5,6 +5,41 @@
#include <linux/types.h>
struct paravirt_patch;
#ifdef CONFIG_PARAVIRT
void apply_paravirt(struct paravirt_patch *start, struct paravirt_patch *end);
-diff -puN include/asm-x86_64/boot.h~git-newsetup include/asm-x86_64/boot.h
---- a/include/asm-x86_64/boot.h~git-newsetup
-+++ a/include/asm-x86_64/boot.h
+Index: linux-2.6.22.19/include/asm-x86_64/boot.h
+===================================================================
+--- linux-2.6.22.19.orig/include/asm-x86_64/boot.h
++++ linux-2.6.22.19/include/asm-x86_64/boot.h
@@ -1,15 +1 @@
-#ifndef _LINUX_BOOT_H
-#define _LINUX_BOOT_H
-
-#endif
+#include <asm-i386/boot.h>
-diff -puN /dev/null include/asm-x86_64/bootparam.h
+Index: linux-2.6.22.19/include/asm-x86_64/bootparam.h
+===================================================================
--- /dev/null
-+++ a/include/asm-x86_64/bootparam.h
++++ linux-2.6.22.19/include/asm-x86_64/bootparam.h
@@ -0,0 +1 @@
+#include <asm-i386/bootparam.h>
-diff -puN include/asm-x86_64/cpufeature.h~git-newsetup include/asm-x86_64/cpufeature.h
---- a/include/asm-x86_64/cpufeature.h~git-newsetup
-+++ a/include/asm-x86_64/cpufeature.h
+Index: linux-2.6.22.19/include/asm-x86_64/cpufeature.h
+===================================================================
+--- linux-2.6.22.19.orig/include/asm-x86_64/cpufeature.h
++++ linux-2.6.22.19/include/asm-x86_64/cpufeature.h
@@ -7,115 +7,24 @@
#ifndef __ASM_X8664_CPUFEATURE_H
#define __ASM_X8664_CPUFEATURE_H
-#define cpu_has_bts boot_cpu_has(X86_FEATURE_BTS)
#endif /* __ASM_X8664_CPUFEATURE_H */
-diff -puN include/asm-x86_64/e820.h~git-newsetup include/asm-x86_64/e820.h
---- a/include/asm-x86_64/e820.h~git-newsetup
-+++ a/include/asm-x86_64/e820.h
+Index: linux-2.6.22.19/include/asm-x86_64/e820.h
+===================================================================
+--- linux-2.6.22.19.orig/include/asm-x86_64/e820.h
++++ linux-2.6.22.19/include/asm-x86_64/e820.h
@@ -11,7 +11,9 @@
#ifndef __E820_HEADER
#define __E820_HEADER
struct e820entry map[E820MAX];
};
-diff -puN include/asm-x86_64/processor.h~git-newsetup include/asm-x86_64/processor.h
---- a/include/asm-x86_64/processor.h~git-newsetup
-+++ a/include/asm-x86_64/processor.h
-@@ -99,6 +99,7 @@ extern char ignore_irq13;
+Index: linux-2.6.22.19/include/asm-x86_64/processor.h
+===================================================================
+--- linux-2.6.22.19.orig/include/asm-x86_64/processor.h
++++ linux-2.6.22.19/include/asm-x86_64/processor.h
+@@ -100,6 +100,7 @@ extern char ignore_irq13;
extern void identify_cpu(struct cpuinfo_x86 *);
extern void print_cpu_info(struct cpuinfo_x86 *);
extern unsigned int init_intel_cacheinfo(struct cpuinfo_x86 *c);
extern unsigned short num_cache_leaves;
-@@ -367,8 +368,6 @@ static inline void sync_core(void)
+@@ -368,8 +369,6 @@ static inline void sync_core(void)
asm volatile("cpuid" : "=a" (tmp) : "0" (1) : "ebx","ecx","edx","memory");
}
#define ARCH_HAS_PREFETCH
static inline void prefetch(void *x)
{
-diff -puN /dev/null include/asm-x86_64/required-features.h
+Index: linux-2.6.22.19/include/asm-x86_64/required-features.h
+===================================================================
--- /dev/null
-+++ a/include/asm-x86_64/required-features.h
++++ linux-2.6.22.19/include/asm-x86_64/required-features.h
@@ -0,0 +1,46 @@
+#ifndef _ASM_REQUIRED_FEATURES_H
+#define _ASM_REQUIRED_FEATURES_H 1
+#define REQUIRED_MASK7 0
+
+#endif
-diff -puN include/asm-x86_64/segment.h~git-newsetup include/asm-x86_64/segment.h
---- a/include/asm-x86_64/segment.h~git-newsetup
-+++ a/include/asm-x86_64/segment.h
+Index: linux-2.6.22.19/include/asm-x86_64/segment.h
+===================================================================
+--- linux-2.6.22.19.orig/include/asm-x86_64/segment.h
++++ linux-2.6.22.19/include/asm-x86_64/segment.h
@@ -3,6 +3,14 @@
#include <asm/cache.h>
#define __KERNEL_CS 0x10
#define __KERNEL_DS 0x18
-diff -puN include/linux/edd.h~git-newsetup include/linux/edd.h
---- a/include/linux/edd.h~git-newsetup
-+++ a/include/linux/edd.h
+Index: linux-2.6.22.19/include/linux/edd.h
+===================================================================
+--- linux-2.6.22.19.orig/include/linux/edd.h
++++ linux-2.6.22.19/include/linux/edd.h
@@ -49,10 +49,6 @@
#define EDD_MBR_SIG_MAX 16 /* max number of signatures to store */
#define EDD_MBR_SIG_NR_BUF 0x1ea /* addr of number of MBR signtaures at EDD_MBR_SIG_BUF
#ifndef __ASSEMBLY__
-diff -puN include/linux/screen_info.h~git-newsetup include/linux/screen_info.h
---- a/include/linux/screen_info.h~git-newsetup
-+++ a/include/linux/screen_info.h
+Index: linux-2.6.22.19/include/linux/screen_info.h
+===================================================================
+--- linux-2.6.22.19.orig/include/linux/screen_info.h
++++ linux-2.6.22.19/include/linux/screen_info.h
@@ -10,7 +10,7 @@
struct screen_info {
u8 orig_x; /* 0x00 */
extern struct screen_info screen_info;
-_