Commit Graph

161611 Commits

Author SHA1 Message Date
dyoung
76b1df3703 Get rid of struct oifreq/ifreq compat code, because ifioctl() has
taken care of this for us.
2007-09-02 01:50:58 +00:00
dyoung
0af5ef16d6 Be consistent: use the prefix sc_ for all members of the gre_softc. 2007-09-02 01:49:49 +00:00
macallan
01e17775ae don't include machine/autoconf.h - we don't need it (anymore?) 2007-09-02 01:41:29 +00:00
macallan
20316fb57c defflag DEBUG_SGSMIX 2007-09-02 01:40:46 +00:00
xtraeme
0b4713a20a Convert onewire(4) to use rwlock(9) rather than lockmgr(9). 2007-09-02 00:55:33 +00:00
xtraeme
e8bf5d91f9 Do not enable monitoring for the sensors... if somebody wants this,
it may be enabled via userland.
2007-09-02 00:54:50 +00:00
xtraeme
bed35595ed Attach to the ICH6 AC-97 Modem function. 2007-09-02 00:48:52 +00:00
xtraeme
03b7809379 Add <sys/mutex.h> rather than <sys/lock.h>. 2007-09-02 00:44:07 +00:00
xtraeme
c371d1d093 Convert the sysmon watchdog framework to use mutex(9) rather than
simple_locks and initialize them on init_main via sysmon_wdog_init().

All the sysmon code now is cleaned up and doesn't use old style locking.
2007-09-02 00:41:24 +00:00
xtraeme
e5db35db44 typo: ENVSYS_FVALID -> ENVSYS_SVALID. 2007-09-02 00:31:23 +00:00
xtraeme
fda9e03ae4 Remove unused (and inexistent) flag. 2007-09-02 00:28:28 +00:00
dyoung
36a3794513 Protect userland from ifreq_getaddr() w/ #ifdef _KERNEL. 2007-09-02 00:24:18 +00:00
pooka
3f3cac88a3 Make bioops a pointer and point it to the softdeps struct in softdep
init.  Decouples "options SOFTDEP" from the main kernel and ffs code.
2007-09-01 23:40:21 +00:00
riz
a550eae132 For SMBus, add the ability to enumerate devices on the bus.
This does NOT identify the devices, merely indicates the
presence of devices at certain addresses.  Tested on ichsmb
and nfsmb - other SMBus devices will need to ensure the
proper bus type is set. (I2C_TYPE_SMBUS)

From Nicolas Joly, via Paul Goyette, in PR#36744.
2007-09-01 22:19:25 +00:00
pooka
eb606989ed avoid uninitialized warning from impossible enum 2007-09-01 22:10:10 +00:00
jmmv
54a752b11b Properly use the return value of a bswap16 call. Caught when building
a kernel with -O0.
2007-09-01 22:01:53 +00:00
ober
2689a1e1e8 Attach to ICH8M LPC.
Tested watchdog and it works.
ok xtraeme@
2007-09-01 21:52:06 +00:00
ober
a9cab94434 *** empty log message *** 2007-09-01 21:47:39 +00:00
pooka
292192fe0a * fill struct buf a little better
* hop, skip & jump to make uvm_pageratop work
2007-09-01 21:45:19 +00:00
ober
e18f309a93 ICH8M LPC Interface bridge. ok xtraeme 2007-09-01 21:43:33 +00:00
pooka
34ab6399f3 * add a very crude version of uvm_pageatop()
* add biodone/aiodone
2007-09-01 21:40:58 +00:00
pooka
ebf393b89f vinvalbuf in vrecycle 2007-09-01 21:39:46 +00:00
mhitch
9b0f085da1 68030 and 68040 processors consider the read portion of a read-modify-write
transfer as a write to ensure the memory is writable before starting any
transfer.  The fault status information does not reflect this in the 'read'
status bit (i.e. it shows up as a read access), so faults with a RMW access
to non-writable memory was not getting the correct protection.  The page would
be read-only and the instruction would fault over and over.

A specific example is when a process forks, and the child process attempts
to execute a RMW access to a data page, which is read-only because it's CoP
Copy-On-Write.

When checking if the page needs to be writablek, also check the locked transfer
and treat any locked transfer as a write.

68060 already handled this correctly, since it has separate read and write
fault bits, and both are set on a RMW access and the trap code was checking
the write status bit.

Fixes PR#36848.
2007-09-01 21:31:55 +00:00
hauke
e7c76ac0ee Leverage the new config(8) options for disabling features. This way,
it is easier to keep kernel configuration files up-to-date.

While we are here, disable a few compat options - NetBSD 1.5 has been
a while.

Tested on a Macintosh SE/30 with ae(4) ethernet card.
2007-09-01 20:11:40 +00:00
dyoung
2cb874eb67 Remark that the data-length argument passed to se_scsipi_cmd() is
questionable.
2007-09-01 17:59:45 +00:00
dyoung
0c66a9f0cf Create a temporary, non-const copy of a sockaddr. Pass that to
se_set_multi() or se_remove_multi(), because neither is easily
constified.  Thanks jmmv@ for reporting the issue.
2007-09-01 17:57:02 +00:00
dyoung
096642c5c2 Add se(4). 2007-09-01 17:54:48 +00:00
dsl
7a90b5e6bc Don't error calls to copy socket addresses to userspace when the application
has provided a non-null buffer pointer and a zero length.
2007-09-01 17:04:58 +00:00
yamt
37ac06be56 add a keyword "lname", to print l_name. 2007-09-01 16:54:39 +00:00
pooka
9336b1ca30 Adapt to new puffs_framev_init() signature - gotfb. 2007-09-01 16:43:10 +00:00
pooka
dc9a91060d Add gotframe callback, which is called if an incoming frame matches
no outstanding request.
2007-09-01 16:42:42 +00:00
jmmv
2c9fe9540d Let this build if scsi support is not built into the kernel. 2007-09-01 14:44:08 +00:00
jmmv
4654a3acfd Fix build after dyoung's changes. 2007-09-01 14:27:56 +00:00
xtraeme
e83dd2301e - Fix a memleak in ENVSYS_SETDICTIONARY if there wasn't any error
(thanks god for KMEMSTATS).
- sysmon_envsys_register: add all objects in the dictionary without any
  lock, at this point the sme device hasn't been added into the list
  and it's safe.
- Add sysmon_envsys_destroy_plist(prop_array_t) that destroys all objects
  associated with a device and use it on sysmon_envsys_unregister() and
  sysmon_envsys_register() if there's any error.

Thanks to Mindaugas Rasiukevicius (rmind@) for the great comments/ideas.
2007-09-01 13:43:10 +00:00
xtraeme
9da1b0ba86 sme_event_register: don't forget to add the object in dictionary when
a critical value is added via ENVSYS_SETDICTIONARY.
2007-09-01 12:46:04 +00:00
yamt
b255678460 revert a part of the previous. (typo in a comment) 2007-09-01 10:53:02 +00:00
yamt
73969496b3 reduce cosmetic differences between i386 and amd64 pmaps.
(whitespace, ansify, etc.)
no functional changes are intended.
2007-09-01 10:47:43 +00:00
jnemeth
0e0996d809 Convert build.sh iso-dir=directory option to -C cddir as per jmmv@ on
source-changes.
2007-09-01 09:32:19 +00:00
yamt
901ed7aed2 remove a stale comment. 2007-09-01 09:15:09 +00:00
yamt
58fb7deca6 use UVM_OBJ_INIT. 2007-09-01 09:14:31 +00:00
yamt
f70c0fb34e remove arguments which is no longer necessary. 2007-09-01 09:12:29 +00:00
jnemeth
0f6d505a04 note new build.sh iso-dir=directory option 2007-09-01 08:17:13 +00:00
jnemeth
3afb399fc8 Add an iso-dir=directory option. When combined with iso-image or
iso-image-source, it will cause directory to be added to the CD-ROM image.
2007-09-01 08:15:27 +00:00
dyoung
c53c02b0c9 Once again, use ether_ioctl() instead of (cmd == SIOCADDMULTI) ?
ether_addmulti() : ether_delmulti().
2007-09-01 07:43:36 +00:00
dyoung
064ec1416f token_addmulti and token_delmulti are never used in the kernel, so
delete them.
2007-09-01 07:41:22 +00:00
dyoung
c66d2e7604 fddi_addmulti and fddi_delmulti are never used in the kernel, so
delete them.
2007-09-01 07:40:53 +00:00
dyoung
dcb45c7c0e Instead of IF_POLL()'ing and IF_DEQUEUE()'ing, just IF_DEQUEUE(). 2007-09-01 07:38:16 +00:00
dyoung
5384cb3ee5 Use bpf_mtap2(). 2007-09-01 07:34:03 +00:00
dyoung
dcd8923429 Change a bazillion occurrences of code resembling this,
error = (cmd == SIOCADDMULTI) ?
	    ether_addmulti(ifr, &sc->sc_ec) :
	    ether_delmulti(ifr, &sc->sc_ec);

	if (error == ENETRESET) {

to this,

	if ((error = ether_ioctl(ifp, cmd, data)) == ENETRESET) {

which does the same thing.

(A bazillion is a very large number.  This seems to make the i386
ALL kernel smaller by 3kB to 4kB.)

Use ifreq_getaddr() twice in es(4).

Whitespace nits.
2007-09-01 07:32:22 +00:00
dyoung
9bee2cd7f1 Fix compilation if !defined(INET6). Thanks, Geoff Wing, for the
bug report & patch.
2007-09-01 07:03:32 +00:00