Commit Graph

209530 Commits

Author SHA1 Message Date
tron
1a43373a46 Move entries for things that have been pulled up into the "netbsd-6"
branch to the list of changes in the previous release.
2012-02-22 00:15:57 +00:00
rmind
e8e364e79f mm_init: re-enable zero page protection. 2012-02-21 21:57:06 +00:00
rmind
9ff44d86de pmap_kenter_pa: always print about already present mapping.
pmap_bootstrap: add comments.
2012-02-21 21:09:51 +00:00
nonaka
1acdd4d6ed kern/45927: fix incorrect assert. 2012-02-21 20:53:34 +00:00
bouyer
59a45304f2 Revert pmap_pte_flush() -> xpq_flush_queue() in previous. 2012-02-21 19:25:05 +00:00
bouyer
5dfe2dddcc Avoid early use of xen_kpm_sync(); locks are not available at this time.
Don't call cpu_init() twice.

Makes LOCKDEBUG kernels boot again
2012-02-21 19:10:13 +00:00
wiz
36268b6467 Mention pkg_add import. 2012-02-21 18:38:32 +00:00
wiz
de72a61ff4 Update for pkg_install import. 2012-02-21 18:37:57 +00:00
wiz
8416dd0a6e melt more snowflakes until they all look like pkgsrc 2012-02-21 18:36:16 +00:00
wiz
18feb27734 melt snowflakes 2012-02-21 18:27:05 +00:00
wiz
75402d0165 Import pkg_install-20120221 for joerg.
Bug fix already there, this just bumps version.
2012-02-21 18:25:15 +00:00
rjs
bbf374d1d6 Switch to ANSI style declaration. 2012-02-21 18:10:00 +00:00
para
92fedce1d6 follow the sa removal for alpha 2012-02-21 17:39:17 +00:00
martin
1e37a35ef0 Make time_second and time_uptime volatile, so the compiler knows they
may change during loops. Fixes the macppc build, which previously
died with:
src/sys/arch/macppc/dev/dbdma.c:62:6: error: assuming signed overflow does not occur when assuming that (X + c) < X is always false
2012-02-21 15:41:24 +00:00
macallan
2e1e7cb425 use glyphcache for anti-aliased fonts 2012-02-21 15:26:20 +00:00
njoly
ac6da2a96c Now that window(1) is gone, use tmux(1) for xref. 2012-02-21 15:01:51 +00:00
wiz
34653e01b1 Fix PR 46068 using the patch by Nicolas Thauvin:
pkg_add fails to install a package when subdirectories are missing
in the path to package directory in /var/db/pkg.
2012-02-21 13:32:45 +00:00
nakayama
9e8270494c Pass -d option to pwd_mkdb(8) in order to make databases at proper location. 2012-02-21 12:31:18 +00:00
nakayama
81cae6fbb5 Avoid rebuilding services database every boot time.
The database has been renamed since the default was changed to CDB format.
2012-02-21 12:30:32 +00:00
tsutsui
1e05410c93 Use actual physmem size for allocation of bootstrap extra PT pages
to avoid wasting pages on low memory machines.
Improves atari specific part of PR/45915, tested on TT030.
2012-02-21 12:09:50 +00:00
martin
74ce3f6bfc Make this include file C++ save, using the new __conly_restrict. 2012-02-21 10:54:07 +00:00
martin
11daf47458 There are some places where C99 allows a restrict modifier (and posix
demands it), but C++ does not allow it. So add a C only version of
__restrict, which expands to nothing if compiling C++.
See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49347 for a discussion.
2012-02-21 10:53:08 +00:00
apb
0e3dcd74ed Add a definition for ".St -isoC-2011". The equivalent definition
was already in external/bsd/mdocml/dist/st.in
2012-02-21 10:43:46 +00:00
wiz
32a64c4a9c Mark /usr/include/netinet/ipf_rb.h as obsolete until ipf is upgraded again.
Sort while here.
2012-02-21 10:10:43 +00:00
christos
4ab990718f keep track of the original array length so we can pass it to kmem_free, from
enami
2012-02-21 04:13:22 +00:00
christos
222b58ad16 fix fae free'ing, from enami. 2012-02-21 03:44:54 +00:00
jakllsch
68ceb36701 Prevent stack buffer overflow when copying too-large-CDB into request. 2012-02-21 02:22:54 +00:00
jakllsch
1355b3bb87 constify command data argument to scsi_command(). 2012-02-21 02:19:41 +00:00
matt
f326ce849e Restore back to double alignment. 2012-02-21 02:19:01 +00:00
matt
84b41e5d58 Change ALIGNBYTES to be AltiVec savvy 2012-02-21 02:09:35 +00:00
matt
4fe9231763 Don't rely on being able to allocate while in a softintr. So preallocate
all the bus_dma maps in ifinit where we can sleep.
2012-02-21 02:08:55 +00:00
matt
3ee36a48b5 Fix a very old bug. When allocating the buffer and doing just a bs= transfer,
hen we only need a single buffer equal to that blocksize in length.
2012-02-21 01:49:01 +00:00
jakllsch
ee9ab39a12 Add and use xbdminphys() to handle transfer segmentation/size limit.
Should allow us to use a normal MAXPHYS in domU kernels.
2012-02-21 01:47:50 +00:00
matt
f5d3f68d54 Remove another ${SIZE} 2012-02-21 01:41:09 +00:00
oster
cebdda608a Add logic to the main reconstruction loop to handle RAID5 with rotated
spares.  While here, observe that we were actually doing one more
stripe than we thought we were, and correct that too (it didn't matter
for non-RAID5_RS, but it definitely does for RAID5_RS).  Add some
bounds-checking at the beginning to handle the case where the number
of stripes in the set is smaller than the sliding reconstruction window.

XXX: this problem likely needs to be fixed for PARITY_DECLUSTERING too.
2012-02-20 22:42:52 +00:00
oster
e8dd466041 comment, and effectively remove, a DIAGNOSTIC check that
is invalid for RAID5_RS.
2012-02-20 22:42:05 +00:00
mrg
c1d02dab7b add a _kernel_locked_p(). 2012-02-20 22:35:14 +00:00
bouyer
3654664ee4 - Make pmap_write_protect() work with pmap_kernel() too ((va & L2_FRAME)
strips the high bits of a LP64 address)
- use pmap_protect() in pmap_pdp_ctor() to remap the PDP read-only instead
  of (ab)using pmap_kenter_pa(). No more "mapping already present" on
  console with DIAGNOSTIC kernels
- make sure to zero the whole PDP (NTOPLEVEL_PDES doens't include
  high-level entries on i386 and i386PAE, reserved by Xen). Not sure
  how it has worked before
- remove an always-true test (&& pmap != pmap_kernel(); we KASSERT that
  at the function entry).
2012-02-20 20:49:12 +00:00
mrg
83cc5b2226 assert kernel lock is held in a few places in inside scsipi.
lock the kernel when calling into scsipi from umass and usscanner.

with these two in place on usbmp branch, umass appears stable.
2012-02-20 20:09:08 +00:00
bouyer
aa488cdf00 When using uvm_km_pgremove_intrsafe() make sure mappings are removed
before returning the pages to the free pool. Otherwise, under Xen,
a page which still has a writable mapping could be allocated for
a PDP by another CPU and the hypervisor would refuse it (this is
PR port-xen/45975).
For this, move the pmap_kremove() calls inside uvm_km_pgremove_intrsafe(),
and do pmap_kremove()/uvm_pagefree() in batch of (at most) 16 entries
(as suggested by Chuck Silvers on tech-kern@, see also
http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012727.html and
followups).
2012-02-20 19:14:23 +00:00
joerg
50a2d17c77 SQLite doesn't use the FTS index for equal ops, so force it to do a FTS
search first. Drops run time by a factor of 6 for "whatis man".
Found by Abhinav Upadhyay.
2012-02-20 18:27:30 +00:00
joerg
fdbd00e5b0 Add reference to whatis(1). From Abhinav Upadhyay. 2012-02-20 18:25:51 +00:00
matt
0bf8cdb842 Remove ${SIZE} 2012-02-20 18:23:50 +00:00
christos
ca439b8516 Posix spawn fixes:
- split the file actions allocation and freeing into separate functions
- use pnbuf
- don't play games with pointers (partially freeing stuff etc), only check
  fa and sa and free as needed using the same code.
- use copyinstr properly
- KM_SLEEP allocation can't fail
- if path allocation failed midway, we would be possibily freeing
  userland strings.
- use sizeof(*var) instead sizeof(type)
2012-02-20 18:18:30 +00:00
martin
45d535a7b7 Add a test case to call posix_spawn with empty file actions, which reproduced
the (now fixed) PR kern/46038.
2012-02-20 12:22:40 +00:00
martin
94602e1cf5 Solve previous fix (for early posix_spawn children exiting on error)
differently.
2012-02-20 12:21:23 +00:00
martin
6bde504952 More posix_spawn fallout:
Fix a kmem_alloc() call with zero size (PR kern/46038), allow file actions
to be passed, even if empty.
Rearange p_reflock locking for the child, avoid a double free in an
error case, avoid a memory leak in another error case - all pointed out
by yamt.
During blocking operations early in the child borrow the kernel vmspace
(as suggested by yamt).
2012-02-20 12:19:55 +00:00
wiz
00872173ab Bump date for previous. Use more markup. 2012-02-20 09:45:22 +00:00
martin
2b8e910c25 Add missing __BEGIN_DECLS, from Henning Petersen in PR misc/46058. 2012-02-20 09:28:43 +00:00
elric
f082d14a0d Check in very basic compressed file support. httpd will now serve
a precompressed .gz file if it exists, the client claims to support
gzip and the request is not ranged.
2012-02-20 09:26:56 +00:00