Commit Graph

157880 Commits

Author SHA1 Message Date
rumble 9b1a76ecf8 The wd33c93 chip appears to be clocked at 20MHz for all systems with a HPC. 2007-03-30 19:04:40 +00:00
pooka de976b706d g/c some commented ltsleep calls accidentally left from newlock2 adaptation 2007-03-30 18:25:02 +00:00
pooka 115fa924ee * abstract ASYNCBIOREAD and let callers freely issue a callback called
from putop.  even though there's only one user currently, makes code
  more readable
* move "delta" to a standard parameter in vntouser and get rid of the
  specialcase vntouser_delta
2007-03-30 17:48:57 +00:00
christos e6e1d4eb1a PR/36102: Yojiro UO: Restore revision 1.142's way of reading the descriptor
because uplcom hangs otherwise. Also reported by Anon Ymous.
2007-03-30 16:52:12 +00:00
he b1bfbbc629 Drop `const' from a couple of declarations to comply with the latest
update of _def_time.c, ref. PR#10877.
2007-03-30 15:55:38 +00:00
ad 0ac3a31ea3 Cosmetic changes. 2007-03-30 11:06:58 +00:00
ad 3d5b66ed02 Always include kernel_lock so that LOCKDEBUG checks can find the symbol. 2007-03-30 11:05:59 +00:00
uwe 58951c715e In sh_clock_init just make sure that rtc oscillator is running, but
don't start rtc, so that rtc(4) can report wall time as invalid if
clock was not running on attach.
2007-03-30 00:37:51 +00:00
uwe 3ce2a9cb4d On attach check if clock is running, mark it invalid if not. Return
error from gettime method if clock is not valid.  Mark clock as valid
on settime.

Report more debugging info.
2007-03-30 00:32:58 +00:00
uwe a4d20321d9 Re-enable interrupts in tlb_exception too. 2007-03-30 00:12:54 +00:00
uwe 86d3d1e448 Include #include <sh3/devreg.h> like other *reg.h do. 2007-03-29 23:09:41 +00:00
pooka 78762a532d in userdead assign waiter return value only if there is a waiter for
a particular request
2007-03-29 22:11:43 +00:00
wiz bb711a3c98 Fix typo. Noted by Yorick Hardy. 2007-03-29 18:35:08 +00:00
ad 4d04f2f136 - Note that cv_has_waiters() can only be used to assert that there are
waiters sleeping non-interruptably (i.e., in cv_wait()). Prompted by
  a discussion with pooka@.
- Minor cosmetic changes.
2007-03-29 17:40:36 +00:00
ad 5714ab2718 Make cv_has_waiters() return type bool. 2007-03-29 17:39:34 +00:00
ad 79da439b94 - cv_wakeup, cv_broadcast -> cv_signal where appropriate
- Update some comments.
2007-03-29 17:37:13 +00:00
ad 4911263df8 cv_wakeup -> cv_signal 2007-03-29 17:35:17 +00:00
ad 6cf46baa77 - cv_wakeup: remove this. There are ~zero situations where it's useful.
- cv_wait and friends: after resuming execution, check to see if we have
  been restarted as a result of cv_signal. If we have, but cannot take
  the wakeup (because of eg a pending Unix signal or timeout) then try to
  ensure that another LWP sees it. This is necessary because there may
  be multiple waiters, and at least one should take the wakeup if possible.
  Prompted by a discussion with pooka@.
- typedef struct lwp lwp_t;
- int -> bool, struct lwp -> lwp_t in a few places.
2007-03-29 17:34:39 +00:00
ad 9982390dd6 lwp::l_acflag is no longer used. 2007-03-29 16:51:21 +00:00
pooka 6ce49d93c1 convert to MALLOC_JUSTDEFINE 2007-03-29 16:30:07 +00:00
pooka 3f2dd92fb2 document MALLOC_JUSTDEFINE and MALLOC_JUSTDEFINE_LIMIT 2007-03-29 16:29:37 +00:00
pooka 9e407afead Introduce MALLOC_JUSTDEFINE{,_LIMIT} which act like their JUSTless
counterparts apart from not adding the new type to the link set and
hence not registering automatically at boot time.  This can be used
to avoid a separate #ifdef _LKM path in some cases.
2007-03-29 16:29:08 +00:00
pooka 78693816f2 Convert spinlocks & sleep/wakeup to newlock2 locking stuff. Fix a
bunch of bugs.

* park structures are now always allocated from a pool instead of a
  mixed stack/malloc allocation
* get rid of the whole adjbuf concept, always just alloc the maximal
  amount of memory to satisfy a request
* little regression: don't allow interrupting wait from file system
  to userspace; this had problems already before, but now the problems
  really started to shine through.  I'll try to make this work again
  some day.
* fix bmap to return a sensible value in runp
2007-03-29 16:04:26 +00:00
christos 5d11cdf035 explain printf's positional parameter support. 2007-03-29 14:28:15 +00:00
dillo 6c83a28313 Now that all DRM drivers build (thanks jmcneill), readd them. 2007-03-29 13:11:14 +00:00
dillo 46009d7e0f Fix include paths. Now all drm drivers build. 2007-03-29 13:09:48 +00:00
pooka dd4643d880 Remove check against null parameter along with the XXX comment wondering
why the check was there.  CID 4408
2007-03-29 12:54:54 +00:00
pooka 4d4d2d4517 fix definition of runp in VOP_BMAP 2007-03-29 12:06:58 +00:00
jmcneill e741359891 Fix include paths, mgadrm compiles now. 2007-03-29 11:42:39 +00:00
jmcneill 4ce279101e In drm_remove_magic, free the magic entry when it is found instead of
attempting to free a NULL reference in the error case. From Yorick Hardy.
2007-03-29 11:31:06 +00:00
skrll b7b1f2ee87 Note arm status for yamt-idlelwp. 2007-03-29 10:54:14 +00:00
dillo d571ffa806 Revert previous, mgadrm does not compile. 2007-03-29 08:44:23 +00:00
dillo c618a0d039 Add DRI drivers. 2007-03-29 08:27:01 +00:00
adrianp b02eb0fb91 A number of functions do not validate the length of arguments passed.
As a result of this a user could supply a bad 'sockaddr' structure to
clnp_route() via connect(2).
Issue found by Christer Oberg and patch from christos@ (NetBSD-SA2007-004)
2007-03-29 08:19:20 +00:00
yamt a7b58a5e90 "ETA: 3.0" -> "ETA: ?" 2007-03-29 03:40:21 +00:00
uwe 39792f9d55 Mark inline functions we call while running on P2 with
__attribute__((always_inline)) or gcc might decide not to inline them,
resulting in P2->P1 call while we mess with the cache, and kernel
would just hang immediately on boot.
2007-03-29 01:51:49 +00:00
uwe 5f9be1916f G/c ancient workaround that has been commented out for ages. 2007-03-28 23:59:00 +00:00
manu 7e349f87af Add support for LC_TIME, from Joachim Kuebart, through PR lib/10877 2007-03-28 19:05:47 +00:00
uwe c32a7179d7 Document lines=0 and maxwidth=0 2007-03-28 14:45:35 +00:00
jmcneill 11827f045a Introduce options DRM_NO_AGP and DRM_NO_MTRR, so I can run this on
platforms that don't provide these services.

In drm_mmap, don't wrap the return value with atop() if we're on macppc.

While we're here, fix:
	pci_intr_establish(&dev->pa.pa_pc, ...);
to:
	pci_intr_establish(dev->pa.pa_pc, ...);

The former doesn't even compile on macppc, and I'm amazed that it works at
all anywhere else.
2007-03-28 11:29:36 +00:00
simonb 63c0e43159 Whitespace nit. 2007-03-28 03:55:19 +00:00
christos 06519c05da PR/36092: B K: algorithmic inefficiency in bin/test/test.c:t_lex
test(1) scans for "operators" linearly in an array using strcmp() to
find a match. Since the list of "operators" is fixed, split them
into one and two character ones, and ones that start with a `-' and
ones they don't. This way we can optimize the compare function to
just check for one or two characters. Sort and use bsearch(3). We
could have used a single sorted array and bsearch(3), to save some
complexity, but I decided to be a bit fancier.
2007-03-28 01:47:25 +00:00
wiz 6c48b6bb87 Improve based on comments by Yorick Hardy:
. Describe sysctl nodes
. Add HISTORY and AUTHORS sections
Bump date.
2007-03-27 23:27:54 +00:00
jmcneill f99eecc8b2 Make this compatible with tdfxdrm. 2007-03-27 22:44:42 +00:00
wiz 7e4efa3040 Add pnozz, zx, and magma to enumeration. From Stephan Meisinger in
PR 36089.
Flesh out SEE ALSO.
Bump date.
2007-03-27 22:38:25 +00:00
jmcneill 1cd076928b Instead of having a lookup table of devices that support AGP V3, use the
capabilities register to determine the chipset's supported AGP mode. We
still fallback to V2 compatibility mode when necessary.
2007-03-27 20:57:46 +00:00
salo 1eaca7c5df fix typos in last, Eratta->Errata 2007-03-27 13:13:49 +00:00
pooka 92f2958999 regen 2007-03-27 12:42:31 +00:00
pooka 4823cfcfaf add GeForce Go 7600 2007-03-27 12:41:39 +00:00
jnemeth 45ed5307a6 fix a couple of syntax issues in sparc code from Tobias Nygren 2007-03-27 10:17:48 +00:00