Commit Graph

157871 Commits

Author SHA1 Message Date
pooka 4370dd6320 check puffs_access_{chmod,chown,times} in setattr 2007-03-21 19:56:49 +00:00
pooka 0f28e7c1d1 add routiens which check against ufs semantics for permission to
chown, chmod and change a/mtime
2007-03-21 19:55:55 +00:00
xtraeme b5e7260b5f Mention options(4) in last item... suggested by hubertf@. 2007-03-21 19:30:55 +00:00
xtraeme d79325bc2e Mention machdep.clockmod for INTEL_ONDEMAND_CLOCKMOD. 2007-03-21 19:29:30 +00:00
ad 1dd83d7758 Move PTHREADD_ADD(PTHREADD_COND_WOKEUP) back to the correct spot. 2007-03-21 19:08:18 +00:00
ad a63c21f286 PR lib/34931: PTHREAD_ATTR(3) doesn't document PTHREAD_CREATE_JOINABLE and
PTHREAD_CREATE_DETACHED macros. From Matthew Mondor.
2007-03-21 18:53:32 +00:00
xtraeme 6e5117d74f typo 2007-03-21 18:28:26 +00:00
ad 6594c9ccdc NetBSD 4.99.16 - struct lwp changed. 2007-03-21 18:28:13 +00:00
ad fed1793605 Improvements to lwp_wait1(), for PR kern/35932:
- Better detect simple cycles of threads calling _lwp_wait and return
  EDEADLK. Does not handle deeper cycles like t1 -> t2 -> t3 -> t1.
- If there are multiple threads in _lwp_wait, then make sure that
  targeted waits take precedence over waits for any LWP to exit.
- When checking for deadlock, also count the number of zombies currently
  in the process as potentially reapable. Whenever a zombie is murdered,
  kick all waiters to make them check again for deadlock.
- Add more comments.

Also, while here:

- LOCK_ASSERT -> KASSERT in some places
- lwp_free: change boolean arguments to type 'bool'.
- proc_free: let lwp_free spin waiting for the last LWP to exit, there's
  no reason to do it here.
2007-03-21 18:25:59 +00:00
xtraeme 6ae05af027 - Remove ci_msr_rvalue, it's not useful anymore as yamt@ pointed out.
- Remove completely debug from msr_ipifuncs, now it's known to work.
2007-03-21 18:20:59 +00:00
drochner cd09748288 remove a debug printf which I had left in accidentally,
print the standard "dv_xname: interrupting at ..." line instead
2007-03-21 17:45:18 +00:00
drochner d414de4f1a since no boundary restrictions apply, a zero boundary argument to
bus_dmamem_alloc() is the right thing
2007-03-21 17:15:53 +00:00
drochner 7a0663bdb7 revert previous - it doesn't work on i386 at least 2007-03-21 17:01:56 +00:00
isaki ff418f03d1 Fix mis-substitution of RCS Id, and avoid it.
Reviewed by wiz@.
2007-03-21 15:02:08 +00:00
uwe fc61a45d33 There are only 32 bits in a VA, not 33 - sync comment with this harsh reality. 2007-03-21 14:50:43 +00:00
vanhu 002f3b4723 checks if arg is NULL in SCHED_KILL 2007-03-21 14:37:58 +00:00
vanhu 452cfb7edf NULL sched check is now done in SCHED_KILL 2007-03-21 14:29:22 +00:00
vanhu 43c152a498 checks if arg is NULL in SCHED_KILL 2007-03-21 14:28:59 +00:00
tsutsui 19daf5ad0b Cleanup handling of quikrs on each RealTek chip:
- replace rtk_type member in rtk_softc which has chip types
  with new rtk_quirk that represents quirks on each chip:
  - RTKQ_8129           doesn't have internal MII (used in rtk(4))
  - RTKQ_8139CPLUS      has different register layout (for re(4))
  - RTKQ_8169NONS       (original 8169) requires some settings on init
  - RTKQ_PCIE           requires different settings in setmulti
  so that we don't have to check each hwrev values or types everywhere
  and newer variants will also work without changes if they don't
  have other quirks
  (sc_rev is unchenged for now for reference to the Realtek's driver)
- don't check hwrev register in re_pci_match() but check
  only PCI_VENDER(), PCI_PRODUCT() and PCI_REVISION()
  so that we no longer have to map pci space there
- add a new HWREV value for another 8168 variant
- try to map PCI mem space more properly
- remove (probably unneeded) ifp->if_baudrate initialization

Tested on a newer 8168 variant by Dennis den Brok on tech-kern,
and also tested on 8139 and 8169C on macppc, and 8139C+ on landisk
by me.
2007-03-21 12:17:31 +00:00
tsutsui 298a18f6e7 Apply MI softintr(9) patch before it becomes rotten. Untested.
See also:
http://mail-index.netbsd.org/port-atari/2007/03/07/0000.html
2007-03-21 10:56:26 +00:00
tsutsui 1a9fc2f390 Use make some void * variables char * instead of sprinkling casts
for pointer arithmetics.
2007-03-21 10:26:19 +00:00
wiz 5c538d8a46 New sentence, new line. Sort SEE ALSO. Fix Xrefs. 2007-03-21 07:08:14 +00:00
wiz d536a41fdd Sort SEE ALSO. 2007-03-21 07:07:03 +00:00
wiz 43378ed02e Fix xref, sort SEE ALSO. 2007-03-21 07:06:44 +00:00
wiz 6e6a560b22 Drop trailing whitespace. 2007-03-21 07:04:09 +00:00
wiz cda43070d3 Bump date for previous. 2007-03-21 07:03:18 +00:00
xtraeme 14d38361d8 Disable debug. 2007-03-21 06:50:36 +00:00
xtraeme bfde31a42f Remove the MSR read IPI handler, there won't be any driver that will
use it, and we can see if the values are ok in the CPUs in the write
operation.

Suggested by YAMAMOTO Takashi.
2007-03-21 06:36:42 +00:00
plunky 3d47fad4b8 disallow sending command packets of unexpected length 2007-03-21 06:22:07 +00:00
xtraeme 91829be711 There's no need to use MSR_CPU_BROADCAST_READ in clockmod_getstate(),
because clockmod_setstate() will do it for us.
2007-03-21 05:27:49 +00:00
isaki 59684b33a0 Make it compilable with DEBUG. 2007-03-21 05:15:50 +00:00
dan ce901237e7 teach bce(4) about being an rnd(4) source 2007-03-21 04:56:39 +00:00
jmcneill ad0dc10411 Try not to free NULL pointers. 2007-03-21 04:52:14 +00:00
garbled c81799dbbe Create /dev/residual on prep 2007-03-21 04:26:07 +00:00
xtraeme 00974998e3 Use the CPUID2STEPPING macro. 2007-03-21 04:17:59 +00:00
garbled cfa6e1cb25 Add a read entry point to this driver. There are two minor devices
associated with this, 0, the nvram device, and now 1, the residual
device.  The devices allow the user to directly read the contents of the
kernel copy of the nvram, and the residual data respectively.  There is
no provision for write.
2007-03-21 04:13:53 +00:00
xtraeme 5da15c6409 Do not use cpu_id and cpu_feature, they are not available for i386
(or have different types), use CPUID.
2007-03-21 04:01:59 +00:00
dyoung 7663f13790 KNF. 2007-03-21 03:51:30 +00:00
dyoung 46abb5c0e8 Remove whitespace from ends of lines. 2007-03-21 03:39:41 +00:00
xtraeme feef686ef0 Fix previous, use %zd. 2007-03-21 03:22:16 +00:00
dyoung be7bb25d74 Make all debug messages use GRE_DPRINTF(). Get rid of a redundant
if_ierrors++.  Change (type *)0 to NULL.  Get rid of unnecessary
casts to void *.
2007-03-21 03:18:08 +00:00
macallan fb308a7a59 - pass a sane boundary parameter to bus_dmamem_alloc
- sprinkle aprint_error()
2007-03-21 03:10:31 +00:00
christos efa6baa28d return NULL instead of core-dumping when we could not open the services file/db 2007-03-21 02:35:39 +00:00
macallan ea7f3505eb we return addresses, not page numbers in *mmap() methods 2007-03-21 02:11:44 +00:00
dyoung 271d77fa58 If we do not recognize the protocol of a received packet, then
increase ifi_noproto.  If the GRE header contains routing options,
increase the input-error count, ifi_ierrors.

While I am here, make some cosmetic changes: remove unnecessary
'proto' argument from gre_input3().  Shorten some staircases.
2007-03-21 01:56:05 +00:00
garbled bbcca898c4 Add a second check to the prep-pci-intrmap test, to make sure the dictionary
actually contains entries.  It is apparently possible to get a non-null,
but empty dictionary back.  This seems to happen if you inject a ppb-card
on pci0 when you also have a prep pci1 at a later device function.  With
this, my fxp card works in any slot on my 7043-140.
2007-03-21 01:34:32 +00:00
xtraeme 7ec39d90bf Mention INTEL_ONDEMAND_CLOCKMOD option, bump date. wiz please review. 2007-03-21 00:56:31 +00:00
xtraeme 545c3b7ca9 Don't build msr_ipifuncs on Xen, fixes the build with XEN2_DOM0. 2007-03-21 00:16:52 +00:00
ad d68cf1be1a - When signalling waiters, try not to awaken them immediatley. If we hold
the mutex that the waiters are using to synchronise, then transfer them
  to the mutex's waiters list so that the wakeup is deferred until release
  of the mutex. Improves the timings for CV sleep/wakeup by between 30-100%
  in tests conducted locally on a UP system. There can be a penalty for MP
  systems when only one thread is being awoken, but in practice I think it
  won't be be an issue.
- pthread_signal: search for a thread that does not have a pending wakeup.
  Threads can have a pending wakeup and still be on the waiters list if we
  clash with an earlier pthread_cond_broadcast().
2007-03-20 23:49:58 +00:00
ad b0427b61fb - Maintain a per-thread pointer to the last mutex acquired by the app, to
be used only as as a hint. Clear the pointer when releasing the mutex.
- When releasing a mutex, wake all waiters. Makes it possible to tranfer
  waiters from another object to a mutex.
2007-03-20 23:33:10 +00:00