Commit Graph

160911 Commits

Author SHA1 Message Date
ad 9d841d6e31 - Remove crud.
- Don't use the ci_self150 hack.
2007-08-05 10:50:26 +00:00
tron c00e7b9809 Remove entry for recent mpt(4) changes because they have been pulled up. 2007-08-05 10:29:05 +00:00
pooka 4d42eff4e1 In uao_get(), drop object lock only after dropswap to avoid KASSERT panic.
Should fix tmpfs problem reported by riz on current-users.  yamt ok.
2007-08-05 10:19:23 +00:00
ad 2818ab2bd1 - Align assembly routines on 32-byte boundaries.
- Don't bother doing anything special for CPUVAR() when !MULTIPROCESSOR.
2007-08-05 09:56:48 +00:00
yamt 1f0f803e45 use kpause rather than lbolt. 2007-08-05 09:40:39 +00:00
dsieger 8438931b2b From Zafer Aydogan: Fix a typo: s/distination/destination/ 2007-08-05 09:31:24 +00:00
macallan 0591adcde1 fix another typo, now wsfb on ofb should work properly 2007-08-05 04:36:18 +00:00
macallan 84b4b152a9 fix typo - fbsize is /height/ * stride. Doh. 2007-08-05 03:23:02 +00:00
rmind c8c024369c Improve per-CPU support for the workqueue(9):
- Make structures CPU-cache friendly, as suggested and explained
   by Andrew Doran.  CACHE_LINE_SIZE definition is invented.
 - Use current CPU if NULL is passed to the workqueue_enqueue().
 - Implemented MI CPU index, which could be used as an index of array.
   Removed linked-lists usage for work queues.

The roundup2() function avoids division, but works only with power of 2.

Reviewed by: <ad>, <yamt>, <tech-kern>
2007-08-05 01:19:17 +00:00
rmind f6bcdcfe0c Forgot to mention import of TCP socket buffers autosizing.. 2007-08-05 00:21:58 +00:00
jnemeth 1c35d39ad7 PR/36732 - Jim Bernard -- delete /usr/libexec/uucp/uucico from list of shells 2007-08-05 00:10:37 +00:00
macallan 42284ad7c0 add shadow fb support
now genfb is actually usable even on slow PCI framebuffers. Yay Jared :)
2007-08-04 23:51:37 +00:00
ad 7fef85939a Note libpthread changes. 2007-08-04 23:30:05 +00:00
tron 2a7b5e659f Fix some KNF glitches pointed out by Garrett D'Amore. 2007-08-04 22:01:06 +00:00
tsutsui 72e8fd4495 Make clockintr() return 1 since it's always handled so that
clock interrupt is properly acounted by evcnt(9) in isa_irq.S.
2007-08-04 20:14:21 +00:00
kristerw d0d36b6101 Update includes so that this builds for USE_FORT=no too. 2007-08-04 19:37:52 +00:00
ad 7bf06aa722 Make libpthread_dbg build again. 2007-08-04 18:54:12 +00:00
degroote bc4183bb27 Call wpi_stop at the beginning of wpi_init so we are sure that wpi is really
stopped (in particular interrupt are disabled).
2007-08-04 18:24:24 +00:00
tsutsui 79f82cdd0a Fix a typo in a debug printf message. 2007-08-04 16:31:21 +00:00
reed 3a6e61c6ab Remove "that" from a long calendar entry that wrapped over two lines.
While there remove a "that" from another entry too.
2007-08-04 15:14:05 +00:00
ad 15c28fd2d8 Update. 2007-08-04 13:46:04 +00:00
ad a014cf23cb Fix error in previous. 2007-08-04 13:43:46 +00:00
ad 50fa8db4e4 Some significant performance improvements, and a fix for a race with pthread
detach/join.

- Make mutex acquire spin for a short time, as done with spinlocks.
- Make the number of spins controllable with the env var PTHREAD_NSPINS.
- Reduce the amount of time that libpthread internal spinlocks are held.
- Rely more on the barrier effects of park/unpark to avoid taking spinlocks.
- Simplify the locking around pthreads and the global queues.
- Align per-thread sync data on a 128 byte boundary.
- Offset thread stacks by a small amount to try and reduce cache thrash.
2007-08-04 13:37:48 +00:00
tsutsui b108f67c05 TAB/space cleanup. 2007-08-04 13:00:45 +00:00
tsutsui fe3cdffb4a Add ci_cpuid where it's missing. 2007-08-04 12:53:31 +00:00
jnemeth cd27c0d793 PR/36370 - Lloyd Parkes -- pckbd.fr_CA-iso8859-1 does not have share tag 2007-08-04 12:41:59 +00:00
ad c3085c5fd6 A quick hack to get things building again. Don't refer to curlwp
if !MULTIPROCESSOR.
2007-08-04 11:57:54 +00:00
ad 51d21a15b2 Note cpuctl(8). 2007-08-04 11:40:58 +00:00
ad 18af8ee9bd Add cpuctl(8). For now this is not much more than a toy for debugging and
benchmarking that allows taking CPUs online/offline.
2007-08-04 11:02:56 +00:00
ad e4f6da7b0c Mark the SysV semaphore syscalls MP safe. 2007-08-04 10:52:57 +00:00
pooka ba8a93da5b typographical fixes
from Matthew Wala in misc/36729
2007-08-04 10:45:36 +00:00
tsutsui eada7d811d ATI's ehci also requires EHCIF_DROPPED_INTR_WORKAROUND. From FreeBSD. 2007-08-04 10:36:06 +00:00
ad 9c6535a6de Add ci_cpuid where it's missing. 2007-08-04 09:49:51 +00:00
pooka 38ed0b2878 Use VSIZENOTSET only in KASSERTs 2007-08-04 09:42:58 +00:00
kiyohara 760e3329d0 Add support agp_amd64. Imported from FreeBSD. 2007-08-04 09:34:43 +00:00
kiyohara 9dc3d091e4 Regen. 2007-08-04 09:34:07 +00:00
kiyohara e42d8a086d Add support agp_amd64. Imported from FreeBSD. 2007-08-04 09:33:05 +00:00
jdc a39089a88a Add KEY_RESIZE.
Fix use after free().
2007-08-04 08:36:49 +00:00
dyoung d3086ce90d Reduce differences between sgimips/Makefile and evbmips/Makefile,
making the sgimips/Makefile 'tags' target work.
2007-08-04 05:32:39 +00:00
rumble fbb550b94d Be sure not to make requests over MAXPHYS when employing bounce buffers.
It was previously possible to round up one sector length if the start block
were not properly aligned.

Resolves PR kern/36716. This may also fix the following reported issues
on port-sgimips:
    http://mail-index.netbsd.org/port-sgimips/2005/09/12/0000.html
    http://mail-index.netbsd.org/port-sgimips/2005/09/14/0000.html

While here, be sure to put back allocated bufs, which previously appear
to have been leaked. Further, remove the dead write bounce code which never
got executed anyway.

No complaints on tech-kern.
2007-08-04 02:58:59 +00:00
jmcneill 55686c831c Note the creation of the jmcneill-pm branch. 2007-08-03 22:20:48 +00:00
wiz 96a93618fa It is probably better to use build.c in SRCS instead of build.o. 2007-08-03 21:50:27 +00:00
martin d5d0a7225c PR kern/32842:
do not leak file descriptors when sending a datagram with SCM_RIGHTS
fails. Patch from Gary Thorpe, based on changes in FreeBSD and work
from Christian Biere.
2007-08-03 20:49:45 +00:00
jmmv b77d937244 Only deal with isa dma stuff if this is available/needed. Fixes the build
of kernels when, e.g. the audio driver is disabled.

Per cube@'s suggestion.
2007-08-03 16:02:17 +00:00
jmmv 2fe103e7dd Messages passed to errx are not supposed to have a trailing \n. Fix that. 2007-08-03 15:34:00 +00:00
joerg 89550a7983 Update pkg_install entry for pkg_install-20070802 import. 2007-08-03 14:26:37 +00:00
joerg 9f6fe41470 Update reach-over code for pkg_install-20070802. 2007-08-03 14:04:15 +00:00
joerg 255da49526 pkg_install-20070802 2007-08-03 13:58:16 +00:00
tsutsui 92b50ccb27 Don't allocate data buffer on stack in sd_read_capacity().
If data buffer is allocated on stack at the end of CPU cacheline,
the same cacheline region might be accessed via kernel stack even
after bus_dmamap_sync(9) against the data buffer in lower scsi drivers
so that read data via DMA could be lost.

Fixes occasional readdisklabel(9) failure at boot on ews4800mips
with osiop(4) driver and 128byte cacheline.

XXX: Other functions/drivers might have the similar problem.
2007-08-03 13:56:37 +00:00
tsutsui 51b5e07bf9 Misc KNF and cosmetics. 2007-08-03 13:15:56 +00:00