Commit Graph

157871 Commits

Author SHA1 Message Date
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
jnemeth 618e615736 move definition of FTC_FLIP to auxioreg.h to mirror sparc 2007-03-27 10:13:12 +00:00
jnemeth f2e950685d PR/36058 -- fix check for group/other writable home directories from
Jukka Salmi
2007-03-27 08:37:58 +00:00
msaitoh f727e5ef27 Workaround for 82541 Eratta 29 and 82547 Eratta 28.
These devices have to reset the PHY before reset the MAC.

Reported and tested by salo.
2007-03-27 01:56:41 +00:00
christos a5346961e8 use memcpy instead of strlcpy because we want to truncate the string. 2007-03-27 01:29:44 +00:00
jmcneill 68557987f6 Add AGPv3 support to VIA AGP driver from FreeBSD.
I can now use DRI w/ AGP enabled on my r300.
2007-03-27 00:34:16 +00:00
garbled 47dfabcdf7 Add support for VIA V-TECH ata raid. Tested on 4.0 with RAID0, RAID1 and
SPAN over a pair of sata drives on a VT8237A SATA Controller.
2007-03-27 00:10:20 +00:00
garbled 4398c0d8cd The VT8237A SATA Controller uses chip_map_7, not 0, tested and confirmed
working on my machine.  Also when a via controller is set to RAID mode,
it sets the pci_subclass to raid.  Notice this and set ATAC_CAP_RAID.
2007-03-27 00:04:04 +00:00
hubertf df0f62d579 Remove unneeded #include <getopt.h>
From: Slava Semushin <php-coder@altlinux.ru>
2007-03-26 23:08:29 +00:00
hubertf 3bfc0c42ee Remove duplicate #include's
From: Slava Semushin <php-coder@altlinux.ru>
2007-03-26 22:52:44 +00:00