Commit Graph

40423 Commits

Author SHA1 Message Date
phk
b6ab7d04ac Add new geom_ccd module 2003-06-09 21:49:54 +00:00
phk
218c9d77af remove old CCD module 2003-06-09 21:48:12 +00:00
jhb
04442a97f2 Wait for the real interval timer callout handler to finish executing if it
is currently executing when we try to remove it in exit1().  Without this,
it was possible for the callout to bogusly rearm itself and eventually
refire after the process had been free'd resulting in a panic.

PR:		kern/51964
Reported by:	Jilles Tjoelker <jilles@stack.nl>
Reviewed by:	tegge, bde
2003-06-09 21:46:22 +00:00
jhb
6eea1c949c The issetugid() function is MPSAFE. 2003-06-09 21:34:19 +00:00
scottl
7bf7681b1a Track the resource id of the memory port instead of just assuming that
it is 0x0.  Cardbus-based sio/modem cards can now be ejected without
panic'ing.
2003-06-09 21:25:14 +00:00
phk
a2d6d39ef1 A white-space nit I noticed. 2003-06-09 19:40:34 +00:00
alc
e8af61d06e Update the vm object and page locking in exec_map_first_page(). Mark the
one still anticipated change with XXX.  Otherwise, this function is done.
2003-06-09 19:37:14 +00:00
phk
1d1e72c7b8 GEOMification of CCD.
You need your kernel and ccdconfig(8) to be in sync, particularly if your
source tree is on a ccd device.
2003-06-09 19:25:07 +00:00
alc
eebcf93021 - Add vm object locking to vm_pgmoveco().
- Add a comment to vm_pgmoveco() describing what remains to be done
   for vm locking.
2003-06-09 19:23:03 +00:00
fjoe
141dffaf1f Merge NetBSD bktr_core.c rev. 1.26:
Fix broken programming of VSCALE_HI registers in yuv422_prog().

PR:		46521
Obtained from:	NetBSD
MFC after:	3 days
2003-06-09 19:13:38 +00:00
phk
fc1bd6f706 Fix error handling for ENOMEM style issues. 2003-06-09 19:12:19 +00:00
fjoe
104e52889e Add two more Vendor ID's for Leadtek Winfast TV 2000
PR:		47453
Obtained from:	NetBSD (partially)
2003-06-09 19:11:01 +00:00
jmallett
b5befe8816 Attempt to fix Alpha build by renaming ident[] to kern_ident[]. 2003-06-09 18:19:33 +00:00
jhb
a539063486 When we re-route a PCI interrupt, write the new IRQ value into the intline
register.

Reviewed by:	imp
2003-06-09 18:08:46 +00:00
jhb
eb5895657e - Add a td_pflags field to struct thread for private flags accessed only by
curthread.  Unlike td_flags, this field does not need any locking.
- Replace the td_inktr and td_inktrace variables with equivalent private
  thread flags.
- Move TDF_OLDMASK over to the private flags field so it no longer requires
  sched_lock.
2003-06-09 17:38:32 +00:00
hmp
2eafd495a8 Add a comment to de-obfuscate the meaning of the PQ_CACHESIZE
kernel configuration option.  This created confusion resulting
into a PR.

PR:			docs/45294
Approved by:		des (mentor)
Discussed with:		bmilekic
2003-06-09 17:09:51 +00:00
jmallett
960b0db3f4 Expose kern.ident by way of OID_AUTO.
Requested by:	phk
2003-06-09 10:54:23 +00:00
jmallett
c5b4466d0b Make kernel identification (`ident' in the config(8) driver) available to
userland, and the kernel.  In the kernel by way of the 'ident[]' variable
akin to all the other stuff generated by newvers.sh.  In userland it is
available to sysctl consumers via KERN_IDENT or 'kern.ident'.  It is exported
by uname(1) by the -i flag.

Reviewed by:	hackers@
2003-06-09 09:38:20 +00:00
alc
ff86334d77 Hold the vm object's lock when performing vm_page_lookup(). 2003-06-09 07:01:05 +00:00
alc
e10fc81f4e Don't use vm_object_set_flag() to initialize the vm object's flags. 2003-06-09 06:50:02 +00:00
hsu
f6f79a166e On a socket creation error, don't close the socket. 2003-06-09 03:44:34 +00:00
jeff
db4a0ae4f4 - Add a simple CPU load balancing algorithm. This works by executing once a
second and equalizing the load between the two most imbalanced CPU.  This
   is intended to clear up long term load imbalances that would not be handled
   by the 'pull' method in sched_choose().
 - Pull out some bits of sched_choose() into a kseq_move() function that moves
   an arbitrary thread from one kseq to another.
2003-06-09 00:39:09 +00:00
alc
a78e14f814 - Properly handle the paging_in_progress case on two vm objects in
vm_object_deallocate().
 - Remove vm_object_pip_sleep().
2003-06-08 23:01:24 +00:00
des
2ec7f4d5b0 Revert part of rev 1.43. We want to fail gracefully if there is no packet
waiting in the interface queue.

Submitted by:	Yeasah Pell <yeasah@apocalypse.org>
2003-06-08 18:35:25 +00:00
nyan
0cb1948e9a Don't route PCI irq on pc98. 2003-06-08 11:18:35 +00:00
mbr
4dcd6a9a62 Add ADMtek ADM9511 and ADM9513 device ID's.
PR:		PR51823
Submitted by:	Kaho Toshikazu <kaho@elam.kais.kyoto-u.ac.jp>
Reviewed by:	phk
MFC after:	2 days
2003-06-08 10:11:55 +00:00
charnier
9132834450 The .Fn function 2003-06-08 09:53:08 +00:00
alc
1c9a681a95 Lock the vm object when performing vm_page_grab(). 2003-06-08 07:14:30 +00:00
nyan
79e48e66cc Add help file for pc98. 2003-06-08 03:34:49 +00:00
nyan
d1aa768d5a Enable new boot menu. 2003-06-08 03:20:35 +00:00
nyan
f16e2e2f63 Don't load the acpi module. 2003-06-08 03:16:59 +00:00
nyan
60e3df1edd Set arch-pc98 env to true for pc98. 2003-06-08 03:11:16 +00:00
jmallett
abb298a21c Note that scbus is required for SCSI, not just "required" in general.
Submitted by:	Edward Kaplan (tmbg37 on IRC)
Reviewed by:	rwatson (in principle)
2003-06-08 02:03:02 +00:00
jeff
c7be57cd7e - When a new thread is added to a kseq the load is incremented prior to
adding it to the nice tables.  Therefore, in kseq_add_nice, we should
   keep in mind that the load will be 1 if we are the only thread, and not
   0.
 - Assert that the sched lock is held in all the appropriate places.
 - Increase the scope of the sched lock in sched_pctcpu_update().
 - Hold the sched lock in sched_runnable().  It is not held by the caller.
2003-06-08 00:47:33 +00:00
alc
6099f677cc Lock the kernel object in kmem_alloc(). 2003-06-07 23:24:10 +00:00
alc
2cc03cb9f6 Teach vm_page_grab() how to handle the vm object's lock. 2003-06-07 23:22:04 +00:00
obrien
e6411d2e6d This commit was generated by cvs2svn to compensate for changes in r115990,
which included commits to RCS files with non-trunk default branches.
2003-06-07 20:54:30 +00:00
obrien
8b2968df35 Vendor import emu10k1.h from version 0.9.4 of the ALSA driver (which
includes some needed Audigy support).  This can be found at
ftp://ftp.alsa-project.org/pub/driver/alsa-driver-0.9.4.tar.bz2
and http://www.alsa-project.org/alsa/cvs/alsa-kernel/include/emu10k1.h
2003-06-07 20:54:30 +00:00
imp
79e4ec2b44 MFp4:
Migrate some common pccard code into exca.
2003-06-07 20:47:35 +00:00
imp
494ddfcadc MFP4:
Merge some common code from cbb into exca.
2003-06-07 20:46:39 +00:00
alc
90aaa8d689 Assert that the vm object is locked on entry to swap_pager_freespace(). 2003-06-07 20:43:16 +00:00
imp
6a1131b9e9 Simplify the power code somewhat (this makes the module about 100
bytes smaller).
2003-06-07 20:18:45 +00:00
jake
3a41968652 Implement OF_interpret.
Obtained from:	netbsd
2003-06-07 18:34:04 +00:00
jake
03ec9aa3d8 - Declare sparc64_memreg and sparc64_nmemreg in machine/ofw_mem.h.
- On startup print the total physical memory, instead of what we're told is
  free by the firmware, to avoid astonishing users.
2003-06-07 18:29:29 +00:00
jake
da37394134 BKPT_INST is supposed to be a breakpoint, not 0. 2003-06-07 18:24:37 +00:00
jake
e036a2bab5 Use the same SEARCH_DIR as other platforms. 2003-06-07 18:23:50 +00:00
obrien
596f9326ec Add ${AFLAGS} to 'as' invocation. 2003-06-07 17:42:26 +00:00
phk
5e4348cbf7 Improve the root-dev prompt facility for printing devices which could
possibly be a root filesystem.
2003-06-07 15:46:53 +00:00
phk
e4b131b281 Wait for everything to settle before we try to print the list of
geom devices.
2003-06-07 15:32:09 +00:00
phk
2b24311bb2 Make sure we return an error message if the geom parameter is not
located.
2003-06-07 15:31:44 +00:00