Matthew Dillon [Sat, 23 May 2009 04:33:00 +0000 (21:33 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Matthew Dillon [Sat, 23 May 2009 04:32:03 +0000 (21:32 -0700)]
Supporting amd64 /dev/kmem requires allowing apparently negative lseek offsets.
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.
Sascha Wildner [Sat, 23 May 2009 01:59:58 +0000 (03:59 +0200)]
objformat(1): Fix comment typo and trailing newline.
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.
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@
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
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.
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.
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).
Sascha Wildner [Thu, 21 May 2009 09:17:01 +0000 (11:17 +0200)]
vknet.8: Fix typo.
Sascha Wildner [Thu, 21 May 2009 09:10:43 +0000 (11:10 +0200)]
vknetd.8: Document Matt's recent changes to vknetd(8).
Sascha Wildner [Thu, 21 May 2009 09:04:32 +0000 (11:04 +0200)]
vknetd.8: Start sentences on new lines.
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).
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>
Simon Schubert [Wed, 20 May 2009 15:39:59 +0000 (17:39 +0200)]
undo: free temporary filename
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.
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>
Matthew Dillon [Wed, 20 May 2009 02:48:38 +0000 (19:48 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
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>
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
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).
Sepherosa Ziehau [Tue, 19 May 2009 13:11:46 +0000 (21:11 +0800)]
- Staticize cpu_initclocks()
- Correct vktimer_intr_initclock() prototype
Sepherosa Ziehau [Tue, 19 May 2009 13:01:06 +0000 (21:01 +0800)]
amd64: Sync isa/clock.c with i386's
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>
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.
Sepherosa Ziehau [Tue, 19 May 2009 10:50:50 +0000 (18:50 +0800)]
systat(1): Display external interrupts (non-ipi, non-lapic timer interrupt)
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.
Sepherosa Ziehau [Tue, 19 May 2009 10:37:58 +0000 (18:37 +0800)]
vkernel, not qemu
Matthew Dillon [Mon, 18 May 2009 20:15:07 +0000 (13:15 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
Sascha Wildner [Mon, 18 May 2009 20:03:57 +0000 (22:03 +0200)]
aacvar.h: Fix typo in AAC_ON_AACQ_MASK.
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@
Matthew Dillon [Sun, 17 May 2009 20:10:48 +0000 (13:10 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
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.
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
Sepherosa Ziehau [Sun, 17 May 2009 07:42:22 +0000 (15:42 +0800)]
Unbreak buildworld
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()
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
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
Sascha Wildner [Sat, 16 May 2009 22:44:38 +0000 (00:44 +0200)]
gzip(1): Fix amd64 warning.
Sascha Wildner [Sat, 16 May 2009 22:23:22 +0000 (00:23 +0200)]
pkill(1): Silence amd64 warning.
Sascha Wildner [Sat, 16 May 2009 22:16:02 +0000 (00:16 +0200)]
undo(1): Fix amd64 warnings.
Sascha Wildner [Sat, 16 May 2009 22:04:56 +0000 (00:04 +0200)]
atmarpd(8)/scspd(8): Fix amd64 warnings.
Sascha Wildner [Sat, 16 May 2009 21:59:05 +0000 (23:59 +0200)]
makewhatis(8): Fix amd64 warning.
Sascha Wildner [Sat, 16 May 2009 21:54:04 +0000 (23:54 +0200)]
tzsetup(8): Raise WARNS to 2 and fix a warning.
Sascha Wildner [Sat, 16 May 2009 12:26:05 +0000 (14:26 +0200)]
asf(8): 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.
Sascha Wildner [Sat, 16 May 2009 12:13:37 +0000 (14:13 +0200)]
<netipx/spx_debug.h>: Constify spxnames[].
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
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
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
Matthew Dillon [Fri, 15 May 2009 23:21:56 +0000 (16:21 -0700)]
Instrument contigmalloc() failures to provide better information.
Sascha Wildner [Fri, 15 May 2009 21:52:55 +0000 (23:52 +0200)]
installer: Fix amd64 warning.
Sascha Wildner [Fri, 15 May 2009 21:47:13 +0000 (23:47 +0200)]
installer: Remove some dead code and raise WARNS to 2.
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.
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.
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.
Matthew Dillon [Fri, 15 May 2009 20:47:23 +0000 (13:47 -0700)]
Add cothread_delete() to the vkernel cothread API.
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.
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.
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>
Matthew Dillon [Fri, 15 May 2009 07:55:31 +0000 (00:55 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
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>
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.
Sascha Wildner [Thu, 14 May 2009 11:52:38 +0000 (13:52 +0200)]
ipfilter(8): Include <sys/dirent.h> instead of <sys/dir.h>.
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
Joe Talbott [Fri, 15 May 2009 03:40:56 +0000 (23:40 -0400)]
sys_wait4(): Use uap->sysmsg_result when calling kern_wait().
Jordan Gordeev [Wed, 13 May 2009 16:39:23 +0000 (19:39 +0300)]
Fix chunking type to match expected pointer type. Needed for amd64.
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.
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.
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@
Sepherosa Ziehau [Thu, 14 May 2009 11:19:54 +0000 (19:19 +0800)]
Enable lapic timer by default.
Approved-by: dillon@
Sepherosa Ziehau [Thu, 14 May 2009 11:14:55 +0000 (19:14 +0800)]
Remove lapic_timer_test
Sascha Wildner [Thu, 14 May 2009 11:04:39 +0000 (13:04 +0200)]
resident(1): Fix i386 warning (introduced when fixing amd64 warnings).
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.
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@
Jordan Gordeev [Wed, 13 May 2009 14:40:28 +0000 (17:40 +0300)]
amd64: pmap: sync pmap_kmem_choose() with FreeBSD.
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.
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
Matthew Dillon [Thu, 14 May 2009 02:08:33 +0000 (19:08 -0700)]
Merge branch 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly
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.
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.
Sepherosa Ziehau [Wed, 13 May 2009 11:58:20 +0000 (19:58 +0800)]
systat(1): Add "vmmeter" command to show per-cpu statistics
Sepherosa Ziehau [Tue, 12 May 2009 11:51:35 +0000 (19:51 +0800)]
Expose per-cpu vmmeter through vm.cpuX.vmmeter
Sepherosa Ziehau [Mon, 11 May 2009 06:56:59 +0000 (14:56 +0800)]
Count inter-processor and LAPIC timer interrupts
Sascha Wildner [Mon, 11 May 2009 02:41:37 +0000 (04:41 +0200)]
Oops fix crunchgen path.
Sascha Wildner [Sun, 10 May 2009 17:47:30 +0000 (19:47 +0200)]
installer: Rename fn_subpart.c to fn_subpart_ufs.c.
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.
Sascha Wildner [Sun, 10 May 2009 15:11:30 +0000 (17:11 +0200)]
timed(8): Set WARNS from timed/Makefile.inc for all subdirs.
Sascha Wildner [Sun, 10 May 2009 15:16:54 +0000 (17:16 +0200)]
tcpdump(1): Raise WARNS to 2.
Sascha Wildner [Sun, 10 May 2009 15:19:20 +0000 (17:19 +0200)]
nscd(8): Raise WARNS to 2.
Sascha Wildner [Sun, 10 May 2009 15:27:15 +0000 (17:27 +0200)]
mrouted(8): Raise WARNS to 1 and fix two warnings.
Sascha Wildner [Sun, 10 May 2009 15:34:01 +0000 (17:34 +0200)]
lpr(1): Connect filters.ru/ to the parent Makefile.inc and fix 2 warnings.
Sascha Wildner [Sun, 10 May 2009 15:48:46 +0000 (17:48 +0200)]
usr.sbin/i4b: Remove #warning about ncurses deficiency and raise WARNS to 1.
Sascha Wildner [Sun, 10 May 2009 15:59:36 +0000 (17:59 +0200)]
crunchgen and friends install to /usr/bin, so move here.
Sascha Wildner [Sun, 10 May 2009 16:01:15 +0000 (18:01 +0200)]
crunch: Raise WARNS to 1.
Sascha Wildner [Sun, 10 May 2009 16:09:13 +0000 (18:09 +0200)]
Raise some WARNS in usr.sbin/.
Sascha Wildner [Sun, 10 May 2009 13:43:44 +0000 (15:43 +0200)]
lint(1): Set WARNS from xlint/Makefile.inc for all subdirs.
Sascha Wildner [Sun, 10 May 2009 13:40:42 +0000 (15:40 +0200)]
tip(1): Set WARNS from tip/Makefile.inc for all subdirs and fix a warning.
Sascha Wildner [Sun, 10 May 2009 13:38:31 +0000 (15:38 +0200)]
locate(1): Set WARNS from locate/Makefile.inc for all subdirs.