Commit Graph

178197 Commits

Author SHA1 Message Date
christos
7b2f022cd6 don't copy the address of a pointer. Noticed by Anon Ymous 2009-02-25 13:52:18 +00:00
sekiya
223c75c0bc Un-hardcode IP32 serial console bus tags. Fixes regression introduced in revision 1.28. 2009-02-25 09:37:22 +00:00
dyoung
ac7c88b5d2 Look for MAKEDEV.local in both ${SRC_DIR}/dev/ and ${SRC_DIR}/etc/,
so that 'postinstall check makedev' works whether the sources told
by the -s argument are a NetBSD source tree, etc.tgz, or a DESTDIR.
2009-02-25 01:11:50 +00:00
sketch
1e56a266d4 regen. 2009-02-24 22:27:02 +00:00
sketch
7ce9d1c8ea Make 'build.sh tools' work with the Sun Studio compiler, although bugs in
some of the generated tools still prevent building a full release using them.
2009-02-24 22:25:24 +00:00
christos
2c266c8a4c version alphasort. 2009-02-24 18:41:40 +00:00
pooka
54db37b1cf Note change with linux compat. 2009-02-24 12:45:37 +00:00
he
e075a1d038 Follow up the removal of linux_support.S for amd64 and i386. 2009-02-24 12:17:51 +00:00
yamt
80d3528400 nmi_disestablish: fix an inverted condition. pointed out by ad@. 2009-02-24 10:37:27 +00:00
yamt
9ab5d54483 princap -> printcap
(christos said it was just a typo.)

XXX do we want compat for scripts?
2009-02-24 06:10:52 +00:00
yamt
4b64c2cb3d - rewrite x86 nmi dispatcher so that establish and disesablish are safe
on a running system.
- adapt existing users of the api.  (elan)
- adapt tprof_pmi driver to use the api.
2009-02-24 06:03:54 +00:00
macallan
3076c08525 mention sgimips switching to Xorg 2009-02-24 04:05:58 +00:00
macallan
6f06755f15 Switch sgimips over to Xorg 2009-02-24 04:04:40 +00:00
jmcneill
72141a1696 Turn "bogus parameters" aprint_error into aprint_debug, and change the
message to say that the framebuffer was not configured by the firmware.
2009-02-23 23:45:56 +00:00
ad
23267ecce2 Put back /kern, apparently xen uses it (and probably scripts too). 2009-02-23 23:12:24 +00:00
ad
a2517242b7 - Mount /proc automatically. We have fixed a ton of bugs, it's needed for
Linux compat, and we are planning to kill ptrace and make the debugger
  use /proc instead.

- kernfs is hosed at the moment and nothing appears to rely on it any more,
  so disable it. (IPsec did at one point, IIRC).
2009-02-23 22:51:47 +00:00
jdc
7262e977ee Mimic cgsix memory corruption fix (bwtwo and cgthree wscons code is
based on cgsix).  Original commit message:

  Include wsdisplay.h directly in the header to avoid different sizes
  of cgsix_softc depending on proper previous includes by the includer
  due to #ifdef NWSDISPLAY. Thanks to kmem poison check and DEBUG kernels.
2009-02-23 22:44:27 +00:00
rmind
e52fb16203 genfs_getpages: rework 1.18 revision - move uvm_pagermapout() back.
It is useful to make KVA available ASAP.  Per discussion with <yamt>.
2009-02-23 21:27:51 +00:00
ad
b2dec392e0 Fix some comments. 2009-02-23 20:33:30 +00:00
rmind
f54234d142 Switch Linux futex emulation to native ucas_int(), remove unecessary
futex-specific assembler routines.

Fixes PR/40490.  Reviewed by <ad>.
2009-02-23 20:28:58 +00:00
rmind
f7d3fa20ef Add ucas (CAS for user-space address) support for i386 and amd64.
API provides ucas_int() and ucas_ptr() for now.

Reviewed by <ad>.
2009-02-23 20:27:59 +00:00
pooka
3f2d5fc9ad Default to -o linux. This prevents programs from not working just
because the -o linux flag was not supplied, i.e. it is the sensible
default.  People who absolutely do not want the extra files in
their /proc for whatever aesthetic reason (it's not like they
consume any resources) can do -o nolinux.
2009-02-23 19:47:58 +00:00
pooka
72d8b8b617 Support statvfs@openssh.com extension where available. Makes df(1)
return something other than just 0.
caveat: statvfs is done for the mountpoint path, so might not give
the truth about a directory inside the mountpoint.
2009-02-23 18:43:46 +00:00
weinem
5c0772df92 added myself to the list of developers 2009-02-23 16:42:58 +00:00
cegger
6ec3b632d5 when attach routine fails, also free DMA memory and interrupt mapping.
Diff from OpenBSD's if_age.c rev. 1.2.
ok cube@
2009-02-23 13:39:41 +00:00
wiz
047cc3e3f6 Sort sections. 2009-02-23 08:27:13 +00:00
he
64be3821eb This program also uses the following libs: -lcrypto -lz -lbz2.
Add them explicitly so that this program links for sun2 as well.
2009-02-23 08:25:07 +00:00
wiz
5eb2ad1b22 Fix typo, and restore line that was lost in previous. 2009-02-23 08:14:53 +00:00
cegger
b6d8a5c8fc remove unused age_if_flags softc member 2009-02-23 07:33:58 +00:00
dholland
2fe837fcf9 typo in comment 2009-02-23 03:01:13 +00:00
jmcneill
34c593f760 * Realtek ALC885: Use generic_mixer_autoinit/init_widget
* generic_mixer_create_virtual: if the front l/r DAC doesn't have a volume
  capability, enumerate all peer widgets and search for a volume mixer
  there.
2009-02-23 02:34:57 +00:00
cube
102a4f0ad3 I smell rotting code. (Give a chance to the user to at least set the flags
of the interface, if not use it because it otherwise doesn't work.)
2009-02-23 00:05:44 +00:00
dholland
481da53c30 Restore newfs_lfs after softdep removal (hi ad) 2009-02-22 23:06:23 +00:00
rmind
aa58fb8da4 sched_sync: syncer_data_lock is not released now (regression fix). 2009-02-22 22:26:53 +00:00
ad
59fcf21389 PR kern/26878 FFSv2 + softdep = livelock (no free ram)
PR kern/16942 panic with softdep and quotas
PR kern/19565 panic: softdep_write_inodeblock: indirect pointer #1 mismatch
PR kern/26274 softdep panic: allocdirect_merge: ...
PR kern/26374 Long delay before non-root users can write to softdep partitions
PR kern/28621 1.6.x "vp != NULL" panic in ffs_softdep.c:4653 while unmounting a softdep (+quota) filesystem
PR kern/29513 FFS+Softdep panic with unfsck-able file-corruption
PR kern/31544 The ffs softdep code appears to fail to write dirty bits to disk
PR kern/31981 stopping scsi disk can cause panic (softdep)
PR kern/32116 kernel panic in softdep (assertion failure)
PR kern/32532 softdep_trackbufs deadlock
PR kern/37191 softdep: locking against myself
PR kern/40474 Kernel panic after remounting raid root with softdep

Retire softdep, pass 2. As discussed and later formally announced on the
mailing lists.
2009-02-22 20:28:05 +00:00
ad
430f67aa17 PR kern/39564 wapbl performance issues with disk cache flushing
PR kern/40361 WAPBL locking panic in -current
PR kern/40361 WAPBL locking panic in -current
PR kern/40470 WAPBL corrupts ext2fs
PR kern/40562 busy loop in ffs_sync when unmounting a file system
PR kern/40525 panic: ffs_valloc: dup alloc

- A fix for an issue that can lead to "ffs_valloc: dup" due to dirty cg
  buffers being invalidated. Problem discovered and patch by dholland@.

- If the syncer fails to lazily sync a vnode due to lock contention,
  retry 1 second later instead of 30 seconds later.

- Flush inode atime updates every ~10 seconds (this makes most sense with
  logging). Presently they didn't hit the disk for read-only files or
  devices until the file system was unmounted. It would be better to trickle
  the updates out but that would require more extensive changes.

- Fix issues with file system corruption, busy looping and other nasty
  problems when logging and non-logging file systems are intermixed,
  with one being the root file system.

- For logging, do not flush metadata on an inode-at-a-time basis if the sync
  has been requested by ioflush. Previously, we could try hundreds of log
  sync operations a second due to inode update activity, causing the syncer
  to fall behind and metadata updates to be serialized across the entire
  file system. Instead, burst out metadata and log flushes at a minimum
  interval of every 10 seconds on an active file system (happens more often
  if the log becomes full). Note this does not change the operation of
  fsync() etc.

- With the flush issue fixed, re-enable concurrent metadata updates in
  vfs_wapbl.c.
2009-02-22 20:10:25 +00:00
christos
4534498c64 Get the ESCDELAY from the environment. 2009-02-22 20:05:48 +00:00
christos
58e089a802 Document curses environment variables. 2009-02-22 20:04:21 +00:00
ahoka
c0dfcdb337 Add a missing opt_multiboot.h into sys/arch/i386/i386/machdep.c.
Also do the missed rename of multiboot_ksyms_init to
multiboot_ksyms_addsyms_elf to compile with MULTIBOOT set.

This caused a minor and a more serious bug in the past:
- dmesg did not contain the information about the loader
- /dev/ksyms did not work when the kernel was booted with a
  multiboot bootloader (grub for example)

Ok by jmcneill, joerg.
2009-02-22 18:05:42 +00:00
pgoyette
7bcb9558e0 1. Reorganize code into memory-type-specific routines instead of multiple
monstrous if-then-else-if constructs.
2. Display module capacity in GB if it is at least 1GB.
3. Indicate if a memory module is "registered".
4. For DDR3, indicate if a temp-sensor is present.

Inspired by similar changes in OpenBSD's spdmem(4).
2009-02-22 17:28:50 +00:00
agc
88ba3068b1 Use one struct for both zlib and bzip2 decompression. 2009-02-22 16:29:33 +00:00
yamt
dacc2a910d remove a useless cast. 2009-02-22 15:28:43 +00:00
yamt
9287e91c00 do_makedev: look at a correct directory for MAKEDEV.local 2009-02-22 15:27:44 +00:00
yamt
b9a7e1db53 udf_write_filebuf: remove an write-only variable 2009-02-22 15:26:51 +00:00
ad
33774d3216 Report LB_MISC events, for one-off instrumentation. 2009-02-22 15:08:58 +00:00
apb
3578465a0d Under "The following issues need to be resolved manually", say that
unprivileged use of mount(8) now needs the nosuid and nodev flags.
2009-02-22 14:32:54 +00:00
apb
bdc237349e Under "Features to be removed in a later release", try to explain what
softdep is, as well as saying that it will be removed.  Say that the
WAPBL in netbsd-5 is a "preview", not an "experimental preview".
2009-02-22 14:21:48 +00:00
nakayama
c99ea852e4 - fix copyout size in CLOCKCTL_O?ADJTIME.
- add missing break in CLOCKCTL_NTP_ADJTIME.
2009-02-22 13:06:58 +00:00
wiz
02b22ed2c3 New sentence, new line.
Remove trailing whitespace.
2009-02-22 12:18:32 +00:00
tnozaki
63b0517c27 fix following wregexp bug reported in current-user:
- . doesn't match anything
  - [] groups containing more than one character don't match anything
introduced by -Wsign-compare fix.
2009-02-22 11:34:53 +00:00