Commit Graph

47645 Commits

Author SHA1 Message Date
ad
a39076d65c This isn't needed any more. 2008-05-02 22:59:15 +00:00
martin
147dd598b0 Use standard 2 clause license 2008-05-02 22:03:23 +00:00
martin
04bdb2ab99 Replace TNF licenses with standard 2 clause variant. 2008-05-02 22:00:29 +00:00
rjs
1fe1d42716 Only call cpu_attach_common() once. 2008-05-02 18:40:51 +00:00
martin
cd22f25e6f Move TNF licenses to 2 clause form 2008-05-02 18:11:04 +00:00
ad
31d4b62867 - Give x86 BIOS boot the ability to load new style modules and pass them
into the kernel. Based on a patch by jmcneill@, with many fixes and
  improvements by me.
2008-05-02 15:29:18 +00:00
ad
bfc5732320 - Give x86 BIOS boot the ability to load new style modules and pass them
into the kernel. Based on a patch by jmcneill@, with many fixes and
  improvements by me.

- Put MEMORY_DISK_DYNAMIC and MODULAR into the GENERIC kernels, so that
  you can load miniroot.kmod from the boot blocks and boot into the
  installer!
2008-05-02 15:26:38 +00:00
dyoung
89e32494c3 Release mutex before unmapping bus space to stop a locking error. 2008-05-01 22:59:37 +00:00
garbled
e5bede68a5 Squeeze 14k out of the INSTALL_SMALL image. Still too big. (by 49k)
Savings detailed below:
6274    #pseudo-device  rnd
799     no options      EXEC_AOUT
1082    options         NO_DEV_PTM
6023    st* at scsibus
2008-05-01 20:57:38 +00:00
cegger
d9b775927c hpqlb(4): driver for HP Quick Launch buttons - found on HP Pavilion Notebooks 2008-05-01 20:18:18 +00:00
garbled
82a9123f59 Add a missing Makefile that I forgot to commit in the mkbootimage
switch.  Caught by Juergen Hannken-Illjes.
2008-05-01 18:13:38 +00:00
ad
eb4b641df7 Simplify slightly. 2008-05-01 14:48:19 +00:00
ad
c379d13c35 Kernel preemption needs to be off for tlb shootdowns. 2008-05-01 12:03:18 +00:00
ad
a7fbd437d1 If MP is disabled at the boot prompt, then don't use MPBIOS. When ACPI
is also disabled, this completely avoids using ioapics.
2008-04-30 23:25:49 +00:00
macallan
27a3fd2a36 add dummy argument to cpu_did_resched() so kern_synch.c is happy again 2008-04-30 23:21:29 +00:00
ad
ac118e2286 Shuffle ioapic/mainbus/cpu into std.amd64 like i386. 2008-04-30 22:08:18 +00:00
garbled
65839b8463 rs6000's mkbootimage is now no longer needed. 2008-04-30 21:22:19 +00:00
garbled
c3077f9533 Remove prep's copy of mkbootimage 2008-04-30 21:20:37 +00:00
garbled
c3408ed04a Convert prep to use the new unified mkbootimage rather than it's own. This
mkbootimage can be shared by prep, rs6000, and bebox.

TODO: Convert bebox to use this.  Needs someone to test.
2008-04-30 21:15:33 +00:00
ad
5ed45d6c0f lcr0() was changed to take a u_long. pcb_cr0 was a 32-bit signed quantity.
It was being sign extended in cpu_hatch() (CR0_PG is always set), causing
systems to crash and reboot before going multiuser.
2008-04-30 21:04:24 +00:00
ad
83cf21a0ba Tidy up console output slightly. 2008-04-30 16:18:26 +00:00
ad
da694a1ffc For PR kern/38537:
- Make MULTIPROCESSOR mandatory on i386.

Installation changes:

- Update installation section of release notes to match reality.
- Rename INSTALL to INSTALL_FLOPPY, retire INSTALL_LARGE.
- Build INSTALL kernel from GENERIC, like on amd64.
- Update boot menu to allow disabling ACPI and/or SMP.
- Remove GENERIC.NOACPI from the installed kernel list.
- TODO: install default boot.cfg in etc.tgz.
- TODO: possibly enable PCI fixup stuff at runtime if ACPI is disabled.

Build changes:

- No longer build ALL, it's for verification, is slow to build and the
  build process is already crippled by the number of kernels built.
- No longer build GENERIC.NOACPI.
2008-04-30 15:29:11 +00:00
ad
152ac49075 Fold DEBUG into ALL. 2008-04-30 14:13:26 +00:00
martin
11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
ad
e1df701f0d Avoid unneeded AST faults. 2008-04-30 12:44:27 +00:00
joerg
48d8e65bbd Exploit ci->ci_isources[slot] == source to simplify code. 2008-04-30 12:00:52 +00:00
tsutsui
9963e1d1ef Certainly this file is derived from src/sys/arch/x68k/include/intr.h,
so sync copyright notice with it.  Approved by martin@.
2008-04-30 08:13:24 +00:00
cegger
c92d850bb3 AMD's APM Volume 2 says 'All control registers are 64bit in long mode'.
Fix the CR0 prototype to match this (the asm implementation is correct though).
OK ad
2008-04-30 00:16:30 +00:00
ad
5d794f8931 PR kern/38537 __HAVE_PREEMPTION requires MULTIPROCESSOR
Don't patch out the kernel_lock functions if ncpu == 1. We need it for
preemption, and it's used much less frequently than before.
2008-04-30 00:05:20 +00:00
ad
94ff46d894 This isn't needed any more. 2008-04-29 23:28:01 +00:00
ad
4325f51a67 Adjust the help string for new options. 2008-04-29 21:35:47 +00:00
ad
5804d4a96d Minor correction to previous. 2008-04-29 19:19:29 +00:00
ad
9a4949249f Recognise two new boot flags:
-1 disable MP
-2 disable ACPI
2008-04-29 19:18:19 +00:00
joerg
a1988014f6 Remove IOAPIC_HWMASK, it was never defined. 2008-04-29 18:47:18 +00:00
ad
9bdeb71266 cpu_switchto: if DIAGNOSTIC, assert not above IPL_SCHED. 2008-04-29 18:27:18 +00:00
matt
00caca484f Change IPL_LEVELS to NIPL.
current_spl_level is dead.
2008-04-29 17:09:47 +00:00
martin
9213a7cdc1 Record argument in soft interrupt handler 2008-04-29 15:57:56 +00:00
tsutsui
835f32c27d - split softc/device_t with related changes
- always make local functions static since mips/conf/Makefile.mips
  has been changed to preserve local symbols for debug
2008-04-29 15:50:39 +00:00
yamt
5d9397e689 sprinkle KASSERT(kpreempt_disabled()). 2008-04-29 15:44:07 +00:00
yamt
20d35e839b make cpu_intr_p preemption safe. 2008-04-29 15:42:59 +00:00
ad
7851dc4283 Get spl framework and interrupt gates working before breaking into DDB
on boot. PR port-amd64/30828.
2008-04-29 15:26:26 +00:00
tsutsui
1a8652c79c - reorganize com console code
- remove unused functions
2008-04-29 15:24:50 +00:00
ad
a1ddfabe35 Mirror sparc and provide sparc_softintr stuff. There is no functional
change, beyond renaming a function and putting back disestablish/schedule.
PR kern/37540.
2008-04-29 14:06:31 +00:00
ad
5b204246b2 Current should boot quickly on these emulators now, so the configs aren't
required. If it boots slowly please adjust the code to disable ISAPNP probes
which are the main slow part of boot on x86. See x86/platform.c.
2008-04-29 12:46:15 +00:00
ad
19f35718b6 Require MULTIPROCESSOR. PR kern/38537. 2008-04-29 12:43:58 +00:00
martin
3028e483e4 Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
ad
88a55035c6 Oops... EVCNT_TYPE_IPI -> EVCNT_TYPE_INTR. 2008-04-29 00:44:58 +00:00
ad
ffc4969f6e Don't count many items as EVCNT_TYPE_INTR because they clutter up the
systat vmstat display.
2008-04-28 23:00:22 +00:00
ad
104cf0ae89 Add support for kernel preeemption to the i386 and amd64 ports. Notes:
- I have seen one isolated panic in the x86 pmap, but otherwise i386
  seems stable with preemption enabled.

- amd64 is missing the FPU handling changes and it's not yet safe to
  enable it there.

- The usual level for kern.sched.kpreempt_pri will be 128 once enabled
  by default. For testing, setting it to 0 helps to shake out bugs.
2008-04-28 22:47:37 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00