Commit Graph

184036 Commits

Author SHA1 Message Date
bsh
1c34311d57 quick fix for crash(8) build failure caused by my previous commit (rev
1.20).

The problem was reported Ty Sarna and Geoff Wing.  Thanks.

XXX: I made #if too messy. split db_access.c into two files for
db_{get,put}_values and db_read_{int,ptr}?
2009-09-28 05:53:37 +00:00
dholland
6f7fa47c46 Avoid nasal demons. Code of the form
vput(vp);
   error = VFS_VGET(vp->v_mount, ...);

just isn't right. Because of vnode caching this *probably* never bit
anyone, except maybe under very heavy load, but still.
2009-09-28 00:39:03 +00:00
apb
cfa3cdb026 Replace try_set_TOOLDIR with a new function, print_tooldir_make,
which does much of the same work but prints a result instead of
setting a global variable.  Adjust the rebuildmake function to suit.
Improve the comments describing how we try to figure out whether
the existing tooldir make needs to be rebuilt.
2009-09-27 22:02:41 +00:00
reinoud
7cd3ce2387 Add flag to indicate a compactable directory. Used for NiLFS/FFS/EXT2FS free
space compaction.
2009-09-27 21:50:48 +00:00
wiz
91b16df666 Bump date for today's changes. 2009-09-27 21:05:55 +00:00
bouyer
c709e72357 Don't disestablish a soft interrupt which has not been established. 2009-09-27 19:48:57 +00:00
skrll
f343fec730 Remove old mis-merge. 2009-09-27 18:52:56 +00:00
jakllsch
ff243da79f Make this build without gpio(4). 2009-09-27 18:27:01 +00:00
bsh
35bc16c502 kgdb still needs db_{get,put}_value in ddb/db_access.c when SOFTWARE_SSTEP is defined in db_machdep.h. 2009-09-27 18:24:23 +00:00
plunky
98f75b5b42 protecting sockaddr_in6 with -DINET6 2009-09-27 18:19:18 +00:00
apb
828252228e * Use a more robust method of creating the top level object directory.
Use getmakevar to expand MAKEOBJDIRPREFIX or MAKEOBJDIR, or (if
  neither of those variables is set) use a non-recursive "make obj" in
  the top level source directory.

* Do not let TOP_objdir default to ${TOP}.  It's now set only by the
  -M or -O command line options, or after using getmakevar to expand
  MAKEOBJDIRPREFIX or MAKEOBJDIR.

* Make try_set_TOOLDIR handle MAKEOBJDIRPERFIX passed from the
  environment.  It runs too early to use getmakevar, so it will not work
  if the value contains embedded '${...}' variable references.

* Use '$TOOLDIR' (with a literal '$') instead of 'nonexistent' in
  a message when rebuilding make when TOOLDIR is not yet known.
2009-09-27 18:08:24 +00:00
jakllsch
a95848c094 Note new gpio at ichlpcib support. 2009-09-27 18:00:58 +00:00
apb
9cdf728a90 Introduce a done_rebuildmake variable, instead of abusing do_rebuildmake
to mean both "must rebuild make" and "have already rebuilt make".
2009-09-27 17:55:53 +00:00
jakllsch
bd5cb77445 gpio(4) support for Intel ICH southbridges.
Tested on Intel SS4200-E (ICH7), and Acorp 6A815EPD (ICH2) motherboards,
on amd64 and i386 ports respectively.

It should be noted that the majority of boards with ICH chips do not
expose the GPIO pins for off-board use.  For instance, aside from the
three exposed-on-a-header pins on the 6A815EPD, another pin is also
used to control write protect on the FWH.  The SS4200 exposes the GPIO
on a header that connects to the 10 LEDs on the front panel, as well
as a tact switch on the back panel.
2009-09-27 17:55:31 +00:00
apb
d1373a044c Rename raw_getmakevar to bomb_getmakevar. It wasn't "raw" at all; it
was (and is) a wrapper around nobomb_getmakevar.
2009-09-27 17:48:19 +00:00
apb
f1ead22021 Allow build.sh "-C cdextra" option to be specified multiple times. 2009-09-27 17:28:38 +00:00
dholland
cd4cace7bb 5.99.19: need new nfs modules. 2009-09-27 17:25:25 +00:00
apb
b4f381c612 Make resolvepath and resolvepaths slightly less magic. They now take
a variable name as an arg unstead of always working on $OPTARG,
and resolveepaths is now a wrapper around resolvepath instead of
duplicating code.
2009-09-27 17:25:01 +00:00
dholland
e0ec0f8616 regen again (forgot both patches touched namei.h) 2009-09-27 17:24:31 +00:00
dholland
8d36057243 Move a big wodge of symlink-following code from nfsd to inside
lookup_for_nfsd(). This code is, or at least should be, the same as
the regular symlink-following code plus an extra flag nfsd needs.

The two lots of code can/will be merged in the future.
2009-09-27 17:23:53 +00:00
dholland
a3c0999baa regen 2009-09-27 17:21:22 +00:00
dholland
fb458255a3 Rename lookup() to lookup_for_nfsd(), to make it clear just whose
private backdoor entry point this is.

Also, clone the lookup_for_nfsd() entry point as
lookup_for_nfsd_index(), for use by a different call site in nfsd that
does different unclean things with nameidata.
2009-09-27 17:19:07 +00:00
bouyer
59e1504d12 Restore changes from 1.86 and 1.87 after commit of 1.88. 2009-09-27 17:13:37 +00:00
apb
72d2ca4da0 Revision 1.86 of src/BUILDING somehow got committed without the
corresponding changes to src/doc/BUILDING.mdoc.  Fix that now.
The original log message was:

Add a modules operation to build.sh, which builds and installs kernel modules
into DESTDIR.

This is based on the patch provided by tsutsui@ on tech-toolchain@.
2009-09-27 16:44:40 +00:00
bouyer
0968e114ad Explain why request-rx-copy was added. Requested by hubertf@ 2009-09-27 16:10:15 +00:00
jmcneill
d3bc4066df regen for PNP0C14 2009-09-27 14:11:58 +00:00
jmcneill
cc62b1fb8e Add PNP0C14 (WMI mapper device) 2009-09-27 14:11:07 +00:00
tsutsui
be5da0aabb Remove commented out and nonexistent cgthree at obio stuff.
SPARCclassic has onboard CG3 but it's internally connected via SBus,
and there is no info about sun4m machines which actually require
cgthree at obio attachment. Info from jdc@.
2009-09-27 13:27:44 +00:00
jmcneill
00081f593e deregister with pmf on detach 2009-09-27 12:59:38 +00:00
blymn
7dfbfaa8ed Make the tool chain build with MKOBJDIRS set to yes - fix by skrll. 2009-09-27 12:58:59 +00:00
jmcneill
ae0ded3a5f register with pmf 2009-09-27 12:58:51 +00:00
tsutsui
6d12c25806 +jme* at pci? 2009-09-27 12:53:46 +00:00
tsutsui
41bab1588b Replace shutdownhook_establish(9) with pmf_device_register1(9).
Compile test only.
2009-09-27 12:52:59 +00:00
jmcneill
35a2c68409 enable viadrm kmod for i386 2009-09-27 12:46:39 +00:00
jmcneill
19c6e1e04c Add viadrm kmod 2009-09-27 12:44:05 +00:00
jmcneill
2d504df7b5 add viadrm at pci 2009-09-27 12:41:05 +00:00
jmcneill
ef43763f40 Port viadrm to NetBSD and fix a bunch of compile issues:
viadrm0 at vga1: VIA P4M900 / VN896
 viadrm0: AGP at 0xf0000000 128MB
 viadrm0: Initialized via 2.11.1 20070202

xf86-video-openchrome seems happy with it, although 3d acceleration isn't
supported on the P4M900 so I can't test that part.
2009-09-27 12:39:04 +00:00
tsutsui
0719ca07be Replace shutdownhook_establish(9) with pmf_device_register1(9).
Compile test only.
2009-09-27 10:00:11 +00:00
skrll
7c94c6769f Fix mis-merge. 2009-09-27 08:04:14 +00:00
tsutsui
4ee6b34006 Replace shutdownhook_establish(9) with pmf_device_register1(9).
Tested on JC94.
2009-09-27 05:29:20 +00:00
mrg
f4964bc1fa make sure to call pci_intr_*stablish() with the right first argument;
it worked by C-luck on x86, but macppc picked it up.
2009-09-27 03:48:07 +00:00
jmcneill
cdd2b39863 ensure that hp sensing is stopped on suspend, and restarted on resume if required. 2009-09-27 02:36:38 +00:00
dsl
6458ae9cdf Move all the fopen() calls out of the record read routines into the callers.
Split the merge sort so that fsort() can pass the 'FILE *' of the temporary
files to be merged into the merge code.
Don't rely on realloc() not moving the end address of a buffer!
Rework merge sort so that it sorts pointers to 'struct mfile' and only
copies about sort record descriptors.
No functional change intended.
2009-09-26 21:16:55 +00:00
jmcneill
2db390373f add suspend/resume support 2009-09-26 19:58:53 +00:00
snj
70285b633c "Intel High Definition Audio" -> "High Definition Audio" 2009-09-26 19:43:04 +00:00
jakllsch
37ed71241b Marvell has two "l"s, but not two "e"s.
(Also, Melllvar has three "l"s, but that's not really relevant here.)
2009-09-26 19:05:07 +00:00
jakllsch
a34f7e7b8b As, siisata attaches not just at pci, but for a while now, also at cardbus,
move siisata core driver config to the propper config file.
2009-09-26 19:01:04 +00:00
jmcneill
ee4fa0feb6 Add PCI_PRODUCT_VIATECH_VT8237A_SATA_2 to list of product IDs. 2009-09-26 18:15:52 +00:00
jmcneill
d62c10993d PR# kern/42110: No mute control on hdaudio(4)
PR# kern/42028: hdaudio: mplayer can't change volume

Since the driver is not limited to OSS mixer APIs, allow for duplicate
mixer nodes with the same role. Resolves a regression where certain
controls may no longer be available that were previously possible with
azalia(4). Part of a fix for 42028. While here, add .mute controls to
address 42110.
2009-09-26 17:05:01 +00:00
tsutsui
7ec1a2d842 Make local functions static. 2009-09-26 16:07:51 +00:00