From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sat, 16 Apr 2005 15:20:36 -0700 Subject: Linux-2.6.12-rc2 Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip! --- arch/i386/Kconfig | 1269 ++++++++++ arch/i386/Kconfig.debug | 72 + arch/i386/Makefile | 173 ++ arch/i386/boot/Makefile | 104 + arch/i386/boot/bootsect.S | 98 + arch/i386/boot/compressed/Makefile | 25 + arch/i386/boot/compressed/head.S | 128 + arch/i386/boot/compressed/misc.c | 382 +++ arch/i386/boot/compressed/vmlinux.scr | 9 + arch/i386/boot/edd.S | 176 ++ arch/i386/boot/install.sh | 40 + arch/i386/boot/mtools.conf.in | 17 + arch/i386/boot/setup.S | 1028 ++++++++ arch/i386/boot/tools/build.c | 184 ++ arch/i386/boot/video.S | 2007 +++++++++++++++ arch/i386/crypto/Makefile | 9 + arch/i386/crypto/aes-i586-asm.S | 376 +++ arch/i386/crypto/aes.c | 520 ++++ arch/i386/defconfig | 1247 ++++++++++ arch/i386/kernel/Makefile | 71 + arch/i386/kernel/acpi/Makefile | 4 + arch/i386/kernel/acpi/boot.c | 908 +++++++ arch/i386/kernel/acpi/earlyquirk.c | 51 + arch/i386/kernel/acpi/sleep.c | 93 + arch/i386/kernel/acpi/wakeup.S | 318 +++ arch/i386/kernel/apic.c | 1278 ++++++++++ arch/i386/kernel/apm.c | 2428 +++++++++++++++++++ arch/i386/kernel/asm-offsets.c | 72 + arch/i386/kernel/bootflag.c | 99 + arch/i386/kernel/cpu/Makefile | 19 + arch/i386/kernel/cpu/amd.c | 249 ++ arch/i386/kernel/cpu/centaur.c | 476 ++++ arch/i386/kernel/cpu/changelog | 63 + arch/i386/kernel/cpu/common.c | 634 +++++ arch/i386/kernel/cpu/cpu.h | 30 + arch/i386/kernel/cpu/cpufreq/Kconfig | 231 ++ arch/i386/kernel/cpu/cpufreq/Makefile | 14 + arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c | 537 +++++ arch/i386/kernel/cpu/cpufreq/cpufreq-nforce2.c | 457 ++++ arch/i386/kernel/cpu/cpufreq/elanfreq.c | 312 +++ arch/i386/kernel/cpu/cpufreq/gx-suspmod.c | 502 ++++ arch/i386/kernel/cpu/cpufreq/longhaul.c | 658 +++++ arch/i386/kernel/cpu/cpufreq/longhaul.h | 466 ++++ arch/i386/kernel/cpu/cpufreq/longrun.c | 326 +++ arch/i386/kernel/cpu/cpufreq/p4-clockmod.c | 337 +++ arch/i386/kernel/cpu/cpufreq/powernow-k6.c | 256 ++ arch/i386/kernel/cpu/cpufreq/powernow-k7.c | 690 ++++++ arch/i386/kernel/cpu/cpufreq/powernow-k7.h | 44 + arch/i386/kernel/cpu/cpufreq/powernow-k8.c | 1135 +++++++++ arch/i386/kernel/cpu/cpufreq/powernow-k8.h | 176 ++ arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c | 715 ++++++ .../i386/kernel/cpu/cpufreq/speedstep-est-common.h | 25 + arch/i386/kernel/cpu/cpufreq/speedstep-ich.c | 424 ++++ arch/i386/kernel/cpu/cpufreq/speedstep-lib.c | 385 +++ arch/i386/kernel/cpu/cpufreq/speedstep-lib.h | 47 + arch/i386/kernel/cpu/cpufreq/speedstep-smi.c | 424 ++++ arch/i386/kernel/cpu/cyrix.c | 439 ++++ arch/i386/kernel/cpu/intel.c | 248 ++ arch/i386/kernel/cpu/intel_cacheinfo.c | 598 +++++ arch/i386/kernel/cpu/mcheck/Makefile | 2 + arch/i386/kernel/cpu/mcheck/k7.c | 97 + arch/i386/kernel/cpu/mcheck/mce.c | 77 + arch/i386/kernel/cpu/mcheck/mce.h | 14 + arch/i386/kernel/cpu/mcheck/non-fatal.c | 93 + arch/i386/kernel/cpu/mcheck/p4.c | 271 +++ arch/i386/kernel/cpu/mcheck/p5.c | 54 + arch/i386/kernel/cpu/mcheck/p6.c | 115 + arch/i386/kernel/cpu/mcheck/winchip.c | 37 + arch/i386/kernel/cpu/mtrr/Makefile | 5 + arch/i386/kernel/cpu/mtrr/amd.c | 121 + arch/i386/kernel/cpu/mtrr/centaur.c | 223 ++ arch/i386/kernel/cpu/mtrr/changelog | 229 ++ arch/i386/kernel/cpu/mtrr/cyrix.c | 364 +++ arch/i386/kernel/cpu/mtrr/generic.c | 417 ++++ arch/i386/kernel/cpu/mtrr/if.c | 374 +++ arch/i386/kernel/cpu/mtrr/main.c | 693 ++++++ arch/i386/kernel/cpu/mtrr/mtrr.h | 98 + arch/i386/kernel/cpu/mtrr/state.c | 78 + arch/i386/kernel/cpu/nexgen.c | 63 + arch/i386/kernel/cpu/proc.c | 149 ++ arch/i386/kernel/cpu/rise.c | 53 + arch/i386/kernel/cpu/transmeta.c | 107 + arch/i386/kernel/cpu/umc.c | 33 + arch/i386/kernel/cpuid.c | 246 ++ arch/i386/kernel/dmi_scan.c | 487 ++++ arch/i386/kernel/doublefault.c | 65 + arch/i386/kernel/early_printk.c | 2 + arch/i386/kernel/efi.c | 635 +++++ arch/i386/kernel/efi_stub.S | 124 + arch/i386/kernel/entry.S | 950 ++++++++ arch/i386/kernel/head.S | 521 ++++ arch/i386/kernel/i386_ksyms.c | 195 ++ arch/i386/kernel/i387.c | 555 +++++ arch/i386/kernel/i8259.c | 429 ++++ arch/i386/kernel/init_task.c | 46 + arch/i386/kernel/io_apic.c | 2545 ++++++++++++++++++++ arch/i386/kernel/ioport.c | 147 ++ arch/i386/kernel/irq.c | 261 ++ arch/i386/kernel/kprobes.c | 385 +++ arch/i386/kernel/ldt.c | 255 ++ arch/i386/kernel/mca.c | 474 ++++ arch/i386/kernel/microcode.c | 512 ++++ arch/i386/kernel/module.c | 129 + arch/i386/kernel/mpparse.c | 1109 +++++++++ arch/i386/kernel/msr.c | 346 +++ arch/i386/kernel/nmi.c | 570 +++++ arch/i386/kernel/numaq.c | 79 + arch/i386/kernel/pci-dma.c | 147 ++ arch/i386/kernel/process.c | 848 +++++++ arch/i386/kernel/ptrace.c | 717 ++++++ arch/i386/kernel/quirks.c | 52 + arch/i386/kernel/reboot.c | 382 +++ arch/i386/kernel/scx200.c | 167 ++ arch/i386/kernel/semaphore.c | 297 +++ arch/i386/kernel/setup.c | 1535 ++++++++++++ arch/i386/kernel/sigframe.h | 21 + arch/i386/kernel/signal.c | 665 +++++ arch/i386/kernel/smp.c | 612 +++++ arch/i386/kernel/smpboot.c | 1145 +++++++++ arch/i386/kernel/srat.c | 456 ++++ arch/i386/kernel/summit.c | 180 ++ arch/i386/kernel/sys_i386.c | 252 ++ arch/i386/kernel/sysenter.c | 65 + arch/i386/kernel/time.c | 476 ++++ arch/i386/kernel/time_hpet.c | 458 ++++ arch/i386/kernel/timers/Makefile | 9 + arch/i386/kernel/timers/common.c | 160 ++ arch/i386/kernel/timers/timer.c | 66 + arch/i386/kernel/timers/timer_cyclone.c | 259 ++ arch/i386/kernel/timers/timer_hpet.c | 191 ++ arch/i386/kernel/timers/timer_none.c | 39 + arch/i386/kernel/timers/timer_pit.c | 206 ++ arch/i386/kernel/timers/timer_pm.c | 258 ++ arch/i386/kernel/timers/timer_tsc.c | 560 +++++ arch/i386/kernel/trampoline.S | 80 + arch/i386/kernel/traps.c | 1084 +++++++++ arch/i386/kernel/vm86.c | 804 +++++++ arch/i386/kernel/vmlinux.lds.S | 134 ++ arch/i386/kernel/vsyscall-int80.S | 53 + arch/i386/kernel/vsyscall-sigreturn.S | 142 ++ arch/i386/kernel/vsyscall-sysenter.S | 104 + arch/i386/kernel/vsyscall.S | 15 + arch/i386/kernel/vsyscall.lds.S | 65 + arch/i386/lib/Makefile | 10 + arch/i386/lib/bitops.c | 70 + arch/i386/lib/checksum.S | 496 ++++ arch/i386/lib/dec_and_lock.c | 40 + arch/i386/lib/delay.c | 49 + arch/i386/lib/getuser.S | 70 + arch/i386/lib/memcpy.c | 44 + arch/i386/lib/mmx.c | 399 +++ arch/i386/lib/putuser.S | 87 + arch/i386/lib/strstr.c | 31 + arch/i386/lib/usercopy.c | 636 +++++ arch/i386/mach-default/Makefile | 5 + arch/i386/mach-default/setup.c | 106 + arch/i386/mach-default/topology.c | 98 + arch/i386/mach-es7000/Makefile | 6 + arch/i386/mach-es7000/es7000.h | 110 + arch/i386/mach-es7000/es7000plat.c | 316 +++ arch/i386/mach-generic/Makefile | 7 + arch/i386/mach-generic/bigsmp.c | 54 + arch/i386/mach-generic/default.c | 27 + arch/i386/mach-generic/es7000.c | 28 + arch/i386/mach-generic/probe.c | 102 + arch/i386/mach-generic/summit.c | 27 + arch/i386/mach-visws/Makefile | 8 + arch/i386/mach-visws/mpparse.c | 105 + arch/i386/mach-visws/reboot.c | 51 + arch/i386/mach-visws/setup.c | 134 ++ arch/i386/mach-visws/traps.c | 69 + arch/i386/mach-visws/visws_apic.c | 303 +++ arch/i386/mach-voyager/Makefile | 8 + arch/i386/mach-voyager/setup.c | 48 + arch/i386/mach-voyager/voyager_basic.c | 325 +++ arch/i386/mach-voyager/voyager_cat.c | 1178 +++++++++ arch/i386/mach-voyager/voyager_smp.c | 1931 +++++++++++++++ arch/i386/mach-voyager/voyager_thread.c | 167 ++ arch/i386/math-emu/Makefile | 30 + arch/i386/math-emu/README | 427 ++++ arch/i386/math-emu/control_w.h | 45 + arch/i386/math-emu/div_Xsig.S | 365 +++ arch/i386/math-emu/div_small.S | 47 + arch/i386/math-emu/errors.c | 739 ++++++ arch/i386/math-emu/exception.h | 53 + arch/i386/math-emu/fpu_arith.c | 174 ++ arch/i386/math-emu/fpu_asm.h | 32 + arch/i386/math-emu/fpu_aux.c | 204 ++ arch/i386/math-emu/fpu_emu.h | 217 ++ arch/i386/math-emu/fpu_entry.c | 760 ++++++ arch/i386/math-emu/fpu_etc.c | 143 ++ arch/i386/math-emu/fpu_proto.h | 140 ++ arch/i386/math-emu/fpu_system.h | 89 + arch/i386/math-emu/fpu_tags.c | 127 + arch/i386/math-emu/fpu_trig.c | 1845 ++++++++++++++ arch/i386/math-emu/get_address.c | 449 ++++ arch/i386/math-emu/load_store.c | 270 +++ arch/i386/math-emu/mul_Xsig.S | 176 ++ arch/i386/math-emu/poly.h | 121 + arch/i386/math-emu/poly_2xm1.c | 156 ++ arch/i386/math-emu/poly_atan.c | 229 ++ arch/i386/math-emu/poly_l2.c | 272 +++ arch/i386/math-emu/poly_sin.c | 397 +++ arch/i386/math-emu/poly_tan.c | 222 ++ arch/i386/math-emu/polynom_Xsig.S | 135 ++ arch/i386/math-emu/reg_add_sub.c | 374 +++ arch/i386/math-emu/reg_compare.c | 381 +++ arch/i386/math-emu/reg_constant.c | 120 + arch/i386/math-emu/reg_constant.h | 25 + arch/i386/math-emu/reg_convert.c | 53 + arch/i386/math-emu/reg_divide.c | 207 ++ arch/i386/math-emu/reg_ld_str.c | 1370 +++++++++++ arch/i386/math-emu/reg_mul.c | 132 + arch/i386/math-emu/reg_norm.S | 147 ++ arch/i386/math-emu/reg_round.S | 708 ++++++ arch/i386/math-emu/reg_u_add.S | 167 ++ arch/i386/math-emu/reg_u_div.S | 471 ++++ arch/i386/math-emu/reg_u_mul.S | 148 ++ arch/i386/math-emu/reg_u_sub.S | 272 +++ arch/i386/math-emu/round_Xsig.S | 141 ++ arch/i386/math-emu/shr_Xsig.S | 87 + arch/i386/math-emu/status_w.h | 65 + arch/i386/math-emu/version.h | 12 + arch/i386/math-emu/wm_shrx.S | 204 ++ arch/i386/math-emu/wm_sqrt.S | 470 ++++ arch/i386/mm/Makefile | 10 + arch/i386/mm/boot_ioremap.c | 97 + arch/i386/mm/discontig.c | 383 +++ arch/i386/mm/extable.c | 36 + arch/i386/mm/fault.c | 552 +++++ arch/i386/mm/highmem.c | 89 + arch/i386/mm/hugetlbpage.c | 431 ++++ arch/i386/mm/init.c | 696 ++++++ arch/i386/mm/ioremap.c | 320 +++ arch/i386/mm/mmap.c | 76 + arch/i386/mm/pageattr.c | 221 ++ arch/i386/mm/pgtable.c | 260 ++ arch/i386/oprofile/Kconfig | 23 + arch/i386/oprofile/Makefile | 12 + arch/i386/oprofile/backtrace.c | 111 + arch/i386/oprofile/init.c | 48 + arch/i386/oprofile/nmi_int.c | 427 ++++ arch/i386/oprofile/nmi_timer_int.c | 55 + arch/i386/oprofile/op_counter.h | 29 + arch/i386/oprofile/op_model_athlon.c | 149 ++ arch/i386/oprofile/op_model_p4.c | 725 ++++++ arch/i386/oprofile/op_model_ppro.c | 143 ++ arch/i386/oprofile/op_x86_model.h | 50 + arch/i386/pci/Makefile | 14 + arch/i386/pci/acpi.c | 53 + arch/i386/pci/common.c | 251 ++ arch/i386/pci/direct.c | 289 +++ arch/i386/pci/fixup.c | 386 +++ arch/i386/pci/i386.c | 304 +++ arch/i386/pci/irq.c | 1119 +++++++++ arch/i386/pci/legacy.c | 54 + arch/i386/pci/mmconfig.c | 122 + arch/i386/pci/numa.c | 130 + arch/i386/pci/pcbios.c | 487 ++++ arch/i386/pci/pci.h | 74 + arch/i386/pci/visws.c | 110 + arch/i386/power/Makefile | 2 + arch/i386/power/cpu.c | 152 ++ arch/i386/power/swsusp.S | 73 + 264 files changed, 80767 insertions(+) create mode 100644 arch/i386/Kconfig create mode 100644 arch/i386/Kconfig.debug create mode 100644 arch/i386/Makefile create mode 100644 arch/i386/boot/Makefile create mode 100644 arch/i386/boot/bootsect.S create mode 100644 arch/i386/boot/compressed/Makefile create mode 100644 arch/i386/boot/compressed/head.S create mode 100644 arch/i386/boot/compressed/misc.c create mode 100644 arch/i386/boot/compressed/vmlinux.scr create mode 100644 arch/i386/boot/edd.S create mode 100644 arch/i386/boot/install.sh create mode 100644 arch/i386/boot/mtools.conf.in create mode 100644 arch/i386/boot/setup.S create mode 100644 arch/i386/boot/tools/build.c create mode 100644 arch/i386/boot/video.S create mode 100644 arch/i386/crypto/Makefile create mode 100644 arch/i386/crypto/aes-i586-asm.S create mode 100644 arch/i386/crypto/aes.c create mode 100644 arch/i386/defconfig create mode 100644 arch/i386/kernel/Makefile create mode 100644 arch/i386/kernel/acpi/Makefile create mode 100644 arch/i386/kernel/acpi/boot.c create mode 100644 arch/i386/kernel/acpi/earlyquirk.c create mode 100644 arch/i386/kernel/acpi/sleep.c create mode 100644 arch/i386/kernel/acpi/wakeup.S create mode 100644 arch/i386/kernel/apic.c create mode 100644 arch/i386/kernel/apm.c create mode 100644 arch/i386/kernel/asm-offsets.c create mode 100644 arch/i386/kernel/bootflag.c create mode 100644 arch/i386/kernel/cpu/Makefile create mode 100644 arch/i386/kernel/cpu/amd.c create mode 100644 arch/i386/kernel/cpu/centaur.c create mode 100644 arch/i386/kernel/cpu/changelog create mode 100644 arch/i386/kernel/cpu/common.c create mode 100644 arch/i386/kernel/cpu/cpu.h create mode 100644 arch/i386/kernel/cpu/cpufreq/Kconfig create mode 100644 arch/i386/kernel/cpu/cpufreq/Makefile create mode 100644 arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c create mode 100644 arch/i386/kernel/cpu/cpufreq/cpufreq-nforce2.c create mode 100644 arch/i386/kernel/cpu/cpufreq/elanfreq.c create mode 100644 arch/i386/kernel/cpu/cpufreq/gx-suspmod.c create mode 100644 arch/i386/kernel/cpu/cpufreq/longhaul.c create mode 100644 arch/i386/kernel/cpu/cpufreq/longhaul.h create mode 100644 arch/i386/kernel/cpu/cpufreq/longrun.c create mode 100644 arch/i386/kernel/cpu/cpufreq/p4-clockmod.c create mode 100644 arch/i386/kernel/cpu/cpufreq/powernow-k6.c create mode 100644 arch/i386/kernel/cpu/cpufreq/powernow-k7.c create mode 100644 arch/i386/kernel/cpu/cpufreq/powernow-k7.h create mode 100644 arch/i386/kernel/cpu/cpufreq/powernow-k8.c create mode 100644 arch/i386/kernel/cpu/cpufreq/powernow-k8.h create mode 100644 arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c create mode 100644 arch/i386/kernel/cpu/cpufreq/speedstep-est-common.h create mode 100644 arch/i386/kernel/cpu/cpufreq/speedstep-ich.c create mode 100644 arch/i386/kernel/cpu/cpufreq/speedstep-lib.c create mode 100644 arch/i386/kernel/cpu/cpufreq/speedstep-lib.h create mode 100644 arch/i386/kernel/cpu/cpufreq/speedstep-smi.c create mode 100644 arch/i386/kernel/cpu/cyrix.c create mode 100644 arch/i386/kernel/cpu/intel.c create mode 100644 arch/i386/kernel/cpu/intel_cacheinfo.c create mode 100644 arch/i386/kernel/cpu/mcheck/Makefile create mode 100644 arch/i386/kernel/cpu/mcheck/k7.c create mode 100644 arch/i386/kernel/cpu/mcheck/mce.c create mode 100644 arch/i386/kernel/cpu/mcheck/mce.h create mode 100644 arch/i386/kernel/cpu/mcheck/non-fatal.c create mode 100644 arch/i386/kernel/cpu/mcheck/p4.c create mode 100644 arch/i386/kernel/cpu/mcheck/p5.c create mode 100644 arch/i386/kernel/cpu/mcheck/p6.c create mode 100644 arch/i386/kernel/cpu/mcheck/winchip.c create mode 100644 arch/i386/kernel/cpu/mtrr/Makefile create mode 100644 arch/i386/kernel/cpu/mtrr/amd.c create mode 100644 arch/i386/kernel/cpu/mtrr/centaur.c create mode 100644 arch/i386/kernel/cpu/mtrr/changelog create mode 100644 arch/i386/kernel/cpu/mtrr/cyrix.c create mode 100644 arch/i386/kernel/cpu/mtrr/generic.c create mode 100644 arch/i386/kernel/cpu/mtrr/if.c create mode 100644 arch/i386/kernel/cpu/mtrr/main.c create mode 100644 arch/i386/kernel/cpu/mtrr/mtrr.h create mode 100644 arch/i386/kernel/cpu/mtrr/state.c create mode 100644 arch/i386/kernel/cpu/nexgen.c create mode 100644 arch/i386/kernel/cpu/proc.c create mode 100644 arch/i386/kernel/cpu/rise.c create mode 100644 arch/i386/kernel/cpu/transmeta.c create mode 100644 arch/i386/kernel/cpu/umc.c create mode 100644 arch/i386/kernel/cpuid.c create mode 100644 arch/i386/kernel/dmi_scan.c create mode 100644 arch/i386/kernel/doublefault.c create mode 100644 arch/i386/kernel/early_printk.c create mode 100644 arch/i386/kernel/efi.c create mode 100644 arch/i386/kernel/efi_stub.S create mode 100644 arch/i386/kernel/entry.S create mode 100644 arch/i386/kernel/head.S create mode 100644 arch/i386/kernel/i386_ksyms.c create mode 100644 arch/i386/kernel/i387.c create mode 100644 arch/i386/kernel/i8259.c create mode 100644 arch/i386/kernel/init_task.c create mode 100644 arch/i386/kernel/io_apic.c create mode 100644 arch/i386/kernel/ioport.c create mode 100644 arch/i386/kernel/irq.c create mode 100644 arch/i386/kernel/kprobes.c create mode 100644 arch/i386/kernel/ldt.c create mode 100644 arch/i386/kernel/mca.c create mode 100644 arch/i386/kernel/microcode.c create mode 100644 arch/i386/kernel/module.c create mode 100644 arch/i386/kernel/mpparse.c create mode 100644 arch/i386/kernel/msr.c create mode 100644 arch/i386/kernel/nmi.c create mode 100644 arch/i386/kernel/numaq.c create mode 100644 arch/i386/kernel/pci-dma.c create mode 100644 arch/i386/kernel/process.c create mode 100644 arch/i386/kernel/ptrace.c create mode 100644 arch/i386/kernel/quirks.c create mode 100644 arch/i386/kernel/reboot.c create mode 100644 arch/i386/kernel/scx200.c create mode 100644 arch/i386/kernel/semaphore.c create mode 100644 arch/i386/kernel/setup.c create mode 100644 arch/i386/kernel/sigframe.h create mode 100644 arch/i386/kernel/signal.c create mode 100644 arch/i386/kernel/smp.c create mode 100644 arch/i386/kernel/smpboot.c create mode 100644 arch/i386/kernel/srat.c create mode 100644 arch/i386/kernel/summit.c create mode 100644 arch/i386/kernel/sys_i386.c create mode 100644 arch/i386/kernel/sysenter.c create mode 100644 arch/i386/kernel/time.c create mode 100644 arch/i386/kernel/time_hpet.c create mode 100644 arch/i386/kernel/timers/Makefile create mode 100644 arch/i386/kernel/timers/common.c create mode 100644 arch/i386/kernel/timers/timer.c create mode 100644 arch/i386/kernel/timers/timer_cyclone.c create mode 100644 arch/i386/kernel/timers/timer_hpet.c create mode 100644 arch/i386/kernel/timers/timer_none.c create mode 100644 arch/i386/kernel/timers/timer_pit.c create mode 100644 arch/i386/kernel/timers/timer_pm.c create mode 100644 arch/i386/kernel/timers/timer_tsc.c create mode 100644 arch/i386/kernel/trampoline.S create mode 100644 arch/i386/kernel/traps.c create mode 100644 arch/i386/kernel/vm86.c create mode 100644 arch/i386/kernel/vmlinux.lds.S create mode 100644 arch/i386/kernel/vsyscall-int80.S create mode 100644 arch/i386/kernel/vsyscall-sigreturn.S create mode 100644 arch/i386/kernel/vsyscall-sysenter.S create mode 100644 arch/i386/kernel/vsyscall.S create mode 100644 arch/i386/kernel/vsyscall.lds.S create mode 100644 arch/i386/lib/Makefile create mode 100644 arch/i386/lib/bitops.c create mode 100644 arch/i386/lib/checksum.S create mode 100644 arch/i386/lib/dec_and_lock.c create mode 100644 arch/i386/lib/delay.c create mode 100644 arch/i386/lib/getuser.S create mode 100644 arch/i386/lib/memcpy.c create mode 100644 arch/i386/lib/mmx.c create mode 100644 arch/i386/lib/putuser.S create mode 100644 arch/i386/lib/strstr.c create mode 100644 arch/i386/lib/usercopy.c create mode 100644 arch/i386/mach-default/Makefile create mode 100644 arch/i386/mach-default/setup.c create mode 100644 arch/i386/mach-default/topology.c create mode 100644 arch/i386/mach-es7000/Makefile create mode 100644 arch/i386/mach-es7000/es7000.h create mode 100644 arch/i386/mach-es7000/es7000plat.c create mode 100644 arch/i386/mach-generic/Makefile create mode 100644 arch/i386/mach-generic/bigsmp.c create mode 100644 arch/i386/mach-generic/default.c create mode 100644 arch/i386/mach-generic/es7000.c create mode 100644 arch/i386/mach-generic/probe.c create mode 100644 arch/i386/mach-generic/summit.c create mode 100644 arch/i386/mach-visws/Makefile create mode 100644 arch/i386/mach-visws/mpparse.c create mode 100644 arch/i386/mach-visws/reboot.c create mode 100644 arch/i386/mach-visws/setup.c create mode 100644 arch/i386/mach-visws/traps.c create mode 100644 arch/i386/mach-visws/visws_apic.c create mode 100644 arch/i386/mach-voyager/Makefile create mode 100644 arch/i386/mach-voyager/setup.c create mode 100644 arch/i386/mach-voyager/voyager_basic.c create mode 100644 arch/i386/mach-voyager/voyager_cat.c create mode 100644 arch/i386/mach-voyager/voyager_smp.c create mode 100644 arch/i386/mach-voyager/voyager_thread.c create mode 100644 arch/i386/math-emu/Makefile create mode 100644 arch/i386/math-emu/README create mode 100644 arch/i386/math-emu/control_w.h create mode 100644 arch/i386/math-emu/div_Xsig.S create mode 100644 arch/i386/math-emu/div_small.S create mode 100644 arch/i386/math-emu/errors.c create mode 100644 arch/i386/math-emu/exception.h create mode 100644 arch/i386/math-emu/fpu_arith.c create mode 100644 arch/i386/math-emu/fpu_asm.h create mode 100644 arch/i386/math-emu/fpu_aux.c create mode 100644 arch/i386/math-emu/fpu_emu.h create mode 100644 arch/i386/math-emu/fpu_entry.c create mode 100644 arch/i386/math-emu/fpu_etc.c create mode 100644 arch/i386/math-emu/fpu_proto.h create mode 100644 arch/i386/math-emu/fpu_system.h create mode 100644 arch/i386/math-emu/fpu_tags.c create mode 100644 arch/i386/math-emu/fpu_trig.c create mode 100644 arch/i386/math-emu/get_address.c create mode 100644 arch/i386/math-emu/load_store.c create mode 100644 arch/i386/math-emu/mul_Xsig.S create mode 100644 arch/i386/math-emu/poly.h create mode 100644 arch/i386/math-emu/poly_2xm1.c create mode 100644 arch/i386/math-emu/poly_atan.c create mode 100644 arch/i386/math-emu/poly_l2.c create mode 100644 arch/i386/math-emu/poly_sin.c create mode 100644 arch/i386/math-emu/poly_tan.c create mode 100644 arch/i386/math-emu/polynom_Xsig.S create mode 100644 arch/i386/math-emu/reg_add_sub.c create mode 100644 arch/i386/math-emu/reg_compare.c create mode 100644 arch/i386/math-emu/reg_constant.c create mode 100644 arch/i386/math-emu/reg_constant.h create mode 100644 arch/i386/math-emu/reg_convert.c create mode 100644 arch/i386/math-emu/reg_divide.c create mode 100644 arch/i386/math-emu/reg_ld_str.c create mode 100644 arch/i386/math-emu/reg_mul.c create mode 100644 arch/i386/math-emu/reg_norm.S create mode 100644 arch/i386/math-emu/reg_round.S create mode 100644 arch/i386/math-emu/reg_u_add.S create mode 100644 arch/i386/math-emu/reg_u_div.S create mode 100644 arch/i386/math-emu/reg_u_mul.S create mode 100644 arch/i386/math-emu/reg_u_sub.S create mode 100644 arch/i386/math-emu/round_Xsig.S create mode 100644 arch/i386/math-emu/shr_Xsig.S create mode 100644 arch/i386/math-emu/status_w.h create mode 100644 arch/i386/math-emu/version.h create mode 100644 arch/i386/math-emu/wm_shrx.S create mode 100644 arch/i386/math-emu/wm_sqrt.S create mode 100644 arch/i386/mm/Makefile create mode 100644 arch/i386/mm/boot_ioremap.c create mode 100644 arch/i386/mm/discontig.c create mode 100644 arch/i386/mm/extable.c create mode 100644 arch/i386/mm/fault.c create mode 100644 arch/i386/mm/highmem.c create mode 100644 arch/i386/mm/hugetlbpage.c create mode 100644 arch/i386/mm/init.c create mode 100644 arch/i386/mm/ioremap.c create mode 100644 arch/i386/mm/mmap.c create mode 100644 arch/i386/mm/pageattr.c create mode 100644 arch/i386/mm/pgtable.c create mode 100644 arch/i386/oprofile/Kconfig create mode 100644 arch/i386/oprofile/Makefile create mode 100644 arch/i386/oprofile/backtrace.c create mode 100644 arch/i386/oprofile/init.c create mode 100644 arch/i386/oprofile/nmi_int.c create mode 100644 arch/i386/oprofile/nmi_timer_int.c create mode 100644 arch/i386/oprofile/op_counter.h create mode 100644 arch/i386/oprofile/op_model_athlon.c create mode 100644 arch/i386/oprofile/op_model_p4.c create mode 100644 arch/i386/oprofile/op_model_ppro.c create mode 100644 arch/i386/oprofile/op_x86_model.h create mode 100644 arch/i386/pci/Makefile create mode 100644 arch/i386/pci/acpi.c create mode 100644 arch/i386/pci/common.c create mode 100644 arch/i386/pci/direct.c create mode 100644 arch/i386/pci/fixup.c create mode 100644 arch/i386/pci/i386.c create mode 100644 arch/i386/pci/irq.c create mode 100644 arch/i386/pci/legacy.c create mode 100644 arch/i386/pci/mmconfig.c create mode 100644 arch/i386/pci/numa.c create mode 100644 arch/i386/pci/pcbios.c create mode 100644 arch/i386/pci/pci.h create mode 100644 arch/i386/pci/visws.c create mode 100644 arch/i386/power/Makefile create mode 100644 arch/i386/power/cpu.c create mode 100644 arch/i386/power/swsusp.S (limited to 'arch/i386') diff --git a/arch/i386/Kconfig b/arch/i386/Kconfig new file mode 100644 index 0000000..17a0cbc --- /dev/null +++ b/arch/i386/Kconfig @@ -0,0 +1,1269 @@ +# +# For a description of the syntax of this configuration file, +# see Documentation/kbuild/kconfig-language.txt. +# + +mainmenu "Linux Kernel Configuration" + +config X86 + bool + default y + help + This is Linux's home port. Linux was originally native to the Intel + 386, and runs on all the later x86 processors including the Intel + 486, 586, Pentiums, and various instruction-set-compatible chips by + AMD, Cyrix, and others. + +config MMU + bool + default y + +config SBUS + bool + +config UID16 + bool + default y + +config GENERIC_ISA_DMA + bool + default y + +config GENERIC_IOMAP + bool + default y + +source "init/Kconfig" + +menu "Processor type and features" + +choice + prompt "Subarchitecture Type" + default X86_PC + +config X86_PC + bool "PC-compatible" + help + Choose this option if your computer is a standard PC or compatible. + +config X86_ELAN + bool "AMD Elan" + help + Select this for an AMD Elan processor. + + Do not use this option for K6/Athlon/Opteron processors! + + If unsure, choose "PC-compatible" instead. + +config X86_VOYAGER + bool "Voyager (NCR)" + help + Voyager is an MCA-based 32-way capable SMP architecture proprietary + to NCR Corp. Machine classes 345x/35xx/4100/51xx are Voyager-based. + + *** WARNING *** + + If you do not specifically know you have a Voyager based machine, + say N here, otherwise the kernel you build will not be bootable. + +config X86_NUMAQ + bool "NUMAQ (IBM/Sequent)" + select DISCONTIGMEM + select NUMA + help + This option is used for getting Linux to run on a (IBM/Sequent) NUMA + multiquad box. This changes the way that processors are bootstrapped, + and uses Clustered Logical APIC addressing mode instead of Flat Logical. + You will need a new lynxer.elf file to flash your firmware with - send + email to . + +config X86_SUMMIT + bool "Summit/EXA (IBM x440)" + depends on SMP + help + This option is needed for IBM systems that use the Summit/EXA chipset. + In particular, it is needed for the x440. + + If you don't have one of these computers, you should say N here. + +config X86_BIGSMP + bool "Support for other sub-arch SMP systems with more than 8 CPUs" + depends on SMP + help + This option is needed for the systems that have more than 8 CPUs + and if the system is not of any sub-arch type above. + + If you don't have such a system, you should say N here. + +config X86_VISWS + bool "SGI 320/540 (Visual Workstation)" + help + The SGI Visual Workstation series is an IA32-based workstation + based on SGI systems chips with some legacy PC hardware attached. + + Say Y here to create a kernel to run on the SGI 320 or 540. + + A kernel compiled for the Visual Workstation will not run on PCs + and vice versa. See for details. + +config X86_GENERICARCH + bool "Generic architecture (Summit, bigsmp, ES7000, default)" + depends on SMP + help + This option compiles in the Summit, bigsmp, ES7000, default subarchitectures. + It is intended for a generic binary kernel. + +config X86_ES7000 + bool "Support for Unisys ES7000 IA32 series" + depends on SMP + help + Support for Unisys ES7000 systems. Say 'Y' here if this kernel is + supposed to run on an IA32-based Unisys ES7000 system. + Only choose this option if you have such a system, otherwise you + should say N here. + +endchoice + +config ACPI_SRAT + bool + default y + depends on NUMA && (X86_SUMMIT || X86_GENERICARCH) + +config X86_SUMMIT_NUMA + bool + default y + depends on NUMA && (X86_SUMMIT || X86_GENERICARCH) + +config X86_CYCLONE_TIMER + bool + default y + depends on X86_SUMMIT || X86_GENERICARCH + +config ES7000_CLUSTERED_APIC + bool + default y + depends on SMP && X86_ES7000 && MPENTIUMIII + +if !X86_ELAN + +choice + prompt "Processor family" + default M686 + +config M386 + bool "386" + ---help--- + This is the processor type of your CPU. This information is used for + optimizing purposes. In order to compile a kernel that can run on + all x86 CPU types (albeit not optimally fast), you can specify + "386" here. + + The kernel will not necessarily run on earlier architectures than + the one you have chosen, e.g. a Pentium optimized kernel will run on + a PPro, but not necessarily on a i486. + + Here are the settings recommended for greatest speed: + - "386" for the AMD/Cyrix/Intel 386DX/DXL/SL/SLC/SX, Cyrix/TI + 486DLC/DLC2, UMC 486SX-S and NexGen Nx586. Only "386" kernels + will run on a 386 class machine. + - "486" for the AMD/Cyrix/IBM/Intel 486DX/DX2/DX4 or + SL/SLC/SLC2/SLC3/SX/SX2 and UMC U5D or U5S. + - "586" for generic Pentium CPUs lacking the TSC + (time stamp counter) register. + - "Pentium-Classic" for the Intel Pentium. + - "Pentium-MMX" for the Intel Pentium MMX. + - "Pentium-Pro" for the Intel Pentium Pro. + - "Pentium-II" for the Intel Pentium II or pre-Coppermine Celeron. + - "Pentium-III" for the Intel Pentium III or Coppermine Celeron. + - "Pentium-4" for the Intel Pentium 4 or P4-based Celeron. + - "K6" for the AMD K6, K6-II and K6-III (aka K6-3D). + - "Athlon" for the AMD K7 family (Athlon/Duron/Thunderbird). + - "Crusoe" for the Transmeta Crusoe series. + - "Efficeon" for the Transmeta Efficeon series. + - "Winchip-C6" for original IDT Winchip. + - "Winchip-2" for IDT Winchip 2. + - "Winchip-2A" for IDT Winchips with 3dNow! capabilities. + - "MediaGX/Geode" for Cyrix MediaGX aka Geode. + - "CyrixIII/VIA C3" for VIA Cyrix III or VIA C3. + - "VIA C3-2 for VIA C3-2 "Nehemiah" (model 9 and above). + + If you don't know what to do, choose "386". + +config M486 + bool "486" + help + Select this for a 486 series processor, either Intel or one of the + compatible processors from AMD, Cyrix, IBM, or Intel. Includes DX, + DX2, and DX4 variants; also SL/SLC/SLC2/SLC3/SX/SX2 and UMC U5D or + U5S. + +config M586 + bool "586/K5/5x86/6x86/6x86MX" + help + Select this for an 586 or 686 series processor such as the AMD K5, + the Cyrix 5x86, 6x86 and 6x86MX. This choice does not + assume the RDTSC (Read Time Stamp Counter) instruction. + +config M586TSC + bool "Pentium-Classic" + help + Select this for a Pentium Classic processor with the RDTSC (Read + Time Stamp Counter) instruction for benchmarking. + +config M586MMX + bool "Pentium-MMX" + help + Select this for a Pentium with the MMX graphics/multimedia + extended instructions. + +config M686 + bool "Pentium-Pro" + help + Select this for Intel Pentium Pro chips. This enables the use of + Pentium Pro extended instructions, and disables the init-time guard + against the f00f bug found in earlier Pentiums. + +config MPENTIUMII + bool "Pentium-II/Celeron(pre-Coppermine)" + help + Select this for Intel chips based on the Pentium-II and + pre-Coppermine Celeron core. This option enables an unaligned + copy optimization, compiles the kernel with optimization flags + tailored for the chip, and applies any applicable Pentium Pro + optimizations. + +config MPENTIUMIII + bool "Pentium-III/Celeron(Coppermine)/Pentium-III Xeon" + help + Select this for Intel chips based on the Pentium-III and + Celeron-Coppermine core. This option enables use of some + extended prefetch instructions in addition to the Pentium II + extensions. + +config MPENTIUMM + bool "Pentium M" + help + Select this for Intel Pentium M (not Pentium-4 M) + notebook chips. + +config MPENTIUM4 + bool "Pentium-4/Celeron(P4-based)/Pentium-4 M/Xeon" + help + Select this for Intel Pentium 4 chips. This includes the + Pentium 4, P4-based Celeron and Xeon, and Pentium-4 M + (not Pentium M) chips. This option enables compile flags + optimized for the chip, uses the correct cache shift, and + applies any applicable Pentium III optimizations. + +config MK6 + bool "K6/K6-II/K6-III" + help + Select this for an AMD K6-family processor. Enables use of + some extended instructions, and passes appropriate optimization + flags to GCC. + +config MK7 + bool "Athlon/Duron/K7" + help + Select this for an AMD Athlon K7-family processor. Enables use of + some extended instructions, and passes appropriate optimization + flags to GCC. + +config MK8 + bool "Opteron/Athlon64/Hammer/K8" + help + Select this for an AMD Opteron or Athlon64 Hammer-family processor. Enables + use of some extended instructions, and passes appropriate optimization + flags to GCC. + +config MCRUSOE + bool "Crusoe" + help + Select this for a Transmeta Crusoe processor. Treats the processor + like a 586 with TSC, and sets some GCC optimization flags (like a + Pentium Pro with no alignment requirements). + +config MEFFICEON + bool "Efficeon" + help + Select this for a Transmeta Efficeon processor. + +config MWINCHIPC6 + bool "Winchip-C6" + help + Select this for an IDT Winchip C6 chip. Linux and GCC + treat this chip as a 586TSC with some extended instructions + and alignment requirements. + +config MWINCHIP2 + bool "Winchip-2" + help + Select this for an IDT Winchip-2. Linux and GCC + treat this chip as a 586TSC with some extended instructions + and alignment requirements. + +config MWINCHIP3D + bool "Winchip-2A/Winchip-3" + help + Select this for an IDT Winchip-2A or 3. Linux and GCC + treat this chip as a 586TSC with some extended instructions + and alignment reqirements. Also enable out of order memory + stores for this CPU, which can increase performance of some + operations. + +config MGEODE + bool "MediaGX/Geode" + help + Select this for a Cyrix MediaGX aka Geode chip. Linux and GCC + treat this chip as a 586TSC with some extended instructions + and alignment reqirements. + +config MCYRIXIII + bool "CyrixIII/VIA-C3" + help + Select this for a Cyrix III or C3 chip. Presently Linux and GCC + treat this chip as a generic 586. Whilst the CPU is 686 class, + it lacks the cmov extension which gcc assumes is present when + generating 686 code. + Note that Nehemiah (Model 9) and above will not boot with this + kernel due to them lacking the 3DNow! instructions used in earlier + incarnations of the CPU. + +config MVIAC3_2 + bool "VIA C3-2 (Nehemiah)" + help + Select this for a VIA C3 "Nehemiah". Selecting this enables usage + of SSE and tells gcc to treat the CPU as a 686. + Note, this kernel will not boot on older (pre model 9) C3s. + +endchoice + +config X86_GENERIC + bool "Generic x86 support" + help + Instead of just including optimizations for the selected + x86 variant (e.g. PII, Crusoe or Athlon), include some more + generic optimizations as well. This will make the kernel + perform better on x86 CPUs other than that selected. + + This is really intended for distributors who need more + generic optimizations. + +endif + +# +# Define implied options from the CPU selection here +# +config X86_CMPXCHG + bool + depends on !M386 + default y + +config X86_XADD + bool + depends on !M386 + default y + +config X86_L1_CACHE_SHIFT + int + default "7" if MPENTIUM4 || X86_GENERIC + default "4" if X86_ELAN || M486 || M386 + default "5" if MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCRUSOE || MEFFICEON || MCYRIXIII || MK6 || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || M586 || MVIAC3_2 || MGEODE + default "6" if MK7 || MK8 || MPENTIUMM + +config RWSEM_GENERIC_SPINLOCK + bool + depends on M386 + default y + +config RWSEM_XCHGADD_ALGORITHM + bool + depends on !M386 + default y + +config GENERIC_CALIBRATE_DELAY + bool + default y + +config X86_PPRO_FENCE + bool + depends on M686 || M586MMX || M586TSC || M586 || M486 || M386 || MGEODE + default y + +config X86_F00F_BUG + bool + depends on M586MMX || M586TSC || M586 || M486 || M386 + default y + +config X86_WP_WORKS_OK + bool + depends on !M386 + default y + +config X86_INVLPG + bool + depends on !M386 + default y + +config X86_BSWAP + bool + depends on !M386 + default y + +config X86_POPAD_OK + bool + depends on !M386 + default y + +config X86_ALIGNMENT_16 + bool + depends on MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCYRIXIII || X86_ELAN || MK6 || M586MMX || M586TSC || M586 || M486 || MVIAC3_2 || MGEODE + default y + +config X86_GOOD_APIC + bool + depends on MK7 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || MK8 || MEFFICEON + default y + +config X86_INTEL_USERCOPY + bool + depends on MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M586MMX || X86_GENERIC || MK8 || MK7 || MEFFICEON + default y + +config X86_USE_PPRO_CHECKSUM + bool + depends on MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MK8 || MVIAC3_2 || MEFFICEON + default y + +config X86_USE_3DNOW + bool + depends on MCYRIXIII || MK7 + default y + +config X86_OOSTORE + bool + depends on (MWINCHIP3D || MWINCHIP2 || MWINCHIPC6 || MGEODE) && MTRR + default y + +config HPET_TIMER + bool "HPET Timer Support" + help + This enables the use of the HPET for the kernel's internal timer. + HPET is the next generation timer replacing legacy 8254s. + You can safely choose Y here. However, HPET will only be + activated if the platform and the BIOS support this feature. + Otherwise the 8254 will be used for timing services. + + Choose N to continue using the legacy 8254 timer. + +config HPET_EMULATE_RTC + bool "Provide RTC interrupt" + depends on HPET_TIMER && RTC=y + +config SMP + bool "Symmetric multi-processing support" + ---help--- + This enables support for systems with more than one CPU. If you have + a system with only one CPU, like most personal computers, say N. If + you have a system with more than one CPU, say Y. + + If you say N here, the kernel will run on single and multiprocessor + machines, but will use only one CPU of a multiprocessor machine. If + you say Y here, the kernel will run on many, but not all, + singleprocessor machines. On a singleprocessor machine, the kernel + will run faster if you say N here. + + Note that if you say Y here and choose architecture "586" or + "Pentium" under "Processor family", the kernel will not work on 486 + architectures. Similarly, multiprocessor kernels for the "PPro" + architecture may not work on all Pentium based boards. + + People using multiprocessor machines who say Y here should also say + Y to "Enhanced Real Time Clock Support", below. The "Advanced Power + Management" code will be disabled if you say Y here. + + See also the , + , + and the SMP-HOWTO available at + . + + If you don't know what to do here, say N. + +config NR_CPUS + int "Maximum number of CPUs (2-255)" + range 2 255 + depends on SMP + default "32" if X86_NUMAQ || X86_SUMMIT || X86_BIGSMP || X86_ES7000 + default "8" + help + This allows you to specify the maximum number of CPUs which this + kernel will support. The maximum supported value is 255 and the + minimum value which makes sense is 2. + + This is purely to save memory - each supported CPU adds + approximately eight kilobytes to the kernel image. + +config SCHED_SMT + bool "SMT (Hyperthreading) scheduler support" + depends on SMP + default off + help + SMT scheduler support improves the CPU scheduler's decision making + when dealing with Intel Pentium 4 chips with HyperThreading at a + cost of slightly increased overhead in some places. If unsure say + N here. + +config PREEMPT + bool "Preemptible Kernel" + help + This option reduces the latency of the kernel when reacting to + real-time or interactive events by allowing a low priority process to + be preempted even if it is in kernel mode executing a system call. + This allows applications to run more reliably even when the system is + under load. + + Say Y here if you are building a kernel for a desktop, embedded + or real-time system. Say N if you are unsure. + +config PREEMPT_BKL + bool "Preempt The Big Kernel Lock" + depends on PREEMPT + default y + help + This option reduces the latency of the kernel by making the + big kernel lock preemptible. + + Say Y here if you are building a kernel for a desktop system. + Say N if you are unsure. + +config X86_UP_APIC + bool "Local APIC support on uniprocessors" + depends on !SMP && !(X86_VISWS || X86_VOYAGER) + help + A local APIC (Advanced Programmable Interrupt Controller) is an + integrated interrupt controller in the CPU. If you have a single-CPU + system which has a processor with a local APIC, you can say Y here to + enable and use it. If you say Y here even though your machine doesn't + have a local APIC, then the kernel will still run with no slowdown at + all. The local APIC supports CPU-generated self-interrupts (timer, + performance counters), and the NMI watchdog which detects hard + lockups. + +config X86_UP_IOAPIC + bool "IO-APIC support on uniprocessors" + depends on X86_UP_APIC + help + An IO-APIC (I/O Advanced Programmable Interrupt Controller) is an + SMP-capable replacement for PC-style interrupt controllers. Most + SMP systems and many recent uniprocessor systems have one. + + If you have a single-CPU system with an IO-APIC, you can say Y here + to use it. If you say Y here even though your machine doesn't have + an IO-APIC, then the kernel will still run with no slowdown at all. + +config X86_LOCAL_APIC + bool + depends on X86_UP_APIC || ((X86_VISWS || SMP) && !X86_VOYAGER) + default y + +config X86_IO_APIC + bool + depends on X86_UP_IOAPIC || (SMP && !(X86_VISWS || X86_VOYAGER)) + default y + +config X86_VISWS_APIC + bool + depends on X86_VISWS + default y + +config X86_TSC + bool + depends on (MWINCHIP3D || MWINCHIP2 || MCRUSOE || MEFFICEON || MCYRIXIII || MK7 || MK6 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || MK8 || MVIAC3_2 || MGEODE) && !X86_NUMAQ + default y + +config X86_MCE + bool "Machine Check Exception" + depends on !X86_VOYAGER + ---help--- + Machine Check Exception support allows the processor to notify the + kernel if it detects a problem (e.g. overheating, component failure). + The action the kernel takes depends on the severity of the problem, + ranging from a warning message on the console, to halting the machine. + Your processor must be a Pentium or newer to support this - check the + flags in /proc/cpuinfo for mce. Note that some older Pentium systems + have a design flaw which leads to false MCE events - hence MCE is + disabled on all P5 processors, unless explicitly enabled with "mce" + as a boot argument. Similarly, if MCE is built in and creates a + problem on some new non-standard machine, you can boot with "nomce" + to disable it. MCE support simply ignores non-MCE processors like + the 386 and 486, so nearly everyone can say Y here. + +config X86_MCE_NONFATAL + tristate "Check for non-fatal errors on AMD Athlon/Duron / Intel Pentium 4" + depends on X86_MCE + help + Enabling this feature starts a timer that triggers every 5 seconds which + will look at the machine check registers to see if anything happened. + Non-fatal problems automatically get corrected (but still logged). + Disable this if you don't want to see these messages. + Seeing the messages this option prints out may be indicative of dying hardware, + or out-of-spec (ie, overclocked) hardware. + This option only does something on certain CPUs. + (AMD Athlon/Duron and Intel Pentium 4) + +config X86_MCE_P4THERMAL + bool "check for P4 thermal throttling interrupt." + depends on X86_MCE && (X86_UP_APIC || SMP) && !X86_VISWS + help + Enabling this feature will cause a message to be printed when the P4 + enters thermal throttling. + +config TOSHIBA + tristate "Toshiba Laptop support" + ---help--- + This adds a driver to safely access the System Management Mode of + the CPU on Toshiba portables with a genuine Toshiba BIOS. It does + not work on models with a Phoenix BIOS. The System Management Mode + is used to set the BIOS and power saving options on Toshiba portables. + + For information on utilities to make use of this driver see the + Toshiba Linux utilities web site at: + . + + Say Y if you intend to run this kernel on a Toshiba portable. + Say N otherwise. + +config I8K + tristate "Dell laptop support" + ---help--- + This adds a driver to safely access the System Management Mode + of the CPU on the Dell Inspiron 8000. The System Management Mode + is used to read cpu temperature and cooling fan status and to + control the fans on the I8K portables. + + This driver has been tested only on the Inspiron 8000 but it may + also work with other Dell laptops. You can force loading on other + models by passing the parameter `force=1' to the module. Use at + your own risk. + + For information on utilities to make use of this driver see the + I8K Linux utilities web site at: + + + Say Y if you intend to run this kernel on a Dell Inspiron 8000. + Say N otherwise. + +config MICROCODE + tristate "/dev/cpu/microcode - Intel IA32 CPU microcode support" + ---help--- + If you say Y here and also to "/dev file system support" in the + 'File systems' section, you will be able to update the microcode on + Intel processors in the IA32 family, e.g. Pentium Pro, Pentium II, + Pentium III, Pentium 4, Xeon etc. You will obviously need the + actual microcode binary data itself which is not shipped with the + Linux kernel. + + For latest news and information on obtaining all the required + ingredients for this driver, check: + . + + To compile this driver as a module, choose M here: the + module will be called microcode. + +config X86_MSR + tristate "/dev/cpu/*/msr - Model-specific register support" + help + This device gives privileged processes access to the x86 + Model-Specific Registers (MSRs). It is a character device with + major 202 and minors 0 to 31 for /dev/cpu/0/msr to /dev/cpu/31/msr. + MSR accesses are directed to a specific CPU on multi-processor + systems. + +config X86_CPUID + tristate "/dev/cpu/*/cpuid - CPU information support" + help + This device gives processes access to the x86 CPUID instruction to + be executed on a specific processor. It is a character device + with major 203 and minors 0 to 31 for /dev/cpu/0/cpuid to + /dev/cpu/31/cpuid. + +source "drivers/firmware/Kconfig" + +choice + prompt "High Memory Support" + default NOHIGHMEM + +config NOHIGHMEM + bool "off" + ---help--- + Linux can use up to 64 Gigabytes of physical memory on x86 systems. + However, the address space of 32-bit x86 processors is only 4 + Gigabytes large. That means that, if you have a large amount of + physical memory, not all of it can be "permanently mapped" by the + kernel. The physical memory that's not permanently mapped is called + "high memory". + + If you are compiling a kernel which will never run on a machine with + more than 1 Gigabyte total physical RAM, answer "off" here (default + choice and suitable for most users). This will result in a "3GB/1GB" + split: 3GB are mapped so that each process sees a 3GB virtual memory + space and the remaining part of the 4GB virtual memory space is used + by the kernel to permanently map as much physical memory as + possible. + + If the machine has between 1 and 4 Gigabytes physical RAM, then + answer "4GB" here. + + If more than 4 Gigabytes is used then answer "64GB" here. This + selection turns Intel PAE (Physical Address Extension) mode on. + PAE implements 3-level paging on IA32 processors. PAE is fully + supported by Linux, PAE mode is implemented on all recent Intel + processors (Pentium Pro and better). NOTE: If you say "64GB" here, + then the kernel will not boot on CPUs that don't support PAE! + + The actual amount of total physical memory will either be + auto detected or can be forced by using a kernel command line option + such as "mem=256M". (Try "man bootparam" or see the documentation of + your boot loader (lilo or loadlin) about how to pass options to the + kernel at boot time.) + + If unsure, say "off". + +config HIGHMEM4G + bool "4GB" + help + Select this if you have a 32-bit processor and between 1 and 4 + gigabytes of physical RAM. + +config HIGHMEM64G + bool "64GB" + help + Select this if you have a 32-bit processor and more than 4 + gigabytes of physical RAM. + +endchoice + +config HIGHMEM + bool + depends on HIGHMEM64G || HIGHMEM4G + default y + +config X86_PAE + bool + depends on HIGHMEM64G + default y + +# Common NUMA Features +config NUMA + bool "Numa Memory Allocation and Scheduler Support" + depends on SMP && HIGHMEM64G && (X86_NUMAQ || X86_GENERICARCH || (X86_SUMMIT && ACPI)) + default n if X86_PC + default y if (X86_NUMAQ || X86_SUMMIT) + +# Need comments to help the hapless user trying to turn on NUMA support +comment "NUMA (NUMA-Q) requires SMP, 64GB highmem support" + depends on X86_NUMAQ && (!HIGHMEM64G || !SMP) + +comment "NUMA (Summit) requires SMP, 64GB highmem support, ACPI" + depends on X86_SUMMIT && (!HIGHMEM64G || !ACPI) + +config DISCONTIGMEM + bool + depends on NUMA + default y + +config HAVE_ARCH_BOOTMEM_NODE + bool + depends on NUMA + default y + +config HAVE_MEMORY_PRESENT + bool + depends on DISCONTIGMEM + default y + +config NEED_NODE_MEMMAP_SIZE + bool + depends on DISCONTIGMEM + default y + +config HIGHPTE + bool "Allocate 3rd-level pagetables from highmem" + depends on HIGHMEM4G || HIGHMEM64G + help + The VM uses one page table entry for each page of physical memory. + For systems with a lot of RAM, this can be wasteful of precious + low memory. Setting this option will put user-space page table + entries in high memory. + +config MATH_EMULATION + bool "Math emulation" + ---help--- + Linux can emulate a math coprocessor (used for floating point + operations) if you don't have one. 486DX and Pentium processors have + a math coprocessor built in, 486SX and 386 do not, unless you added + a 487DX or 387, respectively. (The messages during boot time can + give you some hints here ["man dmesg"].) Everyone needs either a + coprocessor or this emulation. + + If you don't have a math coprocessor, you need to say Y here; if you + say Y here even though you have a coprocessor, the coprocessor will + be used nevertheless. (This behavior can be changed with the kernel + command line option "no387", which comes handy if your coprocessor + is broken. Try "man bootparam" or see the documentation of your boot + loader (lilo or loadlin) about how to pass options to the kernel at + boot time.) This means that it is a good idea to say Y here if you + intend to use this kernel on different machines. + + More information about the internals of the Linux math coprocessor + emulation can be found in . + + If you are not sure, say Y; apart from resulting in a 66 KB bigger + kernel, it won't hurt. + +config MTRR + bool "MTRR (Memory Type Range Register) support" + ---help--- + On Intel P6 family processors (Pentium Pro, Pentium II and later) + the Memory Type Range Registers (MTRRs) may be used to control + processor access to memory ranges. This is most useful if you have + a video (VGA) card on a PCI or AGP bus. Enabling write-combining + allows bus write transfers to be combined into a larger transfer + before bursting over the PCI/AGP bus. This can increase performance + of image write operations 2.5 times or more. Saying Y here creates a + /proc/mtrr file which may be used to manipulate your processor's + MTRRs. Typically the X server should use this. + + This code has a reasonably generic interface so that similar + control registers on other processors can be easily supported + as well: + + The Cyrix 6x86, 6x86MX and M II processors have Address Range + Registers (ARRs) which provide a similar functionality to MTRRs. For + these, the ARRs are used to emulate the MTRRs. + The AMD K6-2 (stepping 8 and above) and K6-3 processors have two + MTRRs. The Centaur C6 (WinChip) has 8 MCRs, allowing + write-combining. All of these processors are supported by this code + and it makes sense to say Y here if you have one of them. + + Saying Y here also fixes a problem with buggy SMP BIOSes which only + set the MTRRs for the boot CPU and not for the secondary CPUs. This + can lead to all sorts of problems, so it's good to say Y here. + + You can safely say Y even if your machine doesn't have MTRRs, you'll + just add about 9 KB to your kernel. + + See for more information. + +config EFI + bool "Boot from EFI support (EXPERIMENTAL)" + depends on ACPI + default n + ---help--- + This enables the the kernel to boot on EFI platforms using + system configuration information passed to it from the firmware. + This also enables the kernel to use any EFI runtime services that are + available (such as the EFI variable services). + + This option is only useful on systems that have EFI firmware + and will result in a kernel image that is ~8k larger. In addition, + you must use the latest ELILO loader available at + in order to take advantage of + kernel initialization using EFI information (neither GRUB nor LILO know + anything about EFI). However, even with this option, the resultant + kernel should continue to boot on existing non-EFI platforms. + +config IRQBALANCE + bool "Enable kernel irq balancing" + depends on SMP && X86_IO_APIC + default y + help + The default yes will allow the kernel to do irq load balancing. + Saying no will keep the kernel from doing irq load balancing. + +config HAVE_DEC_LOCK + bool + depends on (SMP || PREEMPT) && X86_CMPXCHG + default y + +# turning this on wastes a bunch of space. +# Summit needs it only when NUMA is on +config BOOT_IOREMAP + bool + depends on (((X86_SUMMIT || X86_GENERICARCH) && NUMA) || (X86 && EFI)) + default y + +config REGPARM + bool "Use register arguments (EXPERIMENTAL)" + depends on EXPERIMENTAL + default n + help + Compile the kernel with -mregparm=3. This uses a different ABI + and passes the first three arguments of a function call in registers. + This will probably break binary only modules. + + This feature is only enabled for gcc-3.0 and later - earlier compilers + generate incorrect output with certain kernel constructs when + -mregparm=3 is used. + +config SECCOMP + bool "Enable seccomp to safely compute untrusted bytecode" + depends on PROC_FS + default y + help + This kernel feature is useful for number crunching applications + that may need to compute untrusted bytecode during their + execution. By using pipes or other transports made available to + the process as file descriptors supporting the read/write + syscalls, it's possible to isolate those applications in + their own address space using seccomp. Once seccomp is + enabled via /proc//seccomp, it cannot be disabled + and the task is only allowed to execute a few safe syscalls + defined by each seccomp mode. + + If unsure, say Y. Only embedded should say N here. + +endmenu + + +menu "Power management options (ACPI, APM)" + depends on !X86_VOYAGER + +source kernel/power/Kconfig + +source "drivers/acpi/Kconfig" + +menu "APM (Advanced Power Management) BIOS Support" +depends on PM && !X86_VISWS + +config APM + tristate "APM (Advanced Power Management) BIOS support" + depends on PM + ---help--- + APM is a BIOS specification for saving power using several different + techniques. This is mostly useful for battery powered laptops with + APM compliant BIOSes. If you say Y here, the system time will be + reset after a RESUME operation, the /proc/apm device will provide + battery status information, and user-space programs will receive + notification of APM "events" (e.g. battery status change). + + If you select "Y" here, you can disable actual use of the APM + BIOS by passing the "apm=off" option to the kernel at boot time. + + Note that the APM support is almost completely disabled for + machines with more than one CPU. + + In order to use APM, you will need supporting software. For location + and more information, read and the + Battery Powered Linux mini-HOWTO, available from + . + + This driver does not spin down disk drives (see the hdparm(8) + manpage ("man 8 hdparm") for that), and it doesn't turn off + VESA-compliant "green" monitors. + + This driver does not support the TI 4000M TravelMate and the ACER + 486/DX4/75 because they don't have compliant BIOSes. Many "green" + desktop machines also don't have compliant BIOSes, and this driver + may cause those machines to panic during the boot phase. + + Generally, if you don't have a battery in your machine, there isn't + much point in using this driver and you should say N. If you get + random kernel OOPSes or reboots that don't seem to be related to + anything, try disabling/enabling this option (or disabling/enabling + APM in your BIOS). + + Some other things you should try when experiencing seemingly random, + "weird" problems: + + 1) make sure that you have enough swap space and that it is + enabled. + 2) pass the "no-hlt" option to the kernel + 3) switch on floating point emulation in the kernel and pass + the "no387" option to the kernel + 4) pass the "floppy=nodma" option to the kernel + 5) pass the "mem=4M" option to the kernel (thereby disabling + all but the first 4 MB of RAM) + 6) make sure that the CPU is not over clocked. + 7) read the sig11 FAQ at + 8) disable the cache from your BIOS settings + 9) install a fan for the video card or exchange video RAM + 10) install a better fan for the CPU + 11) exchange RAM chips + 12) exchange the motherboard. + + To compile this driver as a module, choose M here: the + module will be called apm. + +config APM_IGNORE_USER_SUSPEND + bool "Ignore USER SUSPEND" + depends on APM + help + This option will ignore USER SUSPEND requests. On machines with a + compliant APM BIOS, you want to say N. However, on the NEC Versa M + series notebooks, it is necessary to say Y because of a BIOS bug. + +config APM_DO_ENABLE + bool "Enable PM at boot time" + depends on APM + ---help--- + Enable APM features at boot time. From page 36 of the APM BIOS + specification: "When disabled, the APM BIOS does not automatically + power manage devices, enter the Standby State, enter the Suspend + State, or take power saving steps in response to CPU Idle calls." + This driver will make CPU Idle calls when Linux is idle (unless this + feature is turned off -- see "Do CPU IDLE calls", below). This + should always save battery power, but more complicated APM features + will be dependent on your BIOS implementation. You may need to turn + this option off if your computer hangs at boot time when using APM + support, or if it beeps continuously instead of suspending. Turn + this off if you have a NEC UltraLite Versa 33/C or a Toshiba + T400CDT. This is off by default since most machines do fine without + this feature. + +config APM_CPU_IDLE + bool "Make CPU Idle calls when idle" + depends on APM + help + Enable calls to APM CPU Idle/CPU Busy inside the kernel's idle loop. + On some machines, this can activate improved power savings, such as + a slowed CPU clock rate, when the machine is idle. These idle calls + are made after the idle loop has run for some length of time (e.g., + 333 mS). On some machines, this will cause a hang at boot time or + whenever the CPU becomes idle. (On machines with more than one CPU, + this option does nothing.) + +config APM_DISPLAY_BLANK + bool "Enable console blanking using APM" + depends on APM + help + Enable console blanking using the APM. Some laptops can use this to + turn off the LCD backlight when the screen blanker of the Linux + virtual console blanks the screen. Note that this is only used by + the virtual console screen blanker, and won't turn off the backlight + when using the X Window system. This also doesn't have anything to + do with your VESA-compliant power-saving monitor. Further, this + option doesn't work for all laptops -- it might not turn off your + backlight at all, or it might print a lot of errors to the console, + especially if you are using gpm. + +config APM_RTC_IS_GMT + bool "RTC stores time in GMT" + depends on APM + help + Say Y here if your RTC (Real Time Clock a.k.a. hardware clock) + stores the time in GMT (Greenwich Mean Time). Say N if your RTC + stores localtime. + + It is in fact recommended to store GMT in your RTC, because then you + don't have to worry about daylight savings time changes. The only + reason not to use GMT in your RTC is if you also run a broken OS + that doesn't understand GMT. + +config APM_ALLOW_INTS + bool "Allow interrupts during APM BIOS calls" + depends on APM + help + Normally we disable external interrupts while we are making calls to + the APM BIOS as a measure to lessen the effects of a badly behaving + BIOS implementation. The BIOS should reenable interrupts if it + needs to. Unfortunately, some BIOSes do not -- especially those in + many of the newer IBM Thinkpads. If you experience hangs when you + suspend, try setting this to Y. Otherwise, say N. + +config APM_REAL_MODE_POWER_OFF + bool "Use real mode APM BIOS call to power off" + depends on APM + help + Use real mode APM BIOS calls to switch off the computer. This is + a work-around for a number of buggy BIOSes. Switch this option on if + your computer crashes instead of powering off properly. + +endmenu + +source "arch/i386/kernel/cpu/cpufreq/Kconfig" + +endmenu + +menu "Bus options (PCI, PCMCIA, EISA, MCA, ISA)" + +config PCI + bool "PCI support" if !X86_VISWS + depends on !X86_VOYAGER + default y if X86_VISWS + help + Find out whether you have a PCI motherboard. PCI is the name of a + bus system, i.e. the way the CPU talks to the other stuff inside + your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or + VESA. If you have PCI, say Y, otherwise N. + + The PCI-HOWTO, available from + , contains valuable + information about which PCI hardware does work under Linux and which + doesn't. + +choice + prompt "PCI access mode" + depends on PCI && !X86_VISWS + default PCI_GOANY + ---help--- + On PCI systems, the BIOS can be used to detect the PCI devices and + determine their configuration. However, some old PCI motherboards + have BIOS bugs and may crash if this is done. Also, some embedded + PCI-based systems don't have any BIOS at all. Linux can also try to + detect the PCI hardware directly without using the BIOS. + + With this option, you can specify how Linux should detect the + PCI devices. If you choose "BIOS", the BIOS will be used, + if you choose "Direct", the BIOS won't be used, and if you + choose "MMConfig", then PCI Express MMCONFIG will be used. + If you choose "Any", the kernel will try MMCONFIG, then the + direct access method and falls back to the BIOS if that doesn't + work. If unsure, go with the default, which is "Any". + +config PCI_GOBIOS + bool "BIOS" + +config PCI_GOMMCONFIG + bool "MMConfig" + +config PCI_GODIRECT + bool "Direct" + +config PCI_GOANY + bool "Any" + +endchoice + +config PCI_BIOS + bool + depends on !X86_VISWS && PCI && (PCI_GOBIOS || PCI_GOANY) + default y + +config PCI_DIRECT + bool + depends on PCI && ((PCI_GODIRECT || PCI_GOANY) || X86_VISWS) + default y + +config PCI_MMCONFIG + bool + depends on PCI && (PCI_GOMMCONFIG || (PCI_GOANY && ACPI)) + select ACPI_BOOT + default y + +source "drivers/pci/pcie/Kconfig" + +source "drivers/pci/Kconfig" + +config ISA + bool "ISA support" + depends on !(X86_VOYAGER || X86_VISWS) + help + Find out whether you have ISA slots on your motherboard. ISA is the + name of a bus system, i.e. the way the CPU talks to the other stuff + inside your box. Other bus systems are PCI, EISA, MicroChannel + (MCA) or VESA. ISA is an older system, now being displaced by PCI; + newer boards don't support it. If you have ISA, say Y, otherwise N. + +config EISA + bool "EISA support" + depends on ISA + ---help--- + The Extended Industry Standard Architecture (EISA) bus was + developed as an open alternative to the IBM MicroChannel bus. + + The EISA bus provided some of the features of the IBM MicroChannel + bus while maintaining backward compatibility with cards made for + the older ISA bus. The EISA bus saw limited use between 1988 and + 1995 when it was made obsolete by the PCI bus. + + Say Y here if you are building a kernel for an EISA-based machine. + + Otherwise, say N. + +source "drivers/eisa/Kconfig" + +config MCA + bool "MCA support" if !(X86_VISWS || X86_VOYAGER) + default y if X86_VOYAGER + help + MicroChannel Architecture is found in some IBM PS/2 machines and + laptops. It is a bus system similar to PCI or ISA. See + (and especially the web page given + there) before attempting to build an MCA bus kernel. + +source "drivers/mca/Kconfig" + +config SCx200 + tristate "NatSemi SCx200 support" + depends on !X86_VOYAGER + help + This provides basic support for the National Semiconductor SCx200 + processor. Right now this is just a driver for the GPIO pins. + + If you don't know what to do here, say N. + + This support is also available as a module. If compiled as a + module, it will be called scx200. + +source "drivers/pcmcia/Kconfig" + +source "drivers/pci/hotplug/Kconfig" + +endmenu + +menu "Executable file formats" + +source "fs/Kconfig.binfmt" + +endmenu + +source "drivers/Kconfig" + +source "fs/Kconfig" + +source "arch/i386/oprofile/Kconfig" + +source "arch/i386/Kconfig.debug" + +source "security/Kconfig" + +source "crypto/Kconfig" + +source "lib/Kconfig" + +# +# Use the generic interrupt handling code in kernel/irq/: +# +config GENERIC_HARDIRQS + bool + default y + +config GENERIC_IRQ_PROBE + bool + default y + +config X86_SMP + bool + depends on SMP && !X86_VOYAGER + default y + +config X86_HT + bool + depends on SMP && !(X86_VISWS || X86_VOYAGER) + default y + +config X86_BIOS_REBOOT + bool + depends on !(X86_VISWS || X86_VOYAGER) + default y + +config X86_TRAMPOLINE + bool + depends on X86_SMP || (X86_VOYAGER && SMP) + default y + +config PC + bool + depends on X86 && !EMBEDDED + default y diff --git a/arch/i386/Kconfig.debug b/arch/i386/Kconfig.debug new file mode 100644 index 0000000..bfb2064 --- /dev/null +++ b/arch/i386/Kconfig.debug @@ -0,0 +1,72 @@ +menu "Kernel hacking" + +source "lib/Kconfig.debug" + +config EARLY_PRINTK + bool "Early printk" if EMBEDDED && DEBUG_KERNEL + default y + help + Write kernel log output directly into the VGA buffer or to a serial + port. + + This is useful for kernel debugging when your machine crashes very + early before the console code is initialized. For normal operation + it is not recommended because it looks ugly and doesn't cooperate + with klogd/syslogd or the X server. You should normally N here, + unless you want to debug such a crash. + +config DEBUG_STACKOVERFLOW + bool "Check for stack overflows" + depends on DEBUG_KERNEL + +config KPROBES + bool "Kprobes" + depends on DEBUG_KERNEL + help + Kprobes allows you to trap at almost any kernel address and + execute a callback function. register_kprobe() establishes + a probepoint and specifies the callback. Kprobes is useful + for kernel debugging, non-intrusive instrumentation and testing. + If in doubt, say "N". + +config DEBUG_STACK_USAGE + bool "Stack utilization instrumentation" + depends on DEBUG_KERNEL + help + Enables the display of the minimum amount of free stack which each + task has ever had available in the sysrq-T and sysrq-P debug output. + + This option will slow down process creation somewhat. + +comment "Page alloc debug is incompatible with Software Suspend on i386" + depends on DEBUG_KERNEL && SOFTWARE_SUSPEND + +config DEBUG_PAGEALLOC + bool "Page alloc debugging" + depends on DEBUG_KERNEL && !SOFTWARE_SUSPEND + help + Unmap pages from the kernel linear mapping after free_pages(). + This results in a large slowdown, but helps to find certain types + of memory corruptions. + +config 4KSTACKS + bool "Use 4Kb for kernel stacks instead of 8Kb" + depends on DEBUG_KERNEL + help + If you say Y here the kernel will use a 4Kb stacksize for the + kernel stack attached to each process/thread. This facilitates + running more threads on a system and also reduces the pressure + on the VM subsystem for higher order allocations. This option + will also use IRQ stacks to compensate for the reduced stackspace. + +config X86_FIND_SMP_CONFIG + bool + depends on X86_LOCAL_APIC || X86_VOYAGER + default y + +config X86_MPPARSE + bool + depends on X86_LOCAL_APIC && !X86_VISWS + default y + +endmenu diff --git a/arch/i386/Makefile b/arch/i386/Makefile new file mode 100644 index 0000000..314c714 --- /dev/null +++ b/arch/i386/Makefile @@ -0,0 +1,173 @@ +# +# i386/Makefile +# +# This file is included by the global makefile so that you can add your own +# architecture-specific flags and dependencies. Remember to do have actions +# for "archclean" cleaning up for this architecture. +# +# This file is subject to the terms and conditions of the GNU General Public +# License. See the file "COPYING" in the main directory of this archive +# for more details. +# +# Copyright (C) 1994 by Linus Torvalds +# +# 19990713 Artur Skawina +# Added '-march' and '-mpreferred-stack-boundary' support +# +# Kianusch Sayah Karadji +# Added support for GEODE CPU + +LDFLAGS := -m elf_i386 +OBJCOPYFLAGS := -O binary -R .note -R .comment -S +LDFLAGS_vmlinux := +CHECKFLAGS += -D__i386__ + +CFLAGS += -pipe -msoft-float + +# prevent gcc from keeping the stack 16 byte aligned +CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2) + +align := $(cc-option-align) +cflags-$(CONFIG_M386) += -march=i386 +cflags-$(CONFIG_M486) += -march=i486 +cflags-$(CONFIG_M586) += -march=i586 +cflags-$(CONFIG_M586TSC) += -march=i586 +cflags-$(CONFIG_M586MMX) += $(call cc-option,-march=pentium-mmx,-march=i586) +cflags-$(CONFIG_M686) += -march=i686 +cflags-$(CONFIG_MPENTIUMII) += -march=i686 $(call cc-option,-mtune=pentium2) +cflags-$(CONFIG_MPENTIUMIII) += -march=i686 $(call cc-option,-mtune=pentium3) +cflags-$(CONFIG_MPENTIUMM) += -march=i686 $(call cc-option,-mtune=pentium3) +cflags-$(CONFIG_MPENTIUM4) += -march=i686 $(call cc-option,-mtune=pentium4) +cflags-$(CONFIG_MK6) += -march=k6 +# Please note, that patches that add -march=athlon-xp and friends are pointless. +# They make zero difference whatsosever to performance at this time. +cflags-$(CONFIG_MK7) += $(call cc-option,-march=athlon,-march=i686 $(align)-functions=4) +cflags-$(CONFIG_MK8) += $(call cc-option,-march=k8,$(call cc-option,-march=athlon,-march=i686 $(align)-functions=4)) +cflags-$(CONFIG_MCRUSOE) += -march=i686 $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0 +cflags-$(CONFIG_MEFFICEON) += -march=i686 $(call cc-option,-mtune=pentium3) $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0 +cflags-$(CONFIG_MWINCHIPC6) += $(call cc-option,-march=winchip-c6,-march=i586) +cflags-$(CONFIG_MWINCHIP2) += $(call cc-option,-march=winchip2,-march=i586) +cflags-$(CONFIG_MWINCHIP3D) += $(call cc-option,-march=winchip2,-march=i586) +cflags-$(CONFIG_MCYRIXIII) += $(call cc-option,-march=c3,-march=i486) $(align)-functions=0 $(align)-jumps=0 $(align)-loops=0 +cflags-$(CONFIG_MVIAC3_2) += $(call cc-option,-march=c3-2,-march=i686) + +# AMD Elan support +cflags-$(CONFIG_X86_ELAN) += -march=i486 + +# MediaGX aka Geode support +cflags-$(CONFIG_MGEODE) += $(call cc-option,-march=pentium-mmx,-march=i586) + +# -mregparm=3 works ok on gcc-3.0 and later +# +GCC_VERSION := $(call cc-version) +cflags-$(CONFIG_REGPARM) += $(shell if [ $(GCC_VERSION) -ge 0300 ] ; then echo "-mregparm=3"; fi ;) + +# Disable unit-at-a-time mode, it makes gcc use a lot more stack +# due to the lack of sharing of stacklots. +CFLAGS += $(call cc-option,-fno-unit-at-a-time) + +CFLAGS += $(cflags-y) + +# Default subarch .c files +mcore-y := mach-default + +# Voyager subarch support +mflags-$(CONFIG_X86_VOYAGER) := -Iinclude/asm-i386/mach-voyager +mcore-$(CONFIG_X86_VOYAGER) := mach-voyager + +# VISWS subarch support +mflags-$(CONFIG_X86_VISWS) := -Iinclude/asm-i386/mach-visws +mcore-$(CONFIG_X86_VISWS) := mach-visws + +# NUMAQ subarch support +mflags-$(CONFIG_X86_NUMAQ) := -Iinclude/asm-i386/mach-numaq +mcore-$(CONFIG_X86_NUMAQ) := mach-default + +# BIGSMP subarch support +mflags-$(CONFIG_X86_BIGSMP) := -Iinclude/asm-i386/mach-bigsmp +mcore-$(CONFIG_X86_BIGSMP) := mach-default + +#Summit subarch support +mflags-$(CONFIG_X86_SUMMIT) := -Iinclude/asm-i386/mach-summit +mcore-$(CONFIG_X86_SUMMIT) := mach-default + +# generic subarchitecture +mflags-$(CONFIG_X86_GENERICARCH) := -Iinclude/asm-i386/mach-generic +mcore-$(CONFIG_X86_GENERICARCH) := mach-default +core-$(CONFIG_X86_GENERICARCH) += arch/i386/mach-generic/ + +# ES7000 subarch support +mflags-$(CONFIG_X86_ES7000) := -Iinclude/asm-i386/mach-es7000 +mcore-$(CONFIG_X86_ES7000) := mach-default +core-$(CONFIG_X86_ES7000) := arch/i386/mach-es7000/ + +# default subarch .h files +mflags-y += -Iinclude/asm-i386/mach-default + +head-y := arch/i386/kernel/head.o arch/i386/kernel/init_task.o + +libs-y += arch/i386/lib/ +core-y += arch/i386/kernel/ \ + arch/i386/mm/ \ + arch/i386/$(mcore-y)/ \ + arch/i386/crypto/ +drivers-$(CONFIG_MATH_EMULATION) += arch/i386/math-emu/ +drivers-$(CONFIG_PCI) += arch/i386/pci/ +# must be linked after kernel/ +drivers-$(CONFIG_OPROFILE) += arch/i386/oprofile/ +drivers-$(CONFIG_PM) += arch/i386/power/ + +CFLAGS += $(mflags-y) +AFLAGS += $(mflags-y) + +boot := arch/i386/boot + +.PHONY: zImage bzImage compressed zlilo bzlilo \ + zdisk bzdisk fdimage fdimage144 fdimage288 install + +all: bzImage + +# KBUILD_IMAGE specify target image being built + KBUILD_IMAGE := $(boot)/bzImage +zImage zlilo zdisk: KBUILD_IMAGE := arch/i386/boot/zImage + +zImage bzImage: vmlinux + $(Q)$(MAKE) $(build)=$(boot) $(KBUILD_IMAGE) + +compressed: zImage + +zlilo bzlilo: vmlinux + $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) zlilo + +zdisk bzdisk: vmlinux + $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) zdisk + +fdimage fdimage144 fdimage288: vmlinux + $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) $@ + +install: + $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) $@ + +prepare: include/asm-$(ARCH)/asm_offsets.h +CLEAN_FILES += include/asm-$(ARCH)/asm_offsets.h + +arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \ + include/config/MARKER + +include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.s + $(call filechk,gen-asm-offsets) + +archclean: + $(Q)$(MAKE) $(clean)=arch/i386/boot + +define archhelp + echo '* bzImage - Compressed kernel image (arch/$(ARCH)/boot/bzImage)' + echo ' install - Install kernel using' + echo ' (your) ~/bin/installkernel or' + echo ' (distribution) /sbin/installkernel or' + echo ' install to $$(INSTALL_PATH) and run lilo' + echo ' bzdisk - Create a boot floppy in /dev/fd0' + echo ' fdimage - Create a boot floppy image' +endef + +CLEAN_FILES += arch/$(ARCH)/boot/fdimage arch/$(ARCH)/boot/mtools.conf diff --git a/arch/i386/boot/Makefile b/arch/i386/boot/Makefile new file mode 100644 index 0000000..aa7064a --- /dev/null +++ b/arch/i386/boot/Makefile @@ -0,0 +1,104 @@ +# +# arch/i386/boot/Makefile +# +# This file is subject to the terms and conditions of the GNU General Public +# License. See the file "COPYING" in the main directory of this archive +# for more details. +# +# Copyright (C) 1994 by Linus Torvalds +# + +# ROOT_DEV specifies the default root-device when making the image. +# This can be either FLOPPY, CURRENT, /dev/xxxx or empty, in which case +# the default of FLOPPY is used by 'build'. + +ROOT_DEV := CURRENT + +# If you want to preset the SVGA mode, uncomment the next line and +# set SVGA_MODE to whatever number you want. +# Set it to -DSVGA_MODE=NORMAL_VGA if you just want the EGA/VGA mode. +# The number is the same as you would ordinarily press at bootup. + +SVGA_MODE := -DSVGA_MODE=NORMAL_VGA + +# If you want the RAM disk device, define this to be the size in blocks. + +#RAMDISK := -DRAMDISK=512 + +targets := vmlinux.bin bootsect bootsect.o setup setup.o \ + zImage bzImage +subdir- := compressed + +hostprogs-y := tools/build + +HOSTCFLAGS_build.o := $(LINUXINCLUDE) + +# --------------------------------------------------------------------------- + +$(obj)/zImage: IMAGE_OFFSET := 0x1000 +$(obj)/zImage: EXTRA_AFLAGS := -traditional $(SVGA_MODE) $(RAMDISK) +$(obj)/bzImage: IMAGE_OFFSET := 0x100000 +$(obj)/bzImage: EXTRA_AFLAGS := -traditional $(SVGA_MODE) $(RAMDISK) -D__BIG_KERNEL__ +$(obj)/bzImage: BUILDFLAGS := -b + +quiet_cmd_image = BUILD $@ +cmd_image = $(obj)/tools/build $(BUILDFLAGS) $(obj)/bootsect $(obj)/setup \ + $(obj)/vmlinux.bin $(ROOT_DEV) > $@ + +$(obj)/zImage $(obj)/bzImage: $(obj)/bootsect $(obj)/setup \ + $(obj)/vmlinux.bin $(obj)/tools/build FORCE + $(call if_changed,image) + @echo 'Kernel: $@ is ready' + +$(obj)/vmlinux.bin: $(obj)/compressed/vmlinux FORCE + $(call if_changed,objcopy) + +LDFLAGS_bootsect := -Ttext 0x0 -s --oformat binary +LDFLAGS_setup := -Ttext 0x0 -s --oformat binary -e begtext + +$(obj)/setup $(obj)/bootsect: %: %.o FORCE + $(call if_changed,ld) + +$(obj)/compressed/vmlinux: FORCE + $(Q)$(MAKE) $(build)=$(obj)/compressed IMAGE_OFFSET=$(IMAGE_OFFSET) $@ + +# Set this if you want to pass append arguments to the zdisk/fdimage kernel +FDARGS = + +$(obj)/mtools.conf: $(src)/mtools.conf.in + sed -e 's|@OBJ@|$(obj)|g' < $< > $@ + +# This requires write access to /dev/fd0 +zdisk: $(BOOTIMAGE) $(obj)/mtools.conf + MTOOLSRC=$(obj)/mtools.conf mformat a: ; sync + syslinux /dev/fd0 ; sync + echo 'default linux $(FDARGS)' | \ + MTOOLSRC=$(src)/mtools.conf mcopy - a:syslinux.cfg + MTOOLSRC=$(obj)/mtools.conf mcopy $(BOOTIMAGE) a:linux ; sync + +# These require being root or having syslinux 2.02 or higher installed +fdimage fdimage144: $(BOOTIMAGE) $(obj)/mtools.conf + dd if=/dev/zero of=$(obj)/fdimage bs=1024 count=1440 + MTOOLSRC=$(obj)/mtools.conf mformat v: ; sync + syslinux $(obj)/fdimage ; sync + echo 'default linux $(FDARGS)' | \ + MTOOLSRC=$(obj)/mtools.conf mcopy - v:syslinux.cfg + MTOOLSRC=$(obj)/mtools.conf mcopy $(BOOTIMAGE) v:linux ; sync + +fdimage288: $(BOOTIMAGE) $(obj)/mtools.conf + dd if=/dev/zero of=$(obj)/fdimage bs=1024 count=2880 + MTOOLSRC=$(obj)/mtools.conf mformat w: ; sync + syslinux $(obj)/fdimage ; sync + echo 'default linux $(FDARGS)' | \ + MTOOLSRC=$(obj)/mtools.conf mcopy - w:syslinux.cfg + MTOOLSRC=$(obj)/mtools.conf mcopy $(BOOTIMAGE) w:linux ; sync + +zlilo: $(BOOTIMAGE) + if [ -f $(INSTALL_PATH)/vmlinuz ]; then mv $(INSTALL_PATH)/vmlinuz $(INSTALL_PATH)/vmlinuz.old; fi + if [ -f $(INSTALL_PATH)/System.map ]; then mv $(INSTALL_PATH)/System.map $(INSTALL_PATH)/System.old; fi + cat $(BOOTIMAGE) > $(INSTALL_PATH)/vmlinuz + cp System.map $(INSTALL_PATH)/ + if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi + +install: $(BOOTIMAGE) + sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $< System.map "$(INSTALL_PATH)" diff --git a/arch/i386/boot/bootsect.S b/arch/i386/boot/bootsect.S new file mode 100644 index 0000000..ba9fe14d --- /dev/null +++ b/arch/i386/boot/bootsect.S @@ -0,0 +1,98 @@ +/* + * bootsect.S Copyright (C) 1991, 1992 Linus Torvalds + * + * modified by Drew Eckhardt + * modified by Bruce Evans (bde) + * modified by Chris Noe (May 1999) (as86 -> gas) + * gutted by H. Peter Anvin (Jan 2003) + * + * BIG FAT NOTE: We're in real mode using 64k segments. Therefore segment + * addresses must be multiplied by 16 to obtain their respective linear + * addresses. To avoid confusion, linear addresses are written using leading + * hex while segment addresses are written as segment:offset. + * + */ + +#include + +SETUPSECTS = 4 /* default nr of setup-sectors */ +BOOTSEG = 0x07C0 /* original address of boot-sector */ +INITSEG = DEF_INITSEG /* we move boot here - out of the way */ +SETUPSEG = DEF_SETUPSEG /* setup starts here */ +SYSSEG = DEF_SYSSEG /* system loaded at 0x10000 (65536) */ +SYSSIZE = DEF_SYSSIZE /* system size: # of 16-byte clicks */ + /* to be loaded */ +ROOT_DEV = 0 /* ROOT_DEV is now written by "build" */ +SWAP_DEV = 0 /* SWAP_DEV is now written by "build" */ + +#ifndef SVGA_MODE +#define SVGA_MODE ASK_VGA +#endif + +#ifndef RAMDISK +#define RAMDISK 0 +#endif + +#ifndef ROOT_RDONLY +#define ROOT_RDONLY 1 +#endif + +.code16 +.text + +.global _start +_start: + + # Normalize the start address + jmpl $BOOTSEG, $start2 + +start2: + movw %cs, %ax + movw %ax, %ds + movw %ax, %es + movw %ax, %ss + movw $0x7c00, %sp + sti + cld + + movw $bugger_off_msg, %si + +msg_loop: + lodsb + andb %al, %al + jz die + movb $0xe, %ah + movw $7, %bx + int $0x10 + jmp msg_loop + +die: + # Allow the user to press a key, then reboot + xorw %ax, %ax + int $0x16 + int $0x19 + + # int 0x19 should never return. In case it does anyway, + # invoke the BIOS reset code... + ljmp $0xf000,$0xfff0 + + +bugger_off_msg: + .ascii "Direct booting from floppy is no longer supported.\r\n" + .ascii "Please use a boot loader program instead.\r\n" + .ascii "\n" + .ascii "Remove disk and press any key to reboot . . .\r\n" + .byte 0 + + + # Kernel attributes; used by setup + + .org 497 +setup_sects: .byte SETUPSECTS +root_flags: .word ROOT_RDONLY +syssize: .word SYSSIZE +swap_dev: .word SWAP_DEV +ram_size: .word RAMDISK +vid_mode: .word SVGA_MODE +root_dev: .word ROOT_DEV +boot_flag: .word 0xAA55 diff --git a/arch/i386/boot/compressed/Makefile b/arch/i386/boot/compressed/Makefile new file mode 100644 index 0000000..258ea95 --- /dev/null +++ b/arch/i386/boot/compressed/Makefile @@ -0,0 +1,25 @@ +# +# linux/arch/i386/boot/compressed/Makefile +# +# create a compressed vmlinux image from the original vmlinux +# + +targets := vmlinux vmlinux.bin vmlinux.bin.gz head.o misc.o piggy.o +EXTRA_AFLAGS := -traditional + +LDFLAGS_vmlinux := -Ttext $(IMAGE_OFFSET) -e startup_32 + +$(obj)/vmlinux: $(obj)/head.o $(obj)/misc.o $(obj)/piggy.o FORCE + $(call if_changed,ld) + @: + +$(obj)/vmlinux.bin: vmlinux FORCE + $(call if_changed,objcopy) + +$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE + $(call if_changed,gzip) + +LDFLAGS_piggy.o := -r --format binary --oformat elf32-i386 -T + +$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.gz FORCE + $(call if_changed,ld) diff --git a/arch/i386/boot/compressed/head.S b/arch/i386/boot/compressed/head.S new file mode 100644 index 0000000..c5e80b6 --- /dev/null +++ b/arch/i386/boot/compressed/head.S @@ -0,0 +1,128 @@ +/* + * linux/boot/head.S + * + * Copyright (C) 1991, 1992, 1993 Linus Torvalds + */ + +/* + * head.S contains the 32-bit startup code. + * + * NOTE!!! Startup happens at absolute address 0x00001000, which is also where + * the page directory will exist. The startup code will be overwritten by + * the page directory. [According to comments etc elsewhere on a compressed + * kernel it will end up at 0x1000 + 1Mb I hope so as I assume this. - AC] + * + * Page 0 is deliberately kept safe, since System Management Mode code in + * laptops may need to access the BIOS data stored there. This is also + * useful for future device drivers that either access the BIOS via VM86 + * mode. + */ + +/* + * High loaded stuff by Hans Lermen & Werner Almesberger, Feb. 1996 + */ +.text + +#include +#include + + .globl startup_32 + +startup_32: + cld + cli + movl $(__BOOT_DS),%eax + movl %eax,%ds + movl %eax,%es + movl %eax,%fs + movl %eax,%gs + + lss stack_start,%esp + xorl %eax,%eax +1: incl %eax # check that A20 really IS enabled + movl %eax,0x000000 # loop forever if it isn't + cmpl %eax,0x100000 + je 1b + +/* + * Initialize eflags. Some BIOS's leave bits like NT set. This would + * confuse the debugger if this code is traced. + * XXX - best to initialize before switching to protected mode. + */ + pushl $0 + popfl +/* + * Clear BSS + */ + xorl %eax,%eax + movl $_edata,%edi + movl $_end,%ecx + subl %edi,%ecx + cld + rep + stosb +/* + * Do the decompression, and jump to the new kernel.. + */ + subl $16,%esp # place for structure on the stack + movl %esp,%eax + pushl %esi # real mode pointer as second arg + pushl %eax # address of structure as first arg + call decompress_kernel + orl %eax,%eax + jnz 3f + popl %esi # discard address + popl %esi # real mode pointer + xorl %ebx,%ebx + ljmp $(__BOOT_CS), $0x100000 + +/* + * We come here, if we were loaded high. + * We need to move the move-in-place routine down to 0x1000 + * and then start it with the buffer addresses in registers, + * which we got from the stack. + */ +3: + movl $move_routine_start,%esi + movl $0x1000,%edi + movl $move_routine_end,%ecx + subl %esi,%ecx + addl $3,%ecx + shrl $2,%ecx + cld + rep + movsl + + popl %esi # discard the address + popl %ebx # real mode pointer + popl %esi # low_buffer_start + popl %ecx # lcount + popl %edx # high_buffer_start + popl %eax # hcount + movl $0x100000,%edi + cli # make sure we don't get interrupted + ljmp $(__BOOT_CS), $0x1000 # and jump to the move routine + +/* + * Routine (template) for moving the decompressed kernel in place, + * if we were high loaded. This _must_ PIC-code ! + */ +move_routine_start: + movl %ecx,%ebp + shrl $2,%ecx + rep + movsl + movl %ebp,%ecx + andl $3,%ecx + rep + movsb + movl %edx,%esi + movl %eax,%ecx # NOTE: rep movsb won't move if %ecx == 0 + addl $3,%ecx + shrl $2,%ecx + rep + movsl + movl %ebx,%esi # Restore setup pointer + xorl %ebx,%ebx + ljmp $(__BOOT_CS), $0x100000 +move_routine_end: diff --git a/arch/i386/boot/compressed/misc.c b/arch/i386/boot/compressed/misc.c new file mode 100644 index 0000000..fa67045 --- /dev/null +++ b/arch/i386/boot/compressed/misc.c @@ -0,0 +1,382 @@ +/* + * misc.c + * + * This is a collection of several routines from gzip-1.0.3 + * adapted for Linux. + * + * malloc by Hannu Savolainen 1993 and Matthias Urlichs 1994 + * puts by Nick Holloway 1993, better puts by Martin Mares 1995 + * High loaded stuff by Hans Lermen & Werner Almesberger, Feb. 1996 + */ + +#include +#include +#include +#include