Commit Graph

188120 Commits

Author SHA1 Message Date
christos
8752bdfe89 PR/42828: Richard Hansen: Don't evaluate ${ENV} if not interactive.
http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_05_03
2010-02-17 15:57:24 +00:00
pooka
d317936de6 umgah. meant fts, not fsu 2010-02-17 15:54:10 +00:00
pooka
046f5845a2 Bump the initial rootdir link count guess to a ludicrous value. 2010-02-17 15:50:54 +00:00
eeh
feea5ba263 Add support for ffsv2 and lfs. 2010-02-17 15:50:06 +00:00
eeh
55cbbbda21 Fix ffsv2 support. 2010-02-17 15:49:19 +00:00
pooka
73655f9fb0 Save "." attributes in readdir. This fixes the root link count
after readdir is called for the root dir the first time (yes,
there's still a window of wrong link count after the fs is mounted.
it's currently quite difficult to call sftp_readdir() from outside
the main loop).

Should fix "find /mnt" problem for a mountpoint with more than the
"guessed" amount of subdirectories, as reported by dyoung.
2010-02-17 15:47:36 +00:00
pooka
65dca8eead * add a rant about why MPSAFE isn't enabled even though puffs code is
* predict_false that we are mounting when calling statvfs
* KNF
2010-02-17 14:32:08 +00:00
skrll
27e0e1c809 Fix typo in previous. It's not a good idea to let uvm mess with kernel
text pages.
2010-02-17 14:16:53 +00:00
pooka
35257440bd Invert inverted comment and verbosify it. 2010-02-17 13:28:40 +00:00
skrll
6216966bd3 Add some comments. 2010-02-17 11:33:51 +00:00
skrll
66e7a27415 Semi-colons help. 2010-02-17 11:31:39 +00:00
skrll
def9f5d433 Whitespace. 2010-02-17 11:21:24 +00:00
skrll
fe12c9786e Add aliasing defines for PA2.0 cpus.
They will cause unnecessary non-equiv alias handling on PA1.x machines if
PA2.0 cpu support is compiled into the kernel.  GENERIC currently doesn't
have this support enabled.

The performance hit of this needs testing.
2010-02-17 11:14:10 +00:00
skrll
397f09772a Add a prototype for pmap_page_physload. 2010-02-17 10:03:30 +00:00
plunky
de7a8fb394 sort entries in structure
clarify init name type for CSR modules
2010-02-17 09:49:41 +00:00
kiyohara
3b90717a87 Fix type missmatch.
forgot to commit since change ia64/syscall.c,1.5.
2010-02-17 06:06:50 +00:00
snj
c4acb3fa95 Fix a thinko: the DHCP _client_ is doing the requesting.
Reported by Anonymous in PR misc/39162.
2010-02-17 01:17:36 +00:00
snj
29aa1b84fb Fix punctuation and update "SEE ALSO" section. From Bug Hunting in
PR misc/40293.
2010-02-17 00:49:21 +00:00
dyoung
c26d0a3ad4 Initialize the temporary pmf_qual_t in pmf_device_subtree_release()
to avoid a failed ds != NULL assertion, later.
2010-02-17 00:15:24 +00:00
mlelstv
7974872552 Three changes in a single commit.
- drop the notion of frags (LFS fragments) vs fsb (FFS fragments)
  The code uses a complicated unity function that just makes the
  code difficult to understand.

- support larger sector sizes. Fix disk address computations
  to use DEV_BSIZE in the kernel as required by device drivers
  and to use sector sizes in userland.

- Fix several locking bugs in lfs_bio.c and lfs_subr.c.
2010-02-16 23:20:30 +00:00
mlelstv
b076c4eba1 Read the padded superblocks to avoid problems with disks that have
larger sectors than 512 Bytes.
2010-02-16 23:13:13 +00:00
pooka
643ba90bf0 Globally define -Wno-pointer-sign, as it has become a pointless
exercise of "add it to every Makefile individually".

XXX: should autosynchronize with the rest of the kernel buildflags
in sys/conf/Makefile.kern.inc.
2010-02-16 20:42:44 +00:00
pooka
97fada1858 remove -D__NetBSD__ (it's done globally now) 2010-02-16 20:34:03 +00:00
wiz
0e14adec54 Remove trailing whitespace. 2010-02-16 19:59:31 +00:00
dyoung
a60f2abe1f PCI Configuration Mechanisms #1 and #2 are controlled by two to
three registers.  Let us think of the kernel operating the registers
in two steps:

1) Select: enable configuration cycles and select a range of
   configuration-space addresses.

2) Access: read or write a word in PCI configuration space.

To make the steps more explicit, extract some helper subroutines
from pci_conf_read(9) and pci_conf_write(9):

pci_conf_selector(tag, reg): from a pcitag_t and a register offset,
    create a word that enables configuration cycles and selects a
    configuration address range.

pci_conf_select(w): for `w' a word created by pci_conf_selector(),
    enable configuration cycles and select the address range indicated
    by `w'.

pci_conf_select(0): disable configuration cycles.

pci_conf_port(tag, reg): map a pcitag_t and a register offset to an I/O
    port where the configuration access should occur.

While I'm in here, change the panic(9) calls to panic("%s: ...",
__func__) instead of hard-coding a subroutine name.
2010-02-16 19:29:40 +00:00
rmind
2ef24fabcc kpreempt(9): add a note when kernel preemption is disabled/deferred.
Sprinkle cross-links, bump dates.
2010-02-16 19:21:30 +00:00
mlelstv
03a893b3fd Read the padded superblocks to avoid problems with disks that have
larger sectors than 512 Bytes.
2010-02-16 18:57:53 +00:00
skrll
bce51a654b Remove the dma24_ex method of dealing with BUS_DMA_24BIT and replace
with a uvm managed freelist of pages in the right range.
2010-02-16 16:56:29 +00:00
msaitoh
b601f7daf0 Add support for 82575, 82576 and 82580(ER).
- Apply the patch for 82575 from Wolfgang Stukenbrock (PR#42422). We use
  only one RX ring and with the legacy mode.
- Add support for 82576.
- Partial support for 82580.
- Partial support for the serdes systems.
2010-02-16 15:17:17 +00:00
msaitoh
ce91bef2c6 Add an entry for SAS controller. 2010-02-16 10:11:47 +00:00
msaitoh
ddce6a6e5c regen. 2010-02-16 10:10:26 +00:00
msaitoh
65f53e95ec Add entries for 82576 and 82580 2010-02-16 10:10:04 +00:00
msaitoh
bff00e11f7 indent, tabify and remove extra spaces. 2010-02-16 10:06:19 +00:00
dholland
4db9f70f12 Latin police: use proper conjugation.
(whether the rest of the affected fortune is valid either is debatable)
2010-02-16 09:53:51 +00:00
dholland
1b722ce8d0 Don't inspect vn_stat() results until after checking that it succeeded.
If anyone's been seeing random "File too large" results from module loading,
this should fix it.
2010-02-16 05:47:52 +00:00
mrg
c291955dfd only fsck / if we find it in /etc/fstab. diskless systems don't need
a / entry.

XXX: still get an error from "mount /" in etc/rc.d/root itself.
2010-02-16 02:46:02 +00:00
pgoyette
da75d7bdc1 Move acpismbus into proper place, alphabetically. 2010-02-16 01:18:02 +00:00
jym
6d2adb482c - re-factor code in pmap_map_ptes() slightly, and make it PAE-ready for
native i386 by using PDP_SIZE

- introduce pmap_unmap_apdp(), used to clear the APDP entries in PD, and
replace the relevant code parts with this function.

Comes from Jeremy Morse's patch for i386 PAE support. Adjustments by me.
2010-02-16 00:48:17 +00:00
dyoung
871ebd4c6d Declare pci_mode_set(). 2010-02-16 00:47:46 +00:00
mrg
6e2ca6e89b update this a little bit. 2010-02-16 00:16:28 +00:00
mrg
ac4a5823ad if pthread_create() fails, display the iteration number in the error message. 2010-02-16 00:15:19 +00:00
mrg
f23127ca0a don't call most/all Core2's "(Merom)". 2010-02-16 00:13:14 +00:00
dyoung
07a5af08b1 Get rid of all PCI_CONF_MODE #ifdef'age except for the little bit
that initializes pci_mode, which I have moved to the top.

Make pci_mode private to pci_machdep.c.

Provide pci_mode_set() for pcibios.c to configure the PCI Configuration
Mechanism.  KASSERT() in pci_mode_set() that the mechanism is not
changing from anything but the "don't know" value, -1.
2010-02-16 00:03:47 +00:00
dyoung
515dca997f Get pci_mode out of the global namespace. 2010-02-15 23:55:24 +00:00
dyoung
2e4dbd90d6 Don't use the global variable pci_mode, but use a local copy of
the return value of pci_mode_detect(), instead.
2010-02-15 23:53:07 +00:00
pgoyette
c4b330d512 Document the new {high, maximum}-capacity keywords, and some general
clean-up.
2010-02-15 23:04:11 +00:00
pgoyette
82c7774043 Add cases for new {high,maximum}-capacity events 2010-02-15 22:56:13 +00:00
pgoyette
55a81df24d Update cross-reference to refer to new aibs(4) instead of aiboost(4) 2010-02-15 22:38:28 +00:00
pgoyette
74999bdda4 Update userland envstat(8) to handle new {high,maximum}-capacity limits. 2010-02-15 22:37:14 +00:00
pgoyette
8844275b30 For symmetry, allow warning and critical upper-limits for capacity
sensors.
2010-02-15 22:32:04 +00:00