Commit Graph

156031 Commits

Author SHA1 Message Date
macallan f3154089bb - don't go CUDA_IDLE before calling message handlers, that way we force all
writes they might issue to be delayed which keeps us from deadlocking
- don't splhigh() in cuda_intr() - usually we're there already. Instead do
  the splhigh()/splx() dance when we're polling
- remove some leftover debugging gunk
2007-02-05 18:26:06 +00:00
apb f7004b0cbc Whenever we try to parse the output from make, run make with the -B
flag.  This ensures that -j<N> isn't accidentally inherited from the
environment, because the "--- foo ---" headers printed with -j<N> would
interfere with parsing the output.
2007-02-05 18:26:01 +00:00
rpaulo b552802596 It's no longer basesrc. 2007-02-05 18:12:43 +00:00
rpaulo c7bc0c80e8 * postfix to 2.3.7 imported.
* Remove the postfix development version. We really don't need to be
  following it.
2007-02-05 17:56:56 +00:00
rpaulo 9cecbd0179 Merge postfix-2.3.7 2007-02-05 17:56:11 +00:00
rpaulo 231b0ce3a6 postfix 2.3.7 2007-02-05 17:36:15 +00:00
elad 3dcf1cc6ec Style nitz. 2007-02-05 17:36:12 +00:00
rpaulo 87cc82cf9b postfix 2.3.7 2007-02-05 17:35:53 +00:00
chs f0cdf39d80 add back a mistakenly removed vput(). 2007-02-05 16:03:53 +00:00
njoly e2ca295958 Fix compilation on 64bit platforms.
ok by elad.
2007-02-05 15:37:20 +00:00
gdt 3a8d10addf Add Novatel Merlin, used in VZ V620.
From John Nielsen on freebsd-mobile.
Not tested, but almost certainly better than attaching as ugen.

FreeBSD has a UQ_ASSUME_CM_OVER_DATA quirk for this device; I can't
figure out what that means.
2007-02-05 15:13:28 +00:00
ad 20fd6754cf Sync with latest changes. 2007-02-05 15:04:21 +00:00
rillig f59fec0d57 Mention the word "regular file" more clearly.
The term "append-only" directory was misleading.
2007-02-05 14:54:31 +00:00
rillig a70aaa0ac5 Added a HISTORY section. 2007-02-05 14:48:25 +00:00
rillig ff925d7fe2 typo. 2007-02-05 14:34:29 +00:00
gdt 7d88c942e2 regen 2007-02-05 14:08:51 +00:00
gdt 8929326988 mark second novatel id as NOVATEL2 2007-02-05 14:08:16 +00:00
gdt 43c45b264c add second Novatel id, for CDMA chip as found in Verizon V620.
From John Nielsen on freebsd-mobile.
2007-02-05 14:05:48 +00:00
kent 5dd4ff1479 If both of AZALIA_DEBUG and AZALIA_DEBUG_DOT are defined,
a DOT file for Graphviz representing the widget structure
is printed.
2007-02-05 13:52:26 +00:00
yamt cb2e7baf50 have a mowner dedicated to nfs reply cache. 2007-02-05 11:55:45 +00:00
yamt 7224686465 nfsrv_updatecache: actually use reply caches for connection oriented protocols. 2007-02-05 11:55:03 +00:00
yamt f6217feae5 kmem_alloc: fix a null dereference reported by Chuck Silvers. 2007-02-05 11:53:46 +00:00
dyoung f3a37fb5de Cosmetic: use the name PCI_INTERRUPT_REG instead of the number
0x3c.
2007-02-05 07:48:20 +00:00
macallan a64a26d4aa fix fallout from making OF_interpret compatible with the other OF platforms
noticed by Leon Zadorin
2007-02-05 04:02:01 +00:00
elad f0d477cb85 Add perusertmp. Pointed out by Geoff Wing, thanks! 2007-02-05 02:34:30 +00:00
elad d488983ed2 Only override /tmp if needed. From perry@. 2007-02-05 01:47:48 +00:00
dyoung 4620d7566c Cosmetic: KNF. In debug messages, use "%s: ...", __func__ idiom
to print subroutine names instead of hard-coding names.
2007-02-04 23:39:02 +00:00
elad 6c98db2b70 Much cleaner, shorter, and simpler, skeleton for an LKM.
Not connected to the build.
2007-02-04 22:53:09 +00:00
elad f053782e48 Make this compile. 2007-02-04 22:34:57 +00:00
cbiere cd788d025e * Prevent out-of-bounds read tsptype if a packet with
an unknown msg_type is received.
 * Check the received packet size.
 * Use strncpy() instead of strlcpy() so that we don't
   send gibberish from the stack.
 * No need to bind().
 * htons()/htonl() use uint16_t/uint32_t not u_short/u_long.
2007-02-04 22:21:53 +00:00
cbiere 1b1ee3c7ce Use size_t not int for strlen(). 2007-02-04 22:11:13 +00:00
cbiere 2ed96b7598 * timed and timedc:
* Sprinkle const.
   * Use EXIT_FAILURE instead of 1.
   * Use err(), errx().
   * Use calloc() instead of malloc()+memset().
 * timedc:
   * Non-terminated hostnames or unknown tsp_type could
     cause a crash due to out-of-bounds reads in msite().
   * Check the received packet size.
   * Merged duplicated code into functions.
   * Moved variables into the relevant scopes.
   * Use connect() so that only the receiver can reply,
     send()/recv() can be used and rejected packets
     are immediately noticed by recv() instead of causing
     timeouts.
   * Updated manpage.
2007-02-04 21:17:01 +00:00
dyoung fa956bd2bd Fix a bug in Cardbus power activation.
Most Cardbus bridges supported by pccbb(4) fire a power-cycle
interrupt when the power state of a cardslot changes from 'off' to
'on'.  TI bridges fire a power-cycle interrupt on both on->off and
off->on changes.

When pccbb_power() powered-down a cardslot, it did not wait around
for the power-cycle interrupt.  When pccbb_power() powered-up a
cardslot, it did wait for the interrupt.  If a pccbb_power(UP)
followed a pccbb_power(DOWN) very closely, pccbb_power() used to
interpret the power-cycle interrupt for the up->down transition as
"power-up complete," read the power-state bit and, finding that
power had NOT been activated, complain, "cbb0:  power on failed?"
Then pccbb_power() exited before power-activation was complete,
falsely indicating that the power-activation *was* complete.  After
that, a driver attach/enable routine would blithely configure a
card that was not fully powered-up.  An operator who ran a command
such as 'ifconfig rtw0 down up' or 'ifconfig ath0 down up' would
read 'cbb0: power on failed?' in the system log, and their NIC
would misbehave.

This excerpt from a comment in the source should suffice to explain
how I fixed the bug,

        /*
         * Wait as long as 200ms for a power-cycle interrupt.  If
         * interrupts are enabled, but the socket has already
         * changed to the desired status, keep waiting for the
         * interrupt.  "Consuming" the interrupt in this way keeps
         * the interrupt from prematurely waking some subsequent
         * pccbb_power call.

And this explains why this patch will work for Ricoh bridges that
do not fire an interrupt on the on->off transition:

         * XXX Not every bridge interrupts on the ->OFF transition.
         * XXX That's ok, we will time-out after 200ms.
         *
         * XXX The power cycle event will never happen when attaching
         * XXX a 16-bit card.  That's ok, we will time-out after
         * XXX 200ms.
         */

M. Warner Losh and Charles M. Hannum provided valuable input on
this patch.
2007-02-04 21:04:37 +00:00
christos 847a4f4ee5 warns=4 2007-02-04 20:54:02 +00:00
christos 6a075814d9 - close the utmpx file.
- sprinkle void
- use size_t consistently.
2007-02-04 20:53:19 +00:00
dyoung dc52954598 sc_pwrcycle is shared between the interrupt handler and Cardbus
event thread, so make it volatile.
2007-02-04 20:52:13 +00:00
elad 9ac600139e Initialize pathname_t objects to NULL. 2007-02-04 20:33:02 +00:00
dsl 8732462d65 Add code to ensure that .if/.endif are correctly nested with .for/.endfor
and also include files don't have mismatched .if/.endif
It has been suggested that make used to have this test, but I can't
remember removing any code that might have performed it.
2007-02-04 19:23:49 +00:00
xtraeme a5c172888b Use mkdir -p to create ${per_user_tmp_dir}, otherwise if /private (this is
the default) doesn't exist there won't be any error.
2007-02-04 18:28:26 +00:00
xtraeme 5e3e443d5a Add the following pseudo-devices:
* lockstat - see lockstat(8)
* swwdog - see swwdog(4)
2007-02-04 17:49:02 +00:00
xtraeme 470eb9feca Install the perusertmp file. 2007-02-04 16:36:07 +00:00
jmcneill 95e6498e25 Note the origin (hi FreeBSD!) of a couple clever bits of Xbox
initialization code. No functional changes.
2007-02-04 15:26:26 +00:00
elad dc3fb2d32c Bump libutil minor. 2007-02-04 15:10:59 +00:00
chs 0507747213 more fixes for the new vnode locking scheme:
- don't use SAVESTART in calls to relookup() from unionfs,
   just vref() the desired vnode when we need to.
 - fix locking and refcounting in the unionfs EEXIST error cases.
 - release any vnode locks before calling VFS_ROOT(), vfs_busy() is enough.
   this allows us to simplify union_root() and fix PR 3006.
 - union_lock() doesn't handle shared lock requests correctly,
   so convert them to exclusive instead.  fixes PR 34775.
 - in relookup(), avoid reusing "dp" for different purposes,
   the error handling wasn't right.  (actually just get rid of dp.)
   also, change relookup() to ignore LOCKLEAF and always return the
   vnode locked since the callers already expect this.
2007-02-04 15:03:20 +00:00
chs 6721fd793e in nfsrv_rename(), change vput(fdirp) back to vrele() since the dirp
returned from nfs_namei() is not locked in this case.  fixes PR 35542.
also, apply the same fix here as was made in rename_files() to handle
the case when dvp and vp are the same.
2007-02-04 14:48:51 +00:00
rpaulo 789717052b Add /etc/login.conf. 2007-02-04 14:45:34 +00:00
rpaulo ea9a233098 Add login.conf. 2007-02-04 14:44:34 +00:00
rpaulo 0231f1b5fe Add an commented out login.conf with a simple example based on OpenBSD.
Requested by Elad.
2007-02-04 14:43:03 +00:00
elad 5e2e282f9c Add support for per-user /tmp.
Enabled via per_user_tmp in /etc/rc.conf (default off).

See security(8) and rc.conf(5) for more details.

Lots of input from thorpej@ & christos@, thanks!
2007-02-04 08:19:26 +00:00
elad 3044852cc5 The hashing routines (MD5File() and co.) can do dynamic allocation, so
take advantage of that instead of an ugly hard-coded MAXHASHLEN limit
that needs updating.

I think this was suggested by cube@ years ago.
2007-02-04 08:03:18 +00:00