Commit Graph

101297 Commits

Author SHA1 Message Date
itojun 1146a80999 more NO_xx cleanup. can't catch these by openssl-unifdef.pl 2002-08-17 21:41:59 +00:00
thorpej 3e3fdc01e9 * After testing for DD on a descriptor, and finding it clear,
sync that descriptor with PREREAD to make sure that it is evicted
  from the data cache.  From Allen Briggs.
* With the above bug fixed, stop using BUS_DMA_COHERENT, resulting in
  a fairly decent performance improvement on systems where BUS_DMA_COHERENT
  causes descriptors to be accessed uncached (most painful in wm_start()).
2002-08-17 20:58:04 +00:00
thorpej a7d44c2503 Use separate function pointers for dmamap_sync pre- vs post- operations.
Change the bus_dmamap_sync() macro to test the ops argument against pre-
and post- constants.  The compiler will optimize out dead code because
of the constants.  Since post- operations are not needed on ARM (except
for ISA bounce buffers), this eliminate a large number of function calls
which are noops, each of which cost at least 6 cycles just in the call
and return overhead (not to mention whatever other useless work the
compiler decides to do in the callee).
2002-08-17 20:46:26 +00:00
thorpej 1b907e1877 Local label fixup. 2002-08-17 19:54:30 +00:00
briggs c7ee5cd55e Compile properly without DIAGNOSTIC defined. 2002-08-17 19:19:57 +00:00
thorpej dafc960ed6 Local label fixup. 2002-08-17 19:00:26 +00:00
yamt b3b13795b1 bring in a note about portability from openbsd. 2002-08-17 18:41:36 +00:00
yamt b77d0176be bring in HISTORY from openbsd. 2002-08-17 18:38:46 +00:00
yamt 514d4ffd02 note that setgid doesn't change supplementary groupids.
from openbsd.
2002-08-17 18:22:21 +00:00
yamt 572225a82f document RB_POWERDOWN.
from OpenBSD.
2002-08-17 17:52:54 +00:00
mjacob 672c41205f If we're using ancient (pre 1.17.0) 2100 f/w (for the cards that cannot
load f/w images > 0x7fff words), set ISP_FW_ATTR_SCCLUN. We explicitly
don't believe we can find attributes if f/w is < 1.17.0, so we have to
set SCCLUN for the 1.15.37 f/w we're using manually- otherwise every
target will replicate itself across all 16 supported luns for non-SCCLUN
f/w.
2002-08-17 17:31:53 +00:00
yamt dbb4e0d985 - move return values info into RETURN VALUES section.
- note that O_SHLOCK and O_EXLOCK are not portable.
from OpenBSD.
2002-08-17 17:25:37 +00:00
briggs 126f6cf9bc Add a new option EVBARM_BOARDTYPE to differentiate between different
evbarm ports.  Inline _splraise/_spllower/splx for i80321 and iq80310
for more performance.
2002-08-17 16:42:20 +00:00
thorpej 003b8e8bca More local label fixups. 2002-08-17 16:36:31 +00:00
wiz b96a6bccda regen (+pci) 2002-08-17 11:45:04 +00:00
wiz 5f9f466ecc regen (tty for sab, hi petrov) 2002-08-17 11:44:17 +00:00
isaki ea16a0bcb3 fix mode and group of /dev/reload 2002-08-17 05:28:54 +00:00
briggs 20267a208f Do not trim 'offset' from 'len' in _bus_dmamap_sync_linear(). 2002-08-17 05:14:10 +00:00
thorpej 7cbd25232f Use correct-for-ELF local labels. 2002-08-17 03:14:47 +00:00
thorpej 7dfd5a8bef 2002-08-16 Nick Clifton <nickc@redhat.com>
* gprof.c (main): Remove spurious test for __alpha__.
2002-08-17 03:03:53 +00:00
uwe fdc57c1775 Add missing slash to /* notyet * 2002-08-17 02:23:18 +00:00
chris 725f3ca1a7 correct comment, it's r0, not a0. 2002-08-17 01:23:36 +00:00
chris d8ac0fb3aa pull in ffs.S from libc for arm.
The main benefit is that ffs always runs in constant time.
2002-08-17 01:22:33 +00:00
briggs d86c947b8c Inline bus_dma_inrange() and bus_dmamap_sync_*(). 2002-08-17 01:15:15 +00:00
thorpej 50fe583069 Must ... micro ... optimize!
* Save an instruction in the transition from idle to have-process-to-
  switch-to, and eliminate two instructions that cause datadep-stalls
  on StrongARM And XScale (one in each idle block).
* Rearrange some other instructions to avoid datadep-stalls on StrongARM
  and XScale.
* Since cpu_do_powersave == 0 is by far the common case, avoid a
  pipeline flush by reordering the two idle blocks.
2002-08-17 01:08:21 +00:00
chris 1334ab7d1e following Jason's change to _xscale, convert bpl's to bhi's, saves looping more than needed in some cases. 2002-08-17 01:02:38 +00:00
bjh21 47226343a9 Be consistent about the type of idle(). 2002-08-17 00:01:23 +00:00
itojun 27dfc9236f style (tab around $NetBSD$) 2002-08-16 23:54:52 +00:00
bjh21 72f31d9112 If we're treating the MEMC as a TLB, there's no need to completely reload
it in pmap_activate().  Instead, let's leave it empty and let pages be
faulted into it on demand.  This improves the context switch latency
somewhat, at least for small processes.
2002-08-16 22:51:43 +00:00
itojun 4005a5250f set h_errno properly if internal string manipulation fails. 2002-08-16 21:54:00 +00:00
mjacob bb6cb67b54 Further fix problems with 23XX ISR handling and correctly initialize the
23XX to use ZIO in preference to fast posting.
2002-08-16 21:43:14 +00:00
bjh21 4d7743ff17 According to Chuck Silvers, pmap_copy_page() and pmap_zero_page() don't
need to mess with the referenced and modified flags, since they're only
called when a page is being initialised, and is about to have them cleared.
Make this so.
2002-08-16 21:16:48 +00:00
itojun 2abe377059 defend against malicious line in ut_line, which could cause unwanted
writes to anything under /dev.  revoke setuid/gid privs earlier.
From: xs@kittenz.org
2002-08-16 20:21:48 +00:00
martin 39acbf03ed Avoid exit(0) to play more nicely with rc_fast_and_loose.
Noted by Greywolf on tech-userlevel.
2002-08-16 18:05:19 +00:00
petrov 7de59e9a76 Add tty for sab. 2002-08-16 17:56:56 +00:00
thorpej ebff575bc3 * Add a new machdep.powersave sysctl, which controls the use of
the CPU's "sleep" function in the idle loop.
* Default all CPUs to not use powersave, except for the PDA processors
  (SA11x0 and PXA2x0).

This significantly reduces inteterrupt latency in high-performance
applications (and was good to squeeze another ~10% out of an XScale
IOP on a Gig-E benchmark).
2002-08-16 15:25:53 +00:00
heinz 306c75457d regen 2002-08-16 15:08:08 +00:00
heinz fb31736257 Add Lucent/Agere FW322/323 IEEE 1394 controller 2002-08-16 15:03:02 +00:00
fredette a3961f4a15 This cleans up interrupts with respect to GSC bus chips and the devices
they contain.  IRQ information for these has been removed from the
kernel configuration file.  GSC bus chips now choose an available CPU
IRQ for themselves, and know IRQ information for all of the devices
they may contain.  Minor autoconfiguration changes support this.

Renamed the old-style vmstat interrupt counters to say "ipl" and not
"irq", since they've been disconnected from irq numbers.  Also provide
a function to allocate an irq bit from an interrupt register, and a
function to report the next ipl bit that will be allocated.
2002-08-16 15:02:39 +00:00
itojun 44ca8f4da1 use sizeof, avoid duplicated use of MAXDNAME 2002-08-16 13:59:39 +00:00
itojun 1173373b45 be more picky about size arg 2002-08-16 12:23:20 +00:00
itojun 1e1a07972c lint clean 2002-08-16 12:20:19 +00:00
itojun bb80ac654a avoid sprintf. use snprintf with picky error traps. 2002-08-16 12:18:06 +00:00
itojun 0de70db9cd check for pointer overwrap 2002-08-16 12:10:37 +00:00
itojun b51bffa186 correct cases with zero in the middle
(0x00ff00ff should be "0.255.0.255", not "255.255")
2002-08-16 12:05:01 +00:00
itojun 0b6566bcda avoid sprintf. use snprintf. simplify cases where 1st arg is 0. 2002-08-16 12:03:41 +00:00
is a71878134b IDE drives are no longer configured as sdN 2002-08-16 12:01:39 +00:00
itojun c6a3499c08 use snprintf. don't duplicate MAXDNAME (use sizeof). 2002-08-16 11:53:19 +00:00
itojun 90a8853f46 use strlcat 2002-08-16 11:49:57 +00:00
itojun f425242dc9 fix weird indent for comment lines 2002-08-16 11:48:25 +00:00