Commit Graph

176038 Commits

Author SHA1 Message Date
isaki
cf59801230 x68k pow(4) now uses MI sysmon_pswitch framework. suggested by tsutsui@.
- Make MD poffd(8) retire, and use MI powerd(8) instead of it.
- Make /dev/pow1 retire, because nobody holds /dev/pow0 any longer.
  Use /dev/pow0 for pow(4) ioctl.
- POWIOCSSIGNAL ioctl which is for poffd(8) is also obsoleted.
2008-12-20 13:20:58 +00:00
ad
6ad4a3fdd5 Remove stray opt_redzone.h 2008-12-20 13:09:44 +00:00
ad
9a5c311632 Revert part of previous. 2008-12-20 13:07:36 +00:00
ad
0e83efcacb opt_noredzone.h is gone. 2008-12-20 13:06:25 +00:00
cegger
42f4c567d4 catch up with latest changes: sendsig -> sendsig_siginfo 2008-12-20 12:50:24 +00:00
ad
5e34fbf90e - Kill NOREDZONE.
- Make the redzone conditional on DIAGNOSTIC.
- Give amd64 an additional page for the uarea. 2 is not enough.
2008-12-20 12:41:19 +00:00
ad
ae6c4143ce Move a couple of calls to pmap_update(). 2008-12-20 11:33:38 +00:00
dsl
81b38761ef Delete very splurious 'free(buf)' that xtos added.
Fixes PR bin/40233
2008-12-20 09:42:02 +00:00
cegger
c9114d086d Turn malloc flags into an enum. Fixes build breakage. 2008-12-20 09:17:55 +00:00
isaki
c238dc3262 Make pow(4) a hardware device.
Now pow(4) uses intio_intr_establish() which is a common interrupt
routine, but not powtrap which is a device specific routine.
2008-12-20 01:05:46 +00:00
christos
6caebc4e79 PR/32154: Roland Illig: brk_string fails to report errors in unquoted strings. 2008-12-19 22:04:36 +00:00
christos
cd056136e4 if brk_string fail, so do we. 2008-12-19 22:03:41 +00:00
christos
1a59b518a0 if brk_string failed, use the shell. 2008-12-19 22:01:19 +00:00
thorpej
2585fd0734 Pull in <sys/types.h> so that e.g. bool is in scope.
XXX The circular dependency with <sys/device.h> and <sys/pmf.h> needs to
be cleaned up.
2008-12-19 21:51:48 +00:00
christos
0bf1037e4e PR/34138: Roland Illig: In the non-expand case, fix brk_string not to eat
quotes.
2008-12-19 21:34:14 +00:00
christos
9faa233ea6 add a little more debugging. 2008-12-19 21:33:10 +00:00
cegger
378da548fc Turn malloc flags into an enum.
While here, move the flags definition into _KERNEL section.
2008-12-19 21:22:01 +00:00
pgoyette
6bdffd706a Add a note concerning this morning's changes to config(1). 2008-12-19 20:37:45 +00:00
christos
a41cd06ba5 PR/9359: Chris Demetriou: Document fread/fwrite mixing behavior. 2008-12-19 20:20:48 +00:00
cegger
dcf705893e use M_ZERO on malloc() and remove subsequent bzero(). 2008-12-19 18:49:37 +00:00
pgoyette
81649575af When checking for "set-up is complete", look for the CTLFLAGS_PERMANENT
in the root of the tree being modified, rather than in the system default
tree.  This permits module compat_netbsd32 to initialize its shadow tree
at load time.

Discussed on tech-kern, with no objections.

Addresses my PR kern/40167
2008-12-19 17:28:59 +00:00
pgoyette
9c68331911 Store config(1)'s root filesystem type as a text string rather than
embedding the address of its xxx_mountroot() in swapnetbsd.c.  This
permits booting of kernels with hard-wired filesystem type even if the
filesystem is in a loadable module (ie, not linked into the kernel
image).

Discussed on current-users.  Tested on amd64 and i386 with both hard-
wired and '?' filesystem times, and on both modular and monolithic
kernels.

Thanks to pooka@ for code review and suggestions.

Addresses my PR kern/40167
2008-12-19 17:11:57 +00:00
haad
78284dcaf1 Add infrastructure needed to load device-mapper targets as modules.
Targets wasn't converted yet and at least snapshot target will be converted
in a near future.
2008-12-19 16:30:41 +00:00
haad
210ce8a464 Add makefile for building device-mapper kernel module. 2008-12-19 15:36:58 +00:00
haad
c9d0c62a0c Merge the haad-dm branch to -current. This branch adds LVM functionality to
the base NetBSD system. It uses Linux LVM2 tools and our BSD licensed
device-mapper driver.

The device-mapper driver can be used to create virtual block devices which
maps virtual blocks to real with target mapping called target. Currently
these targets are available a linear, zero, error and a snapshot (this is
work in progress and doesn't work yet).

The lvm2tools adds lvm and dmsetup binary to based system, where the lvm
tool is used to manage and administer whole LVM and the dmestup is used to
communicate iwith device-mapper kernel driver. With these tools also
a libdevmapper library is instaled to the base system.

Building of tools and driver is currently disable and can be enabled with
MKLVM=yes in mk.conf. I will add sets lists and rc.d script soon.

Oked by agc@ and cube@.
2008-12-19 15:24:03 +00:00
njoly
992269c5c4 Fix remaining archs (arm, luna68k, powerpc and sh3) that were still
using a proc argument instead of an expected lwp for ADDUPROF macro.

ok by christos.
2008-12-19 15:20:10 +00:00
njoly
3b804db6be Fix ADDUPROF macro definition, to correctly use its argument.
ok by christos.
2008-12-19 15:16:15 +00:00
cegger
43c86f86f1 x86_patch() is not available on Xen.
Make Xen kernels link again.
2008-12-19 15:11:55 +00:00
cegger
9c1c1ad122 pass M_NOWAIT instead of M_DONTWAIT to malloc. 2008-12-19 14:07:37 +00:00
cegger
e2017bb870 MALLOC and FREE macros no longer exists. 2008-12-19 13:41:03 +00:00
cegger
d597d7c58e backout previous. makes i386 ALL kernel build again 2008-12-19 12:58:43 +00:00
hannken
e1e7ee242d Restore a line removed by mistake with the last commit.
Should fix PR 40225 panic: indiracct: missing indir.
2008-12-19 11:36:10 +00:00
ad
44d265693d Bah, re-apply. I still see errors without it. 2008-12-19 11:21:52 +00:00
ad
30fd42e845 PR kern/40213 my i386 machine can't boot because of tsc
- Patch in atomic_cas_64() twice. The first patch is early and makes it
  the MP-atomic version available if we have cmpxchg8b. The second patch
  strips the lock prefix if ncpu==1.

- Fix the i486 atomic_cas_64() to not unconditionally enable interrupts.
2008-12-19 11:21:24 +00:00
ad
f9040e4646 Back out previous. atomic_cas_64() doesn't work during early boot. I'll
fix that instead.
2008-12-19 11:11:55 +00:00
pooka
e222420f88 CTASSERT kcondvar size 2008-12-19 09:50:04 +00:00
pooka
cf6dee5091 fix build
(hi thorpej!  the first one is always free ;)
2008-12-19 09:33:40 +00:00
thorpej
4730b27d42 Make condvars really opaque -- hide the wait message member from consumers
of the API.
2008-12-19 07:57:28 +00:00
kenh
abc88641ad Switch back original ARM assembler code used to calculate the number of ticks
needed to wait in delay().  New code overflowed for large delay values.  Broke,
among other things, the RTC probe for the TS-7200.
2008-12-19 04:26:35 +00:00
kenh
3230ffc8a5 Trim back kernel configuration to fit within TS7200's memory limitations. 2008-12-19 04:23:52 +00:00
pooka
7b7b68ba71 include vfs_xattr.c 2008-12-19 00:57:24 +00:00
pgoyette
3ed3895de3 Add i2c bus address checking for these chips. All supported chips live
at predefined addresses 0x2c, 0x2d, or 0x2e.
2008-12-18 20:41:35 +00:00
christos
4c237aa750 Wietse Wenema's tcpd-blacklist-patch:
ftp://ftp.porcupine.org/pub/security/tcpd-blacklist-patch

- If a host starts with a / treat it as a filename containing a list of hosts.
2008-12-18 20:16:52 +00:00
christos
07236533dd print the hostname in the subject of the notification message. 2008-12-18 18:11:49 +00:00
cegger
29ab14fbb0 malloc -> kmem 2008-12-18 15:42:33 +00:00
reinoud
f4d0142196 Implement auto-track repair on tracks marked damaged when searching for
writable tracks on session opening. Note that this an optionally implemented
feature and thus no error will be generated if it fails; the drive will most
likely autorepair it.
2008-12-18 15:41:44 +00:00
reinoud
e2d4b2a7ea Fix critital panic when mounting a CD-R/DVD*R disc. The check for VV_ROOT was
not done correctly and could panic when requested to load a VAT descriptor
since the fileset was not yet fetched.
2008-12-18 13:03:49 +00:00
cegger
3449eda978 remove unused malloc.h 2008-12-18 12:18:20 +00:00
cegger
f3cd5e707d remove unused malloc.h 2008-12-18 11:45:40 +00:00
pooka
52d070140e include snprintb 2008-12-18 11:16:36 +00:00