dragonfly.git
4 years agovkernel - more crit section work to avoid pthread reentrancy.
Matthew Dillon [Sun, 24 May 2009 03:02:50 +0000 (20:02 -0700)]
vkernel - more crit section work to avoid pthread reentrancy.

4 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Sat, 23 May 2009 23:25:25 +0000 (16:25 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

4 years agoMiscellanious protection around pthread calls to avoid signal reentrancy.
Matthew Dillon [Sat, 23 May 2009 23:21:53 +0000 (16:21 -0700)]
Miscellanious protection around pthread calls to avoid signal reentrancy.

Use pread/pwrite instead of read/write in a few cases.  Cases that still
use read/write now protect the calls with a crit_enter()/crit_exit().

Protect usleep() calls with a critical section.

Protect pthread_*() calls with a critical section where applicable.  Note
that calls made from cothreads do not need to be protected because the
cothreads do not take signals and are not operated as virtual cpus so they
can't preempt themselves either.

Reported-by: Trevor Kendall
4 years agoamd64 - Fix compiler warning.
Matthew Dillon [Sat, 23 May 2009 23:20:08 +0000 (16:20 -0700)]
amd64 - Fix compiler warning.

4 years agohammer.8: Fix typo.
Sascha Wildner [Sat, 23 May 2009 12:02:24 +0000 (14:02 +0200)]
hammer.8: Fix typo.

4 years agolibthread_xu: Use -Wl,... for passing linker options.
Sascha Wildner [Sat, 23 May 2009 11:47:09 +0000 (13:47 +0200)]
libthread_xu: Use -Wl,... for passing linker options.

Fixes building with clang which doesn't support --version-script.

Submitted-by: Alex Hornung <ahornung@gmail.com>
4 years agotcp timer: Don't try stopping timers if timer message is not created.
Sepherosa Ziehau [Sat, 23 May 2009 11:01:15 +0000 (19:01 +0800)]
tcp timer: Don't try stopping timers if timer message is not created.

DragonFly-bug: <http://bugs.dragonflybsd.org/issue1380>

4 years agolibkvm: Raise WARNS to 2 and fix warnings.
Sascha Wildner [Sat, 23 May 2009 11:05:57 +0000 (13:05 +0200)]
libkvm: Raise WARNS to 2 and fix warnings.

Includes adding a prototype for dev2udev() to kern_kinfo.c if compiled
for userland.

4 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Sat, 23 May 2009 04:33:00 +0000 (21:33 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

4 years agoSupporting amd64 /dev/kmem requires allowing apparently negative lseek offsets.
Matthew Dillon [Sat, 23 May 2009 04:32:03 +0000 (21:32 -0700)]
Supporting amd64 /dev/kmem requires allowing apparently negative lseek offsets.

4 years agolibkvm - use the proper format %lx for kva, which is an unsigned long.
Matthew Dillon [Sat, 23 May 2009 04:29:07 +0000 (21:29 -0700)]
libkvm - use the proper format %lx for kva, which is an unsigned long.

4 years agoobjformat(1): Fix comment typo and trailing newline.
Sascha Wildner [Sat, 23 May 2009 01:59:58 +0000 (03:59 +0200)]
objformat(1): Fix comment typo and trailing newline.

4 years agoAdjust objformat.1 and getobjformat.3 to the current state of affairs.
Sascha Wildner [Sat, 23 May 2009 01:59:12 +0000 (03:59 +0200)]
Adjust objformat.1 and getobjformat.3 to the current state of affairs.

4 years agoDocument hw.irq.X.dest in loader(8) manpage
Sepherosa Ziehau [Fri, 22 May 2009 11:16:06 +0000 (19:16 +0800)]
Document hw.irq.X.dest in loader(8) manpage

Reminded-by: dillon@
4 years agolibc_r: map initial stack red zone with MAP_TRYFIXED
Simon Schubert [Thu, 21 May 2009 20:43:56 +0000 (22:43 +0200)]
libc_r: map initial stack red zone with MAP_TRYFIXED

This is analogous to 9b505694017eeaf48fff9273f503160064583c14 and
2035b67992ac162a5968a22584ef29d2f53f93e2.

With-help-from: smtms, dillon

4 years agoRemove .sh suffix from the last 3 rc scripts that had it.
Sascha Wildner [Thu, 21 May 2009 17:24:42 +0000 (19:24 +0200)]
Remove .sh suffix from the last 3 rc scripts that had it.

4 years agoioapic: Allow user to specify irq's destination CPU
Sepherosa Ziehau [Thu, 21 May 2009 13:38:45 +0000 (21:38 +0800)]
ioapic: Allow user to specify irq's destination CPU

hw.irq.X.dest is checked when programming ioapic and the corresponding
ithread will be created on the same CPU as the irq's destination CPU.

4 years agoioapic: Fix destination setting.
Sepherosa Ziehau [Thu, 21 May 2009 10:59:24 +0000 (18:59 +0800)]
ioapic: Fix destination setting.

Since the "destination mode" is physical, the "destination" should be
APIC ID instead of mask (set of processors).  Currently all interrupts
are delivered to CPU0 (BSP).

4 years agovknet.8: Fix typo.
Sascha Wildner [Thu, 21 May 2009 09:17:01 +0000 (11:17 +0200)]
vknet.8: Fix typo.

4 years agovknetd.8: Document Matt's recent changes to vknetd(8).
Sascha Wildner [Thu, 21 May 2009 09:10:43 +0000 (11:10 +0200)]
vknetd.8: Document Matt's recent changes to vknetd(8).

4 years agovknetd.8: Start sentences on new lines.
Sascha Wildner [Thu, 21 May 2009 09:04:32 +0000 (11:04 +0200)]
vknetd.8: Start sentences on new lines.

4 years agoath_hal.4: Update a bit for the recent HAL update (taken from FreeBSD).
Sascha Wildner [Thu, 21 May 2009 08:51:59 +0000 (10:51 +0200)]
ath_hal.4: Update a bit for the recent HAL update (taken from FreeBSD).

4 years agoetc/rc.d/sendmail: Actually execute sendmail_precmd().
Sascha Wildner [Wed, 20 May 2009 20:03:35 +0000 (22:03 +0200)]
etc/rc.d/sendmail: Actually execute sendmail_precmd().

This will cause the sendmail rc script to care about running
newaliases(1) itself if necessary (database doesn't exist or
/etc/mail/aliases is newer than /etc/mail/aliases.db).

Also add a new rc.conf variable 'sendmail_rebuild_aliases' to
turn off this behavior which is on by default.

This means we don't need to run newaliases(1) ourselves in a
couple of places (such as when building the LiveCD), so remove
those.

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue52>

4 years agoundo: free temporary filename
Simon Schubert [Wed, 20 May 2009 15:39:59 +0000 (17:39 +0200)]
undo: free temporary filename

4 years agoundo: always collect history of the file
Simon Schubert [Wed, 20 May 2009 15:39:37 +0000 (17:39 +0200)]
undo: always collect history of the file

Commit b9a33d3fb1235626615b96b4b586ce7a7b8386fd added file histories based
on the history of the parent directory, in order to list history fragments
even when the inode changed.  However it failed to collect the history for
the most recent version of the file.  As a result, if all versions of the
parent directory happened to preceed the oldest version of the file, undo
would not collect any history for the file and fail with error 0.

Unconditionally include the history of the file to fix this problem.

4 years agoaac(4): Functions called on the interrupt processing code path is not MPSAFE
Sepherosa Ziehau [Wed, 20 May 2009 13:18:17 +0000 (21:18 +0800)]
aac(4): Functions called on the interrupt processing code path is not MPSAFE
yet, so don't mark its interrupt handler MPSAFE.

Reported-and-tested-by: Archimedes Gaviola <archimedes.gaviola@gmail.com>
4 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Wed, 20 May 2009 02:48:38 +0000 (19:48 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

4 years agoSave creds on nfs_open() for later read/write/etc.
Matthew Dillon [Wed, 20 May 2009 02:44:00 +0000 (19:44 -0700)]
Save creds on nfs_open() for later read/write/etc.

Recent commits removed an unnecessary access() call in the open path.
However, this broke NFS's saving of creds for future use.  Replicate
the cred code in nfs_open().

Reported-by: Thomas Nikolajsen <thomas.nikolajsen@mail.dk>
4 years agonewvers.sh: Take the src/ dir as an argument instead of hard coding it.
Sascha Wildner [Tue, 19 May 2009 14:04:12 +0000 (16:04 +0200)]
newvers.sh: Take the src/ dir as an argument instead of hard coding it.

This fixes the issue where the last number in our version was included
only if /usr/src was present at build time, which resulted in different
output of uname -r, sysctl kern.{osrelease,version}, etc. across
different systems (e.g. "2.3.1-DEVELOPMENT" vs. "2.3-DEVELOPMENT").

This commit also removes the passing of ${KERN_IDENT} and ${IDENT} to
newvers.sh (both of which are not used by it) and performs some
additional cleanup.

Brought-to-my-attention-by: Antonio Huete Jimenez <ahuete.devel@gmail.com>
Reviewed-by: dillon
4 years agoath(4) HAL: Set AH_SUPPORT_AR5416 to 1 for now (unbreaks buildkernel).
Sascha Wildner [Tue, 19 May 2009 13:52:19 +0000 (15:52 +0200)]
ath(4) HAL: Set AH_SUPPORT_AR5416 to 1 for now (unbreaks buildkernel).

4 years ago- Staticize cpu_initclocks()
Sepherosa Ziehau [Tue, 19 May 2009 13:11:46 +0000 (21:11 +0800)]
- Staticize cpu_initclocks()
- Correct vktimer_intr_initclock() prototype

4 years agoamd64: Sync isa/clock.c with i386's
Sepherosa Ziehau [Tue, 19 May 2009 13:01:06 +0000 (21:01 +0800)]
amd64: Sync isa/clock.c with i386's

4 years agoRevert "More clock cleanup:"
Sepherosa Ziehau [Tue, 19 May 2009 12:56:17 +0000 (20:56 +0800)]
Revert "More clock cleanup:"

This reverts commit 50b53814fb840b70162a846420b75c5bb9432931.

Reordering RTC and i8254 initialization does not work on some boxes

Reported-by: Johannes Hofmann <johannes.hofmann@gmx.de>
4 years agoath(4) HAL: Adjust/fix a few build related things.
Sascha Wildner [Tue, 19 May 2009 11:59:54 +0000 (13:59 +0200)]
ath(4) HAL: Adjust/fix a few build related things.

* Fix building with MODULES_WITH_WORLD.

* Add AH_SUPPORT_AR5416 option to the options file.

* Remove unneeded opt_ah.h file which gets generated.

4 years agosystat(1): Display external interrupts (non-ipi, non-lapic timer interrupt)
Sepherosa Ziehau [Tue, 19 May 2009 10:50:50 +0000 (18:50 +0800)]
systat(1): Display external interrupts (non-ipi, non-lapic timer interrupt)

4 years agoaac(4): Break out of the loop, if the command could not be sent.
Sepherosa Ziehau [Tue, 19 May 2009 10:40:06 +0000 (18:40 +0800)]
aac(4): Break out of the loop, if the command could not be sent.

4 years agovkernel, not qemu
Sepherosa Ziehau [Tue, 19 May 2009 10:37:58 +0000 (18:37 +0800)]
vkernel, not qemu

4 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Mon, 18 May 2009 20:15:07 +0000 (13:15 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

4 years agoaacvar.h: Fix typo in AAC_ON_AACQ_MASK.
Sascha Wildner [Mon, 18 May 2009 20:03:57 +0000 (22:03 +0200)]
aacvar.h: Fix typo in AAC_ON_AACQ_MASK.

4 years agoncal: always generate all lines for a month in cal mode
Simon Schubert [Mon, 18 May 2009 10:49:34 +0000 (12:49 +0200)]
ncal: always generate all lines for a month in cal mode

If a month did not span 6 lines, but less, the lines up to line #6 would
not be padded with spaces.  In the year view, if a month on a column to
the left exhibited this state, and a month to the right would span 6
lines, the days in the 6th line of the right month would appear warped and
not aligned under the month they belong to.  Fix this by always generating
6 lines.

Reported-by: swildner@
4 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Sun, 17 May 2009 20:10:48 +0000 (13:10 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

4 years agoMake it possible to build ath(4) hal into the kernel.
Hasso Tepper [Sun, 17 May 2009 11:54:14 +0000 (14:54 +0300)]
Make it possible to build ath(4) hal into the kernel.

Also fixes a LINT build.

4 years agoDuplicate platform/pc32/isa/clock.c to platform/pc64/isa/clock.c
Sepherosa Ziehau [Sun, 17 May 2009 08:14:14 +0000 (16:14 +0800)]
Duplicate platform/pc32/isa/clock.c to platform/pc64/isa/clock.c

4 years agoUnbreak buildworld
Sepherosa Ziehau [Sun, 17 May 2009 07:42:22 +0000 (15:42 +0800)]
Unbreak buildworld

4 years agoMore clock cleanup:
Sepherosa Ziehau [Sun, 17 May 2009 05:11:50 +0000 (13:11 +0800)]
More clock cleanup:

- Move rtc initialization to SI_BOOT2_CLOCKREG, SI_ORDER_FIRST
- Staticize cpu_initclocks()

4 years agoAdd interrupt cputimer interface.
Sepherosa Ziehau [Sun, 17 May 2009 04:08:38 +0000 (12:08 +0800)]
Add interrupt cputimer interface.

- Better abstraction
- Easier to extend, e.g. add another interrupt cputimer
- No lapic timer pollution in isa/clock.c

4 years agotcp timer: Remember tcpcb owner thread's msgport, so timer message could
Sepherosa Ziehau [Wed, 13 May 2009 13:14:15 +0000 (21:14 +0800)]
tcp timer: Remember tcpcb owner thread's msgport, so timer message could
be delivered to the correct msgport.

While I am here, move tcp timer message creation for TCP IPv6 socket from
tcp_newtcpcb() to tcp6_connect().

Preliminary IPv6 test done by hasso@

Dragonfly-issue: http://bugs.dragonflybsd.org/issue1361

4 years agogzip(1): Fix amd64 warning.
Sascha Wildner [Sat, 16 May 2009 22:44:38 +0000 (00:44 +0200)]
gzip(1): Fix amd64 warning.

4 years agopkill(1): Silence amd64 warning.
Sascha Wildner [Sat, 16 May 2009 22:23:22 +0000 (00:23 +0200)]
pkill(1): Silence amd64 warning.

4 years agoundo(1): Fix amd64 warnings.
Sascha Wildner [Sat, 16 May 2009 22:16:02 +0000 (00:16 +0200)]
undo(1): Fix amd64 warnings.

4 years agoatmarpd(8)/scspd(8): Fix amd64 warnings.
Sascha Wildner [Sat, 16 May 2009 22:04:56 +0000 (00:04 +0200)]
atmarpd(8)/scspd(8): Fix amd64 warnings.

4 years agomakewhatis(8): Fix amd64 warning.
Sascha Wildner [Sat, 16 May 2009 21:59:05 +0000 (23:59 +0200)]
makewhatis(8): Fix amd64 warning.

4 years agotzsetup(8): Raise WARNS to 2 and fix a warning.
Sascha Wildner [Sat, 16 May 2009 21:54:04 +0000 (23:54 +0200)]
tzsetup(8): Raise WARNS to 2 and fix a warning.

4 years agoasf(8): Raise WARNS to 6 and fix warnings.
Sascha Wildner [Sat, 16 May 2009 12:26:05 +0000 (14:26 +0200)]
asf(8): Raise WARNS to 6 and fix warnings.

4 years agonetstat(1): Raise WARNS to 6 and fix warnings.
Sascha Wildner [Sat, 16 May 2009 12:14:07 +0000 (14:14 +0200)]
netstat(1): Raise WARNS to 6 and fix warnings.

4 years ago<netipx/spx_debug.h>: Constify spxnames[].
Sascha Wildner [Sat, 16 May 2009 12:13:37 +0000 (14:13 +0200)]
<netipx/spx_debug.h>: Constify spxnames[].

4 years agoOpen source ath(4) HAL code.
Hasso Tepper [Tue, 12 May 2009 19:48:59 +0000 (22:48 +0300)]
Open source ath(4) HAL code.

Submitted-by: Alexander Polakov <polachok@gmail.com>
Obtained-from: FreeBSD 7.2

4 years agoMake pthread types visible via sys/types.h to conform SUSv3.
Hasso Tepper [Sat, 16 May 2009 04:39:38 +0000 (07:39 +0300)]
Make pthread types visible via sys/types.h to conform SUSv3.

Move declarations of pthread related types to the _pthreadtypes.h and
include it from sys/types.h. pthread.h should do the same, but as it
includes the sys/types.h anyway at the moment, don't touch it yet.

Inspired-by: FreeBSD
4 years agoCleanup systimer.h
Sepherosa Ziehau [Sat, 16 May 2009 03:54:30 +0000 (11:54 +0800)]
Cleanup systimer.h

- Remove never implemented systimer_changed() declaration
- Move comment to the proper place

4 years agoInstrument contigmalloc() failures to provide better information.
Matthew Dillon [Fri, 15 May 2009 23:21:56 +0000 (16:21 -0700)]
Instrument contigmalloc() failures to provide better information.

4 years agoinstaller: Fix amd64 warning.
Sascha Wildner [Fri, 15 May 2009 21:52:55 +0000 (23:52 +0200)]
installer: Fix amd64 warning.

4 years agoinstaller: Remove some dead code and raise WARNS to 2.
Sascha Wildner [Fri, 15 May 2009 21:47:13 +0000 (23:47 +0200)]
installer: Remove some dead code and raise WARNS to 2.

4 years agoAdd a vkernel test environment build
Matthew Dillon [Fri, 15 May 2009 20:52:22 +0000 (13:52 -0700)]
Add a vkernel test environment build

Create a vkernel test environment build directory in /usr/src/test/vkernel
with a Makefile which does all the dirty work required to build a vkernel
environment.

4 years agovkernel - Fix races in stopsig() and ipisig().
Matthew Dillon [Fri, 15 May 2009 20:49:43 +0000 (13:49 -0700)]
vkernel - Fix races in stopsig() and ipisig().

stopsig() needed a critical section and ipisig() needed to adjust
intr_nesting_level within a critical section.

4 years agoUse the new cothread_delete() API in vke_stop().
Matthew Dillon [Fri, 15 May 2009 20:47:56 +0000 (13:47 -0700)]
Use the new cothread_delete() API in vke_stop().

Fix a memory and pthread leak, and a panic in VKE by using the new
cothread_delete() API to properly delete the thread and deregister the
interrupt.

4 years agoAdd cothread_delete() to the vkernel cothread API.
Matthew Dillon [Fri, 15 May 2009 20:47:23 +0000 (13:47 -0700)]
Add cothread_delete() to the vkernel cothread API.

4 years agovknetd - add features, allow ip to be set in unsecure mode, allow addr 0.
Matthew Dillon [Fri, 15 May 2009 20:23:17 +0000 (13:23 -0700)]
vknetd - add features, allow ip to be set in unsecure mode, allow addr 0.

Allow an IP address/mask to be specified whether in secure mode or not,
and allow packets with a source address of 0.0.0.0 to pass in secure mode,
so dhclient/bootp works.

4 years agovkernel now autoprobes vkd0s1a as well as vkd0s0a to locate the root fs.
Matthew Dillon [Fri, 15 May 2009 19:22:06 +0000 (12:22 -0700)]
vkernel now autoprobes vkd0s1a as well as vkd0s0a to locate the root fs.

4 years agoFix bug in recent commit - fcntl(... O_ASYNC) on tty's got broke.
Matthew Dillon [Fri, 15 May 2009 19:08:46 +0000 (12:08 -0700)]
Fix bug in recent commit - fcntl(... O_ASYNC) on tty's got broke.

The pass-through fo_ioctl() call was being used with the old async state
instead of the new one.  This primarily effects tty's as most other devices
just use the async state stored in the file pointer.

Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
4 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Fri, 15 May 2009 07:55:31 +0000 (00:55 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

4 years agoFix a simple code bug when dealing with a raced vnode in hammer_get_vnode().
Matthew Dillon [Fri, 15 May 2009 07:54:50 +0000 (00:54 -0700)]
Fix a simple code bug when dealing with a raced vnode in hammer_get_vnode().

Reported-by: Francois Tigeot <ftigeot@wolfpond.org>
4 years agoPut WARNS?=6 in usr.sbin/Makefile.inc (like in usr.bin/ etc.).
Sascha Wildner [Fri, 15 May 2009 07:42:48 +0000 (09:42 +0200)]
Put WARNS?=6 in usr.sbin/Makefile.inc (like in usr.bin/ etc.).

Raise WARNS as high as possible for the utilities that still warn
with 6.

4 years agoipfilter(8): Include <sys/dirent.h> instead of <sys/dir.h>.
Sascha Wildner [Thu, 14 May 2009 11:52:38 +0000 (13:52 +0200)]
ipfilter(8): Include <sys/dirent.h> instead of <sys/dir.h>.

4 years agoif_vke: Convert from kqueue API to cothread API.
Joe Talbott [Fri, 15 May 2009 03:49:20 +0000 (23:49 -0400)]
if_vke: Convert from kqueue API to cothread API.

This work is the first step in cleaning up the vkernel timer interrupt
code.

Reviewed-By: dillon
4 years agosys_wait4(): Use uap->sysmsg_result when calling kern_wait().
Joe Talbott [Fri, 15 May 2009 03:40:56 +0000 (23:40 -0400)]
sys_wait4(): Use uap->sysmsg_result when calling kern_wait().

4 years agoFix chunking type to match expected pointer type. Needed for amd64.
Jordan Gordeev [Wed, 13 May 2009 16:39:23 +0000 (19:39 +0300)]
Fix chunking type to match expected pointer type.  Needed for amd64.

4 years agoAdd missing vnconfig -u fixing a build error when doing a make from scratch.
Matthew Dillon [Fri, 15 May 2009 00:09:15 +0000 (17:09 -0700)]
Add missing vnconfig -u fixing a build error when doing a make from scratch.

4 years agoAdd missing call to sysctl_ctx_init(), fixing a boot-time panic.
Matthew Dillon [Thu, 14 May 2009 16:56:41 +0000 (09:56 -0700)]
Add missing call to sysctl_ctx_init(), fixing a boot-time panic.

4 years agogcc-4.1: correctly generate libstdc++ gthr.h headers
Simon Schubert [Thu, 14 May 2009 14:02:57 +0000 (16:02 +0200)]
gcc-4.1: correctly generate libstdc++ gthr.h headers

The libstdc++ headers changed the names of their macro symbols since
gcc 3.4.  This was missed when introducing gcc 4.1.  Update the generation
rules to match those of the libstdc++ include/Makefile.am.

Reported-by: hasso@
4 years agoEnable lapic timer by default.
Sepherosa Ziehau [Thu, 14 May 2009 11:19:54 +0000 (19:19 +0800)]
Enable lapic timer by default.

Approved-by: dillon@
4 years agoRemove lapic_timer_test
Sepherosa Ziehau [Thu, 14 May 2009 11:14:55 +0000 (19:14 +0800)]
Remove lapic_timer_test

4 years agoresident(1): Fix i386 warning (introduced when fixing amd64 warnings).
Sascha Wildner [Thu, 14 May 2009 11:04:39 +0000 (13:04 +0200)]
resident(1): Fix i386 warning (introduced when fixing amd64 warnings).

4 years agowindow(1): Sync with NetBSD (which is cleaner than FreeBSD's).
Sascha Wildner [Thu, 14 May 2009 10:19:57 +0000 (12:19 +0200)]
window(1): Sync with NetBSD (which is cleaner than FreeBSD's).

Raise WARNS to 6.

4 years agoUse nq version of systimer_init_periodic() when initialize interrupt
Sepherosa Ziehau [Thu, 14 May 2009 10:44:51 +0000 (18:44 +0800)]
Use nq version of systimer_init_periodic() when initialize interrupt
livelock avoidance systimer.

The bug revealed itself as long time looping in the systimer_intr():
The one shot timer interrupt handler is prevented from running for
some time probably due to heavy interrupt load, and livelock avoidance
systimer is setup using high frequency (40000Hz by default).  If non-nq
version of systimer was used, then the main loop of systimer_intr()
would try to keep running and reloading this systimer until the
accumulated time caught up with the saved sys_cputimer count.

Debug information provided by Jordan Gordeev <jgordeev@dir.bg>, he also
helped to locate the systimer cause the long time looping.

Tested-by: Jordan Gordeev <jgordeev@dir.bg>
Approved-by: dillon@
4 years agoamd64: pmap: sync pmap_kmem_choose() with FreeBSD.
Jordan Gordeev [Wed, 13 May 2009 14:40:28 +0000 (17:40 +0300)]
amd64: pmap: sync pmap_kmem_choose() with FreeBSD.

4 years agovga(4): Fix truncation of 64-bit addresses.
Jordan Gordeev [Sun, 26 Apr 2009 19:11:57 +0000 (22:11 +0300)]
vga(4): Fix truncation of 64-bit addresses.
From FreeBSD revision 115253.

4 years agoamd64: first steps towards 64-bit pmap
Jordan Gordeev [Sun, 26 Apr 2009 18:58:06 +0000 (21:58 +0300)]
amd64: first steps towards 64-bit pmap
remove 32-bit amd64 pmap
replace with work-in-progress 64-bit pmap

4 years agoMerge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Thu, 14 May 2009 02:08:33 +0000 (19:08 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly

4 years agoamd64: Fix several "sizeof(size_t) != sizeof(int)" bugs.
Jordan Gordeev [Wed, 13 May 2009 17:41:06 +0000 (20:41 +0300)]
amd64: Fix several "sizeof(size_t) != sizeof(int)" bugs.
The compiler warned about them.

4 years agoamd64: varsym: increase varsym set size limit
Jordan Gordeev [Wed, 13 May 2009 14:34:40 +0000 (17:34 +0300)]
amd64: varsym: increase varsym set size limit
The previous limit was hit during a normal boot.

4 years agosystat(1): Add "vmmeter" command to show per-cpu statistics
Sepherosa Ziehau [Wed, 13 May 2009 11:58:20 +0000 (19:58 +0800)]
systat(1): Add "vmmeter" command to show per-cpu statistics

4 years agoExpose per-cpu vmmeter through vm.cpuX.vmmeter
Sepherosa Ziehau [Tue, 12 May 2009 11:51:35 +0000 (19:51 +0800)]
Expose per-cpu vmmeter through vm.cpuX.vmmeter

4 years agoCount inter-processor and LAPIC timer interrupts
Sepherosa Ziehau [Mon, 11 May 2009 06:56:59 +0000 (14:56 +0800)]
Count inter-processor and LAPIC timer interrupts

4 years agoOops fix crunchgen path.
Sascha Wildner [Mon, 11 May 2009 02:41:37 +0000 (04:41 +0200)]
Oops fix crunchgen path.

4 years agoinstaller: Rename fn_subpart.c to fn_subpart_ufs.c.
Sascha Wildner [Sun, 10 May 2009 17:47:30 +0000 (19:47 +0200)]
installer: Rename fn_subpart.c to fn_subpart_ufs.c.

4 years agozic(8) & zdump(8): Raise WARNS to 2 and silence a warning.
Sascha Wildner [Sun, 10 May 2009 15:07:20 +0000 (17:07 +0200)]
zic(8) & zdump(8): Raise WARNS to 2 and silence a warning.

4 years agotimed(8): Set WARNS from timed/Makefile.inc for all subdirs.
Sascha Wildner [Sun, 10 May 2009 15:11:30 +0000 (17:11 +0200)]
timed(8): Set WARNS from timed/Makefile.inc for all subdirs.

4 years agotcpdump(1): Raise WARNS to 2.
Sascha Wildner [Sun, 10 May 2009 15:16:54 +0000 (17:16 +0200)]
tcpdump(1): Raise WARNS to 2.

4 years agonscd(8): Raise WARNS to 2.
Sascha Wildner [Sun, 10 May 2009 15:19:20 +0000 (17:19 +0200)]
nscd(8): Raise WARNS to 2.

4 years agomrouted(8): Raise WARNS to 1 and fix two warnings.
Sascha Wildner [Sun, 10 May 2009 15:27:15 +0000 (17:27 +0200)]
mrouted(8): Raise WARNS to 1 and fix two warnings.