Commit Graph

208362 Commits

Author SHA1 Message Date
reinoud
b74ba047d8 Add extra kasserts to make sure we dont derive paramters from zero ucp's 2012-01-21 22:05:06 +00:00
matt
330bf23a3a For cpu_uarea, need uvm.h instead of uvm_extern.h 2012-01-21 21:50:24 +00:00
matt
878569aa0b cpu_uarea_free returns bool, not void 2012-01-21 21:49:50 +00:00
njoly
b13c2c5b2a Kill duplicate SHF_MASKOS/SHF_MASKPROC defines. 2012-01-21 21:44:03 +00:00
tsutsui
b199c46fe5 Give higher priority to faster local memory on uvm_page_physload().
Tested by Y.Sugahara on his 060turbo with 128MB local memory and
this improved even simple benchmark.  Ok'ed by isaki@.
2012-01-21 20:19:55 +00:00
tsutsui
fdc3c331af Always redefine DEV_BSIZE=512.
All references of DEV_BSIZE in tools are to manipulate target
(i.e. NetBSD's) file images (in installboot(8) and makefs(8) etc.) and
no host's DEV_BSIZE is required for the moment.  Closes PR toolchain/42574.
2012-01-21 20:05:27 +00:00
christos
236ed3e463 remove error(1) line. 2012-01-21 19:56:46 +00:00
christos
ab450fcb83 make the previous patch compile. 2012-01-21 19:49:56 +00:00
nonaka
2388feef61 fix my license notice. 2012-01-21 19:44:28 +00:00
christos
e36a3ef194 PR/10367: Second part.
Restore lost fix:
http://mail-index.netbsd.org/source-changes/2001/09/09/0043.html

Fix a test condition for EOF.
2012-01-21 19:35:02 +00:00
christos
2a21cd4999 PR/10367:
Restore lost fix:
    http://mail-index.netbsd.org/source-changes/2001/09/09/0042.html

Define ENTIRE_LINE to be -1 instead of 0 since we may want to copy 0 characters.
(and use ENTIRE_LINE instead of 0 where appropriate)

This fixes a bug in the dw command with for example:

<cursor>
a b c

~
~
if you hit dw there, only the empty line would be killed but both the empty
line and the subsequent one would be pasted when asked for with P for example.
2012-01-21 19:32:37 +00:00
christos
f5b6285b2a undo previous, it is wrong. 2012-01-21 19:29:41 +00:00
reinoud
efe1d0c784 Add the complement to sigemptyset(), sigfillset()! 2012-01-21 19:17:33 +00:00
nonaka
7e1e52be21 fix my license notice. 2012-01-21 18:56:51 +00:00
jakllsch
eaff446d08 Correct some typos in comments, as was done in wdc.c 1.266. 2012-01-21 18:33:17 +00:00
jmcneill
13b0b03b15 initialize fan sensor state to ENVSYS_SINVALID, should fix:
asus0 at acpi0 (ATKD, ASUS010-16843008)
sme_update_sensor_dictionary: can not update sensor state 0 unknown
asus0: couldn't register with envsys
2012-01-21 18:13:56 +00:00
christos
9e2c491108 PR/10367: Mason Loring Bliss: fix delete word near end of file. Patch
from tnozaki.
2012-01-21 17:12:56 +00:00
chs
caaf3a9421 fix UVM_MAP_CLIP_* to only clip if the clip address is within the entry
(which would only not be true if the clip address is at one of the boundaries
of the entry).  fixes PR 44788.
2012-01-21 16:51:38 +00:00
chs
f1a14a20aa src/sys/dev/ic/mpu.c
fix assertions after audiomp.
2012-01-21 16:49:26 +00:00
chs
e8223ac8ab allocate uareas contiguously and access them via the direct map. 2012-01-21 16:48:56 +00:00
chs
461609b5cd disable the entry for Marvell E1149 for now since this driver doesn't work
with some instances of this hardware (in particular, the ones on the
motherboard of an HP XW9400 workstation, which is supposedly a Tyan S2915).
ukphy works fine for this.
2012-01-21 16:48:08 +00:00
christos
df65f3e2c9 Siginfo support from Daniel Loffgren 2012-01-21 16:38:41 +00:00
jakllsch
65ab8f813e Silence "large integer implicitly truncated to unsigned type" warning on LP64. 2012-01-21 16:12:57 +00:00
jakllsch
ac76eeffdd Add module glue. (Better late than never.) 2012-01-21 15:50:13 +00:00
tnozaki
dc7498df23 libintl crash when *.mo file lacks header section(old gettext format).
reported by jun@ -san, tested by tsutsui@ -san. thanks!
2012-01-21 13:35:49 +00:00
skrll
59437e1e60 Regen. 2012-01-21 12:53:04 +00:00
skrll
4f31939942 Add a bunch of Standard Microsystems devices.
From OpenBSD.
2012-01-21 12:50:28 +00:00
isaki
2d602d5f8b Remove my (isaki@) acknowledgement. 2012-01-21 04:43:54 +00:00
isaki
e9bd047a2f Switch mine to 2-clause license. 2012-01-21 03:01:03 +00:00
isaki
43fa5f922b Clean up pow(4) (which I had removed in Nov 2011). 2012-01-21 02:52:50 +00:00
jmcneill
ebc0f994b4 reduce stack usage of stbi_gif_load_from_memory when STBI_SMALL_STACK is
defined
2012-01-20 23:13:47 +00:00
christos
c300185bd0 Merge the two Makefiles that were mostly copies of each others.
The reason to do this was to add support for cleaning up the config.cache
files when the build environment (as determined by uname -srm) changes.
2012-01-20 23:01:05 +00:00
jakllsch
c53184c92c Ensure psshfs_node_read() completely reads all data before return.
Fixes file corruption in psshfs exposed with kernel MAXPHYS at 128KiB.
2012-01-20 22:07:58 +00:00
hannken
9a05b44bd8 Revert revision 1.4 and change LAPIC_LEVEL_ASSERT / _MASK back to 0x4000.
According to "Intel 64 and IA-32 Architectures Software Developer's Manual"
Vol. 3, May 2011, Order Number: 325384-039US, Section 10.6.1:

	LEVEL_ASSERT is bit #14, bit #13 is reserved.

With this change NetBSD now boots multiple processors under CentOS 6.2/kvm.
2012-01-20 18:47:04 +00:00
matt
eb7c56bacb Remove output emulation. 2012-01-20 18:25:30 +00:00
joerg
0f5f511fae Remove code for CITRUS!=yes. 2012-01-20 16:31:29 +00:00
tsutsui
6df52306d4 Invoke a shell script via ${HOST_SH} rather than assuming exec bits. 2012-01-20 15:06:47 +00:00
nonaka
9587ee6530 Kernel load address can be changed now. 2012-01-20 15:00:27 +00:00
joerg
e8bec33be1 Change CMSG_SPACE and CMSG_LEN to provide Integer Constant Expressions
again. This was changed in sys/socket.h r1.51 to work around fallout
from the IPv6 aux data migration. It broke the historic ABI on some
platforms. This commit restores compatibility for netbsd32 code on such
platforms and provides a template for future changes to the CMSG_*
alignment. Revert PCC/Clang workarounds in postfix and tmux.
2012-01-20 14:08:04 +00:00
skrll
135f4f3872 Whitespace 2012-01-20 06:51:19 +00:00
skrll
e3b6e9cf05 Add a comment. 2012-01-20 06:50:00 +00:00
agc
d2e3329102 While the resulting image from mkimage can always be mounted with vnd,
and then modified, it is much easier to let this late, user-oriented
customisation be done automatically.  These mods let mkimage change
information based on files in a "custom" directory, which can be set
in mkimage using -c customdir.

After all other configuration, the files under custom/ will be copied
into the main image.  The files under custom/ are taken into account
when performing autosizing.

Also, generalise the sets directory to point to the current machine
architecture, although this can be overwritten from the command line
by anyone making cross-images.

An example to make a user image with an embedded read-only 100 MB
iSCSI target:

% ./mkimage -c custom
=== making a new 272 MB image in usermode.img ===
272+0 records in
272+0 records out
285212672 bytes transferred in 7.616 secs (37449142 bytes/sec)
=== mounting image via vnd vnd0 ===
/dev/rvnd0a: 272.0MB (557056 sectors) block size 8192, fragment size 1024
        using 6 cylinder groups of 45.34MB, 5803 blks, 11264 inodes.
super-block backups (for fsck_ffs -b #) at:
32, 92880, 185728, 278576, 371424, 464272,
=== installing sets ===
base
etc
modules
=== performing customisations ===
=== making extra directories ===
=== customising /var/tmp ===
=== user customisations from files in custom ===
Filesystem    1K-blocks       Used      Avail %Cap Mounted on
/dev/vnd0a       269967     263958      -7489 102% /mnt
% ls -l -R custom
total 8
drwxr-xr-x  3 agc  agc  512 Jan 18 03:58 etc
drwxr-xr-x  2 agc  agc  512 Jan 18 04:00 iscsi

custom/etc:
total 8
drwxr-xr-x  2 agc  agc  512 Jan 18 03:58 iscsi
-rw-r--r--  1 agc  agc  564 Jan 18 03:58 rc.conf

custom/etc/iscsi:
total 6
-r--r--r--  1 agc  agc  799 Jan 18 04:27 targets

custom/iscsi:
total 102484
-rw-r--r--  1 agc  agc  104857600 Jan 18 04:00 iscsi-target0
% sudo vnconfig vnd0 usermode.img
% sudo mount /dev/vnd0a /mnt
% cat /mnt/etc/iscsi/targets
# $NetBSD: targets,v 1.2 2006/02/16 19:30:57 agc Exp $
#
# Structure of this file:
#
# + an extent is a straight (offset, length) pair of a file or device
#   it's the lowest common storage denominator
#   at least one is needed
# + a device is made up of one or more extents or other devices
#   devices can be added in a hierachical manner, to enhance resilience
# + in this example, no device definitions are necessary, as the target
#   will just use a simple extent for persistent storage
# + a target is made up of 1 or more devices
# The code does not support RAID1 recovery at present

# Simple file showing 1 extent, mapped straight into 1 target

# extent        file or device          start           length
extent0         /iscsi/iscsi-target0    0               100MB

# target        flags   storage         netmask
target0         ro      extent0         0.0.0.0/0
% ls -l /mnt/iscsi/iscsi-target0
-rw-r--r--  1 agc  agc  104857600 Jan 18 04:00 /mnt/iscsi/iscsi-target0
% diff custom/etc/iscsi/targets /mnt/etc/iscsi/targets
%
2012-01-20 02:19:47 +00:00
matt
cd209751f3 Don't make a netbsd-sd0a 2012-01-20 01:33:05 +00:00
joerg
a4d3608fa8 CMSG_ALIGN is only for the kernel. 2012-01-20 01:17:01 +00:00
joerg
714fe69669 Don't use __cmsg_alignbytes in the kernel. Mark it as constant function
for userland as its value never changes. This allows the compiler to
optimise most invocations away.
2012-01-20 00:25:29 +00:00
matt
fed60237a0 Add cfi/nor 2012-01-19 23:37:23 +00:00
rkujawa
91aeeb8582 Don\'t forget to disable atabus* when disabling the efa driver. 2012-01-19 22:43:11 +00:00
rkujawa
f4fc0ec1f7 User reported that efa driver attached when FastATA hardware was absent, but 4x EIDE splitter was present. Disable efa in GENERIC until problem is solved and/or better probe function is written. 2012-01-19 22:11:49 +00:00
bouyer
a3e0c29742 add a missing splvm()/splx() to protect the xpq queue. 2012-01-19 22:04:05 +00:00
bouyer
c4e81427ed pmap_pte_set() is not supposed to be atomic, so only raise IPL, no need to
take pte_lock
2012-01-19 22:00:56 +00:00