Commit Graph

208908 Commits

Author SHA1 Message Date
darrenr 14e440d33e New files imported from IPFilter 5.1.1 need to be added. 2012-01-30 16:13:21 +00:00
darrenr b01ead29e4 Merge IPFilter 5.1.1 into HEAD 2012-01-30 16:12:02 +00:00
darrenr 9c0e9659f2 Import IPFilter 5.1.1 2012-01-30 16:02:57 +00:00
phx b199453e3c Revert my last modification.
The detach function might make sense to unload and replace a driver module.
http://mail-index.netbsd.org/source-changes-d/2012/01/24/msg004538.html
2012-01-30 15:47:01 +00:00
wiz bc294a4883 Fix two typos. 2012-01-30 13:57:43 +00:00
njoly dc7e929d73 Adjust MEMFREE expected output to recent kmem(9) changes. 2012-01-30 13:05:52 +00:00
martin 11bf4e2a39 Set up cache line sizes early in the MULTIPROCESSOR case (where we already
pass by all the notes anyway), and default them to small-but-working
values in the UP case. Avoids an endless loop when trying to flush
caches before we pass through cpu_attach().
2012-01-30 12:19:45 +00:00
cherry df3113e782 switch on NetBSD/Xen MULTIPROCESSOR support for domUs as default, for wider testing 2012-01-30 10:55:25 +00:00
cherry e0029582ab On xen, prevent cached PDP objects from being reused by pool_cache(9),
since they are "pinned" on the hypervisor and thus R/O for the domU.

Separately, after every per-cpu pmap pdir entry reset, make sure that
the corresponding L3 PTP pointers are flushed from all cpus with the
pmap loaded. Enforce this immediately via pmap_tlb_shootnow();
2012-01-30 10:33:05 +00:00
nisimura 2c31d574e0 add the missing backslash. 2012-01-30 09:48:11 +00:00
dholland da6872566a Remove redundant break statement. 2012-01-30 06:39:26 +00:00
dholland dfbeb14079 Fix silly bug reading fstab. 2012-01-30 06:15:22 +00:00
dholland 3db227b343 Remove stray p in identifier name. This has (as far as I can tell)
prevented quotacheck and other old-style quota bits from working since
last March. Use a correct declaration in the header file, so that if
something similar happens again affected programs will fail to link
instead of failing to work.

This kind of nonsense is why I like -Wl,-warn-common.
2012-01-30 06:14:43 +00:00
matt c8f14b1af6 PowerPC wants 16-byte aligned stacks (for AltiVec). 2012-01-30 06:04:32 +00:00
dholland e4f0c6844a Don't strlcpy from a string buffer to itself; the behavior is not
defined.
2012-01-30 06:02:12 +00:00
dholland e5e6acbd31 Remove an old, no longer necessary hack from libquota and handle the
relevant case properly in usr.bin/quota.
2012-01-30 06:00:49 +00:00
mrg 28f4072d2a make sure that the 'struct malloc' header on allocations is properly
aligned to (ALIGNBYTES+1).  this ensures that the memory that malloc(9)
returns is correctly aligned for the platform.  this change has an
effect on hppa, ia64, sparc and sparc64.

necessary on sparc for 8-byte load/store instructions.  with this my
SS20 boots multiuser again.
2012-01-30 05:42:54 +00:00
mrg 4f67d478db avoid writing 1 byte beyond the end of the string promlib.c has given us.
instead of forcing a nul byte afterwards, KASSERT() that the final byte
already is a nul.  if there are broken proms... well, we can fix them.

this, plus one more change, allows my SS20 to boot multiuser.
2012-01-30 04:25:14 +00:00
nisimura 77b78cdcff Add FriendlyARM Mini2440 support.
- new code for Samsung S3C2440 SoC.
- update for other S3C2xx0.
This port was done by Paul Fleischer.
2012-01-30 03:28:33 +00:00
rmind 3ad487514e - kern_realloc: fix a recent regression, use correct size of current allocation.
- kern_malloc: constify.
2012-01-30 01:56:47 +00:00
rmind 668cc4102c wsmux_getmux: do not increment nwsmux if allocation fails (might cause buffer
overflow).  Simplify slightly.
2012-01-30 01:54:08 +00:00
dholland a15f5b1a58 Add QUOTA_RESTRICT_READONLY, for the nfs quota access code. 2012-01-30 00:56:19 +00:00
joerg a7dacf1e8f Bump libsqlite3 minor version for new functions in 3.7.10. 2012-01-29 23:29:00 +00:00
uwe ffe3d8992e Since it's in a separate file now, we cannot use direct branch to label. 2012-01-29 23:27:24 +00:00
rmind f76667381c - Add mi_cpu_init() and initialise cpu_lock and kcpuset_attached/running there.
- Add kcpuset_running which gets set in idle_loop().
- Use kcpuset_running in pserialize_perform().
2012-01-29 22:55:40 +00:00
he 5379ae9cd8 Use the same style for initialization of pool_allocator_kmem under
POOL_SUBPAGE as all the other poll_allocator structs.  Fixes build
problem for acorn26.
2012-01-29 20:20:18 +00:00
he fc30bcb8bb Only declare helper variable which is only used in KASSERT() if
DIAGNOSTIC is defined, to avoid "variable defined but never used"
warning if DIAGNOSTIC isn't defined, and KASSERT() expands to
nothing.
2012-01-29 20:16:16 +00:00
dholland 8dfe0a7b2e Move the semantic restriction codes from sys/quotactl.h to
sys/quota.h; they're meant to be used by applications and were
stuffed into the wrong place by accident last week and got
committed that way yesterday.
2012-01-29 19:36:14 +00:00
rmind c0a0b7fb10 - Add kcpuset_isotherset() and kcpuset_countset().
- Fix KC_NFIELDS_EARLY.  Make kcpuset_isset() return bool.
2012-01-29 19:08:26 +00:00
jakllsch 2493535b9b options MALLOC_DEBUG is no longer expected to compile,
but has not yet been removed.  Avoid compiling it here.
2012-01-29 18:55:12 +00:00
roy f0a1f12724 Allow using CMSG_NXTHDR with -Wcast-align.
If various checks are omitted, the CMSG_NXTHDR macro expands to
(struct cmsghdr *)((char *)(cmsg) + \
_ALIGN(((struct cmsghdr *)(cmsg))->cmsg_len))

Although there is no alignment problem (assuming cmsg is properly aligned
and _ALIGN is correct), this violates -Wcast-align on strict-alignment
architectures. Therefore an intermediate cast to void * is appropriate here.

There is no workaround other than not using -Wcast-align.

Taken from FreeBSD commit r220742 by jilles
2012-01-29 18:33:07 +00:00
hannken f736320c3c Add virtio driver to INSTALL_FLOPPY.
Requested by Matthias Scheler <tron@netbsd.org> for particular cases like
http://mail-index.netbsd.org/netbsd-users/2011/09/13/msg009128.html
2012-01-29 18:29:11 +00:00
rmind 3892f469e5 - vmem_xalloc: remove call to uvm_kick_pdaemon() as it is not right.
- Reduce some #ifdefs.  Misc.
2012-01-29 17:27:37 +00:00
para 30980bdf1d convert from malloc(9) to kmem(9) 2012-01-29 16:24:51 +00:00
para 2fee8b532f adapt to recent changes in uvm 2012-01-29 16:24:01 +00:00
phx 2be87fafe3 Add support for RDB-partitioned disks.
When an RDB block was found on the disk we cannot change the disk layout,
and everything which has to do with MBR partitioning will be skipped.
2012-01-29 16:01:36 +00:00
phx ba87b849a9 Introduce some initial documentation for NetBSD/ofppc. 2012-01-29 15:54:35 +00:00
para 8c064ceca8 adapt to extent(9) changes 2012-01-29 15:32:52 +00:00
njoly e334a4ccda Move pool subsystem init from rump__init() to uvm_init(), following
kernel code. Fix RUMP_LOCKDEBUG early panic.
2012-01-29 14:57:31 +00:00
para 33c295ed5b move condvar calls under interlock protection
call uvm_kick_pdaemon in case we can sleep and no space in arena
2012-01-29 13:38:15 +00:00
isaki 2d7a337c5f Make it compile with EM_DEBUG (..here, EM_ is EXTENDED_MEMORY). 2012-01-29 12:43:00 +00:00
para cf91957c71 size kmem_arena more sanely for small memory machines 2012-01-29 12:37:01 +00:00
para f4d4e8ed76 sprinkel some #ifdef QUOTA2 to avoid unused variables 2012-01-29 11:59:14 +00:00
para cdc400a53c fix sparc after kmem_map is gone 2012-01-29 11:49:58 +00:00
drochner 38123a2b84 remove incomplete conversion to kmem_alloc -- inconsistent use
leads at least to diagnostic panics
2012-01-29 11:49:02 +00:00
drochner 67baa3b64c don't mess with the PDP pool cache before it is initialized,
prevents at least LOCKDEBUG panics
2012-01-29 11:45:37 +00:00
wiz be748bdcc2 Add Nm for __clone, man page is already linked to that name.
Noted by Abhinav Upadhyay.
2012-01-29 11:44:54 +00:00
cherry bdf31dbb7a remove obsolete comment 2012-01-29 11:37:44 +00:00
cherry f327d63d22 Remove apte related shootdowns. 2012-01-29 11:37:08 +00:00
wiz f4788d8f8e New sentence, new line. Remove trailing whitespace.
Bump PKGREVISION for previous.
2012-01-29 11:32:23 +00:00