Commit Graph

191873 Commits

Author SHA1 Message Date
tsutsui 995d4be272 Pull a similar fix from sparc/dev/zs.c rev 1.119:
Establish interrupt handlers with proper softc per each zs device
 rather than sharing them among all zs devices and searching softc
 in handlers, to avoid possible recursive lock.
2010-06-26 03:44:49 +00:00
tsutsui 42db966caf Remove an unused variable. 2010-06-26 03:39:53 +00:00
rmind bf5767dcea tmpfs_statvfs: hold accounting lock, since tmpfs_pages_avail() and
tmpfs_bytes_max() may fluctuate while in calculations.
2010-06-26 03:38:14 +00:00
tsutsui 2c8811ab00 Pull a similar fix from sparc/dev/zs.c rev 1.119:
Establish interrupt handlers with proper softc per each zs device
 rather than sharing them among all zs devices and searching softc
 in handlers, to avoid possible recursive lock.
2010-06-26 01:48:57 +00:00
tsutsui dc3badf5ec Establish interrupt handlers with proper softc per each zs device
rather than sharing them among all zs devices and searching softc
in handlers.

The latter method is derived from ancient sun3 zs driver which tried
to reduce overhead on autovectored interrupts, but nowadays such hack
might cause recursive global locks on modern SMP capable framework.

Fixes "5.99.30 sparc panic during startup" reported by Hauke Fath
on tech-kern@:
http://mail-index.NetBSD.org/tech-kern/2010/06/19/msg008374.html
and also tested by Jochen Kunz on SS20 with both serial and kbd console.

Ok'ed by mrg@ and dyoung@.
2010-06-26 01:42:57 +00:00
tsutsui 9bb99692d4 If options RTC_OFFSET is not specified use bootinfo->timezone passed
by hpcboot.exe as well as other hpc* ports.  Noticed by uwe@.
Also comment out options RTC_OFFSET=0 lines and note about this
in kernel config files.  Tested on WS003SH.

XXX: dup code among pxa2x0_hpc_machdep.c and sa11x0_hpc_machdep.c
2010-06-26 00:25:02 +00:00
joerg d6492db27f Merge for pkg_install-20100616 2010-06-26 00:17:13 +00:00
joerg d0eb5eccdb pkg_install-20100616:
- Recognize -C for pkg_add like the rest of the tools do
- Do the existing check for pkg_add -f, it makes the combination of
  -f and -U a bit less surprising
- Fix option handling for CHECK_VULNERABILITIES (from spz@)
- Make end-of-life check the default. pkg_install.conf(5) can be used
  to override the default. The existing admin -e & co continue to work as
  before.
2010-06-26 00:14:26 +00:00
rmind f66e2cf323 Add missing sys/xcall.h inclusion, remove sys/malloc.h one. 2010-06-25 19:00:05 +00:00
agc ad39646b85 Fix build problems on LP64 platforms - thanks to Paul Goyette for the nudge. 2010-06-25 18:30:16 +00:00
tsutsui 8809b23e72 Add several USB Ethernet devices. 2010-06-25 17:53:28 +00:00
tsutsui 42613739e0 Enable options DDB, which is enabled in other kernels. 2010-06-25 17:42:02 +00:00
tsutsui c57d9e3781 Set options RTC_OFFSET=-540 since Windows Mobile stores localtime
into the RTC and we can assume most W-ZERO3 users live in JST timezone.

XXX: Probably it would be better to allow a kernel getting RTC_OFFSET value
XXX: via bootinfo set by boot(8) or boot.cfg(5).
2010-06-25 17:40:32 +00:00
joerg 7e9c48e195 Explicitly link libstdc++ against libm as found by Arnaud Lacombe. 2010-06-25 16:54:25 +00:00
tsutsui e96b50fc20 Add wait_sec() which uses BIOS function call INT 1Ah/AH=00h (GET SYSTEMTIME)
and use it for large delays (in seconds) instead of delay() that uses
INT 15h/AH=86h (WAIT) in microsecond because the latter one can't provide
precise delays on emulators.
Fixes PR port-i386/43156 (NetBSD bootloader countdown runs at 1/20 speed
in qemu 0.12).

No particular comments on the PR and port-i386@.
2010-06-25 15:35:08 +00:00
tsutsui cd9494c03d Add config_mountroot(9) in autoconf(9) man page and LINKS for it. 2010-06-25 15:16:13 +00:00
tsutsui 9aa0a261b5 Add config_mountroot(9), which defers device configuration
after mountroot(), like config_interrupt(9) that defers
configuration after interrupts are enabled.
This will be used for devices that require firmware loaded
from the root file system by firmload(9) to complete device
initialization (getting MAC address etc).

No objection on tech-kern@:
http://mail-index.NetBSD.org/tech-kern/2010/06/18/msg008370.html
and will also fix PR kern/43125.
2010-06-25 15:10:42 +00:00
martin f5c8ee89a1 Re-enable LFS as /, now that booting from it works with the sysinst default
FS parameters.
2010-06-25 10:21:50 +00:00
hannken 07c29bfbcb Undo last commit and don't try to lock vnodes in lfs_unmark_dirop()
as we may deadlock trying to write the superblock.

Should fix PR #43503 Can't create device nodes on LFS.
2010-06-25 10:03:52 +00:00
wiz 5cee6a1fc5 Remove trailing whitespace. Use command without path (not
necessary on NetBSD, wrong if installed from pkgsrc). Bump date for previous.
2010-06-25 07:40:35 +00:00
msaitoh bbba767d43 Only 82571 shares port 0 of EEMNGCTL_CFGDONE. 2010-06-25 04:35:54 +00:00
msaitoh a0492375e1 fix comment. 2010-06-25 04:16:28 +00:00
msaitoh 5e478d2ed7 Add some code to support 82580[ER]. Tested on my own I340-T4.
- Fix CTRL_EXT_SWDPIN() and CTRL_EXT_SWDPIO() macros. The bit order of the
   SW definable pin is not 6543 but 3654!!!

 - Rewrite the code to read MAC address from eeprom.

 - Add some code to support 82580.

TODO:
 - ukphy -> somephy
2010-06-25 04:03:14 +00:00
msaitoh d6d8c40941 The GIO master enable bit in STATUS register is not bit 16 but bit 19.
It will fix a problem in the reset sequence on PCI-e chips.
2010-06-25 03:47:57 +00:00
agc 47561e266e Changes to 3.99.5
+ make ssh fingerprints (md5) match netpgp listing
+ use the more functional hexdump function from ssh2pgp in place of the
  older hexdump function from openpgpsdk
+ pass hash type down from command line where needed
+ add test for netpgp/ssh key fingerprint matching
+ make netpgpkeys(1) take a --hash= option

With these changes, netpgp can be made to generate the same fingerprint as
openssh (by default, ssh-keygen(1) uses an md5 digest)

% /usr/bin/netpgpkeys --ssh-keys --sshkeyfile=/etc/ssh/ssh_host_rsa_key.pub --list-keys --hash=md5
1 key
pub 1024/RSA (Encrypt or Sign) fcdd1c608bef4c4b 2008-08-11
Key fingerprint: e935 902d ebf1 76ba fcdd 1c60 8bef 4c4b
uid              osx-vm1.crowthorne.alistaircrooks.co.uk (/etc/ssh/ssh_host_rsa_key.pub) <root@osx-vm1.crowthorne.alistaircrooks.co.uk>

% ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub
1024 e9:35:90:2d:eb:f1:76:ba:fc:dd:1c:60:8b:ef:4c:4b /etc/ssh/ssh_host_rsa_key.pub (RSA)
%
2010-06-25 03:37:27 +00:00
riz 580e1452c1 Add wedge (dk(4)) support to vnd(4) devices. 2010-06-24 21:20:23 +00:00
skrll c6d6c8c225 More KNF 2010-06-24 20:46:11 +00:00
skrll d481569999 ANSIfy / KNF. 2010-06-24 20:42:24 +00:00
joerg 77047093af Update build glue for mdocml-1.10.2 2010-06-24 17:20:19 +00:00
joerg d97c95f0f7 Merge mdocml-1.10.1 2010-06-24 17:19:58 +00:00
joerg 6c26a9aaa0 Import mdocml-1.10.2:
- Minor bug-fixes and optimisations
- Support font styles for Postscript output
2010-06-24 17:16:37 +00:00
joerg 4d4c59441b Run services_mkdb if only the old hash exists 2010-06-24 17:12:06 +00:00
skrll eb5a8d18ab Add uturn(4). 2010-06-24 16:37:48 +00:00
skrll acf2047a2d Add a uturn(4) man page. 2010-06-24 16:34:51 +00:00
skrll 89c6b1c5f3 Note support for uturn(4). 2010-06-24 16:15:22 +00:00
skrll 9df03ffdf5 Add uturn(4) and attachments. 2010-06-24 16:06:03 +00:00
tsutsui 586cb95b19 KNF and misc cosmetics. 2010-06-24 15:01:45 +00:00
tsutsui 79c4c75696 Remove unused sc->axe_stop_task in softc. 2010-06-24 14:41:31 +00:00
tsutsui 59fadcf9bc Fix several botches:
* in axe_detach():
  * call callout_destroy(9) after axe_stop() which calls callout_stop(9)
    (otherwise gets panic on DIAGNOSTIC and LOCK_DEBUG kernel)
  * no need to call usbd_abort_pipe() that are done in axe_stop()
  * no need to call usb_detach_wait() twice
  * also destroy axe_mii_lock mutex
 * in axe_tick_task():
  * fix an inverted logic
2010-06-24 14:39:57 +00:00
hannken 1423e65b26 Clean up vnode lock operations pass 2:
VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.
2010-06-24 12:58:48 +00:00
reinoud cd63900e30 Pullup changes from the write implementation:
- remove unnessisary check that would prevent it from mounting newer nilfs
  images. A field has been added in the segment summary.
- store blocks of files on their virtual block number
2010-06-24 12:15:46 +00:00
hannken e8d576583d genfs_nolock(): LK_INTERLOCK flag no longer possible. 2010-06-24 10:39:35 +00:00
hannken d06039d236 coda_lock(): LK_INTERLOCK flag no longer possible. 2010-06-24 10:37:22 +00:00
reinoud 038180ae32 Update NiLFS(2) on-disc structures from Linux version 2010-06-24 10:20:08 +00:00
hannken da75ace1d5 Regen. LK_EXCLOTHER has gone. 2010-06-24 07:56:22 +00:00
hannken f6c438ba23 Clean up vnode lock operations:
- VOP_LOCK(vp, flags): Limit the set of allowed flags to LK_EXCLUSIVE,
   LK_SHARED and LK_NOWAIT.  LK_INTERLOCK is no longer allowed as it
   makes no sense here.

- VOP_ISLOCKED(vp): Remove the for some time unused return value
  LK_EXCLOTHER.  Mark this operation as "diagnostic only".
  Making a lock decision based on this operation is no longer allowed.

Discussed on tech-kern.
2010-06-24 07:54:46 +00:00
jruoho 4a8a89e213 Couple of grammar fixes. 2010-06-24 04:21:58 +00:00
macallan 108405a01e register definitions for Brooktree Bt461 and Bt462 RAMDACs, used on CG12 and
others
2010-06-24 03:30:36 +00:00
eeh 605be4ce9b indir-block needs to be the size of a filesystem block or bad things can happen. 2010-06-24 00:54:12 +00:00
wiz e012a9fa38 Remove unnecessary whitespace. 2010-06-23 21:03:16 +00:00