Commit Graph

164822 Commits

Author SHA1 Message Date
yamt b367d7f8b2 fix indentation. 2007-12-14 19:51:37 +00:00
christos 9e925a6665 - Use fattr.c functions instead of home brewed ones.
- Use new dehumanize number.
2007-12-14 17:37:22 +00:00
xtraeme 5ee1eac43a Fix up a comment. 2007-12-14 17:32:47 +00:00
christos 24d7eb9482 bump libc 2007-12-14 17:27:55 +00:00
christos 6d28b23da6 - add dehumanize_number
- decls for humanize_number and dehumanize_number are in stdlib.h
2007-12-14 17:26:19 +00:00
christos b31749e77b add fw decl. 2007-12-14 17:06:07 +00:00
christos b76677eda5 fix obvious bogon [can't alias symbol to itself] 2007-12-14 17:04:28 +00:00
christos 428c7a1f82 From Anon Ymous:
- Fix a file handle leak.
- Use Fopen(), Fdopen(), and Fclose() consistently so the signal
  handler close files.
2007-12-14 16:55:20 +00:00
pooka 2780a147ca nuke the leprechaun from VOP_ACCESS
Paul Lavoie, kern/37542
2007-12-14 16:48:24 +00:00
christos 03dcf031ab humanize_number was the only function in <util.h> that is not in libutil.
Move it to stdlib.h and add dehumanize_number.
2007-12-14 16:36:19 +00:00
xtraeme 486b2ff085 The humanize_number(3) proto will be available in stdlib.h, after
christos moves it to the correct place.
2007-12-14 16:31:20 +00:00
yamt 8dd89b2adc update 2007-12-14 15:02:02 +00:00
yamt e27be6ef33 update 2007-12-14 14:59:04 +00:00
tsutsui ea9dd22af6 Don't allow blocksize larger than 4096 bytes as our kernel, fsck_ext2fs(8),
and Linux e2fsprogs.
2007-12-14 13:19:35 +00:00
njoly 74ac36ac9c Do not try to attach spdmem if i2c adress exceed 0x57.
It must follow the reserved eeprom adresses range.
2007-12-14 13:18:43 +00:00
apb 4ed89c84f0 Synchronise shared text between man8/boot.8, man8/man8.i386/boot.8,
man8/man8.i386/dosboot.8, and man8/man8.i386/pxeboot.8.

* In all:
  - First few lines of each man page should be .Dd, .Os, .Dt, .Nm;
  - Use Nx; new sentence, new line; serial comma;
  - Update comments about which files to keep in sync.
* In MI boot(8):
  - add reference to architecture-specific boot(8);
  - add commented-out reference to boot.cfg(5);
  - reinstate BUGS heading that was lost when the MI boot.8 was
    created from i386 boot.8.
* In i386 boot.8:
  - mention -x and -z flags;
  - we can boot from media other than floppy, or from the network;
  - remove first paragraph in BUGS section now that an MI boot(8)
    man page exists.
* In i386 dosboot.8 and pxeboot.8:
  - mention -c, -x, and -z flags.
2007-12-14 12:03:53 +00:00
chris 86e1b8a4aa Fix for PR cats/18026.
cats was never able to dump a kernel core dump because reading from
VGA addresses (0xb8000) was causing the system to hang.

To workaround this reprogram the footbridge to map the memory to appear on
the PCI bus at 0x20000000, rather than at 0x0.  Also configure the pci bus
to have a DMA range so that data is mapped correctly.

Note that -current kernels seem to hang when unmounting the fs.  This
is a seperate issue, and appears to be because interrupts need to be
enabled to unmount filesystems.

So using reboot 0x104 does work, as it does a sync without unmounting the
filesystems.

Also arm savecore doesn't do anything with the memroy dump, as on arm we
currently just dump the raw memory, there's no header block to indicate
memory sizes or other useful information.
2007-12-14 11:08:03 +00:00
jmmv 0aa628334a Enable puffs in this kernel. I find it very useful in virtual machines to
access the host's (Mac OS X) file system, instead of having to set up NFS.
No objections from pooka@.
2007-12-14 10:57:48 +00:00
jmmv d96be1e18a Add a -F option to allow passing a configuration file to ssh(1), instead
of having to use multiple -O options on the command line.  OKed by pooka@.
2007-12-14 10:56:22 +00:00
jnemeth 07b65a160e remove statement about working towards six month releases 2007-12-14 10:18:30 +00:00
dogcow 5c1631600c fix KDASSERTs by defining ifp 2007-12-14 08:14:27 +00:00
dogcow d494e60340 caddr_t -> void * 2007-12-14 08:14:26 +00:00
dogcow df396ec4f3 remove typedef for caddr_t 2007-12-14 08:14:26 +00:00
explorer 62c5ab302e Fix a minor typo: wd0h was repeated, change second instance to wd1h as is likely intended. 2007-12-14 07:24:01 +00:00
jnemeth cf0f556363 - grammar
- lint
2007-12-14 07:07:29 +00:00
jnemeth 87ad1ce6f1 grammar 2007-12-14 06:33:30 +00:00
jnemeth 4440531974 add ACPI to supported items 2007-12-14 06:32:21 +00:00
jnemeth 94b641365c - we don't support the new UltraSPARC T1 or T2
- lint
- we ffb and afb aka Creator3D
2007-12-14 04:30:40 +00:00
jnemeth 6eb364453e - lint
- mention set extraction progress bar
2007-12-14 04:28:14 +00:00
jnemeth f754fb6212 - fix some URLs
- setup postfix, not sendmail
2007-12-14 04:27:03 +00:00
jnemeth 00fdab89a2 - update from htdocs/releases/formal-4/NetBSD-4.0.xml#major-changes
- fix incorrect usage of .Lk macros
- update Release Contents
  - new CHANGES.* files
  - no pkgsrc
  - new SHA512 checksum files
- update set sizes
- grammar
- lint
- thank WWU CS Dept. for a build cluster
- update portmaster list
2007-12-14 04:24:49 +00:00
dyoung 0aff5df9de Simplify suspend/resume using device_has_power(). 2007-12-14 03:38:19 +00:00
dyoung 8fc7c0c5ca Add a resume handler for com@isa, using Jared McNeill's suggested
code from current-users.  com@acpi, et cetera, remain to be done.
2007-12-14 03:36:54 +00:00
dyoung c4245b0ab7 Oops, make last change compile. 2007-12-14 03:22:19 +00:00
dyoung 9a075a9c73 Comment-out calls to pci_disable_retry() and cardbus_disable_retry().
They do not seem well-justified according to anyone's understanding
of what they really do, and it seems especially inappropriate to
call them at attach- and resume-time.
2007-12-14 03:18:46 +00:00
mjf 84f60004f0 Reorder the previous commit so we remember to disestablish pci interrupts
if we fail to attach ath(4).

Thanks dyoung!
2007-12-14 02:57:22 +00:00
dyoung 552eeca6f7 Exit from ath_init() with EBUSY if the device does not have power. 2007-12-14 02:46:49 +00:00
dyoung 0c96975093 Take a step toward sharing compiled code between sip(4) and gsip(4):
get rid of SIP_DECL() and reduce #ifdef DP83820 code.  Next step
is to move a bunch of shared code to a new file (if_sipcom.c, say)
and compile it *once*.

While I am here, add suspend/resume handling to sip(4) and to
gsip(4).

Tested with the NatSemi sip(4) on the Soekris net4521.  I don't
have any gsip(4) to test with, and it seems that the few holders
of gsip(4) in the world keep them in their attic, anyway.
2007-12-14 01:55:35 +00:00
dyoung 417afa7caa Bug fix: record the new state (high/low) set by gpio_pin_write().
I don't know why we gpio(4) didn't do that before, but it seems
harmless.

Add naive power handling: when a gpio(4) instance is resumed, write
each pin's configuration flags and output state from the softc to
the hardware using gpiobus_pin_ctl() and gpiobus_pin_write().
While suspended, fail every ioctl() except for GPIOINFO with EBUSY.
2007-12-14 01:49:23 +00:00
jmcneill e692a6c76a Introduce pmf_system_bus_resume. In the ACPI S3 resume path, use this to
separate powering up devices from restoring their state. This is required
on some machines where AcpiLeaveSleepState can fail due to an attempt to
access a powered off device.
2007-12-14 01:29:29 +00:00
uwe 4a77686dd9 Use dedicated interrupt stack. Tested on hpcsh and landisk. This has
been sitting in my tree for quite a while.  While here s/top/bottom/
in a few places related to stacks to confirm to conventional
terminology.
2007-12-14 00:58:37 +00:00
mjf 003edc95d6 Fix a crash at shutdown/reboot that was caused by ath(4) registering with
pmf's network class even though the ath device may not have attached
properly.

OK jmcneill
2007-12-14 00:55:52 +00:00
uwe 0790e7df9b Complete lockmgr->mutex conversion started in 1.12. Mutex needs to be
inited with mutex_init.  Since mutex ops return void, drop (void) cast
from APM_(UN)LOCK.
2007-12-14 00:51:44 +00:00
tls 9fcd272fb5 Adjust interrupt moderation for newer chips to be saner according to the
82571 manual and Intel Application Note 450.  Previously, we were setting
RADV and TIDV/TADV values that didn't make any sense given the enormous
ITR value we were setting (well outside the range recommended by Intel
and quite possibly rejected silently by the chip as junk) and setting
RADV without setting RDTR, which is explicitly documented as having no
effect.

A considerable performance improvement is achieved for TCP and UDP at
gigabit speed.  I need to revisit this to deal with the timer ticks
being 4X as long when the chip's in 100mbit mode, and to set values
for the older chips' interrupt timers that are more like what the
appnote recommends.  This should help for 82543 and newer, though.
2007-12-14 00:23:49 +00:00
jnemeth 5969189dbc update set sizes 2007-12-14 00:11:55 +00:00
wiz 3a8a3f8310 Whitespace and HTML output fixes. 2007-12-13 22:06:45 +00:00
bouyer ca0831b58a Remove obsolete code and comment. 2007-12-13 21:42:06 +00:00
skrll ed0dc19ecc g/c __HPPA_SIGNAL_PRIVATE 2007-12-13 21:34:18 +00:00
garbled 41918d8024 Move the elink probe code from files.isa to the common conf/files so that
MCA without isa can compile.  fix by cube.
2007-12-13 21:23:48 +00:00
bouyer a4bffcd44a Reorder some operations for better handling of failures in
xpq_update_foreign(). Note that this also affects native operations, but it
shoulnd't cause problems even for SMP system. Proposed on port-amd64@ and
port-i386@

Don't invalidate the recursive PTE entry in user pmap when switching from
kernel to userland on Xen/amd64. This effectively means that a userland
process can read its own page tables (no write, of course) on Xen/amd64, but
it shouldn't cause security issue (discussed on tech-kern@ some time ago).
This makes NetBSD Xen/amd64 more than 10x faster
building pkgsrc/pkgtools/digest
2007-12-13 21:22:15 +00:00