Commit Graph

207993 Commits

Author SHA1 Message Date
yamt 9753d46d1c install tprof related commands and man pages. 2012-01-04 16:25:13 +00:00
reinoud 582879d39a Enhance the page_deactivate() to have less side effects. While here also make
a variable local to the debug routine that uses it.
2012-01-04 16:20:41 +00:00
yamt 1f34562751 SEE ALSO and CAVEATS 2012-01-04 16:18:11 +00:00
drochner 8fd6dadaf8 include <netipsec/ipsec.h> rather than <netinet6/ipsec.h> from userland
where possible, for consistency and compatibility to FreeBSD
(exception: KAME specific statistics gathering in netstat(1) and systat(1))
2012-01-04 16:09:40 +00:00
haad 62688f9115 Fix wrong KASSERT, reported by mhitch@. 2012-01-04 16:05:53 +00:00
christos eb8f42a53b Add siginfo support from Daniel Loffgren. 2012-01-04 15:58:37 +00:00
macallan 2d0a8b25c8 use WSFONT_GLYPH() 2012-01-04 15:56:18 +00:00
drochner 3712f81ced -consistently use "char *" for the compiled policy buffer in the
ipsec_*_policy() functions, as it was documented and used by clients
-remove "ipsec_policy_t" which was undocumented and only present
 in the KAME version of the ipsec.h header
-misc cleanup of historical artefacts, and to remove unnecessary
 differences between KAME ans FAST_IPSEC
2012-01-04 15:55:35 +00:00
yamt f40ab0e98f install fincore. 2012-01-04 15:54:37 +00:00
macallan dd77d71244 add WSFONT_GLYPH() to get a pointer to a given glyph in a given font 2012-01-04 15:53:49 +00:00
yamt db1f5cf7f2 add a missing comma. 2012-01-04 15:48:54 +00:00
reinoud f7656de71f No reason why to have a larger pagefault stackframe for lwp0 2012-01-04 15:18:57 +00:00
reinoud 3a3d6c42df Zero the memory we claim for the stacks 2012-01-04 15:14:57 +00:00
reinoud cbdd12d472 don't try to unmap pv entries with munmap() that are / were already unmapped 2012-01-04 15:10:45 +00:00
jmcneill e51725528c implement cngetc and cnpollc 2012-01-04 14:53:57 +00:00
apb 0f20d9487a Instead of calling clockctl_ioctl directly, lookup the cdevsw and
call its d_ioctl function.  This should fix an undefined reference to
`clockctlioctl' when you build a kernel that has COMPAT_50 but does not
have pseudo-device clockctl.
2012-01-04 14:31:17 +00:00
reinoud 6192921cd1 Revert HZ to 100 what it was 2012-01-04 14:09:48 +00:00
jmcneill 411b87b501 add options NTP & pseudo-device clockctl 2012-01-04 14:04:12 +00:00
apb 989df4c71f Provide a COMPAT_50 version of the CLOCKCTL_NTP_ADJTIME ioctl.
When time_t was changed from 32 to 64 bits, this ioctl's number
was changed from _IOWR('C', 0x4, struct clockctl_ntp_adjtime)
to _IOWR('C', 0x8, struct clockctl_ntp_adjtime), but the data
structure did not change, so all the compat code has to do is
change the number and try again.
2012-01-04 13:45:55 +00:00
apb 7904ca964d When processing ioctl CLOCKCTL_NTP_ADJTIME, set the return value from
ntp_timestatus instead of leaving it uninitialised, and don't use
copyout(9) because args->retval is in kernel space, not user space.

Previously, running ntpd(8) in unprivileged mode would call
libc ntp_adjtime(), which would open /dev/clockctl and call
ioctl(CLOCKCTL_NTP_ADJTIME), which would fail with EFAULT.
2012-01-04 13:40:53 +00:00
reinoud 544f0c24da Add extra debugging info for the vncfb code 2012-01-04 13:31:30 +00:00
reinoud 4399b509b3 This uint shouldn't be there 2012-01-04 11:56:58 +00:00
reinoud aabdcdb8e4 mmap ppl is always < 16 so make it an uint8_t 2012-01-04 11:53:09 +00:00
wiz 68693617f8 Remove trailing whitespace. 2012-01-04 10:57:40 +00:00
wiz 88918228b2 Fix a sentence, following a hint by Abhinav Upadhyay. 2012-01-04 10:53:39 +00:00
cherry a4131cfa05 Tighten up locking in the network driver.
This probably needs more attention since xennet_rx_mbuf_free() hooks
into the network layer.
The locking can also be made finer grained. Performance testing could
add some insights.
2012-01-04 10:48:24 +00:00
cherry 84d4985e86 Use macro PDP_SIZE instead of numeric constant, for unshared PAE L3 entries.
Thanks jym@
2012-01-04 10:30:23 +00:00
macallan 86ab503f6f generate a better r3g3b2 colour map which actually produces white for 0xff 2012-01-04 08:38:20 +00:00
macallan 452ccd358c bump character buffers and cache to 32bit per character so flags we store
in the upper bits don't get lost
now autogenerated line drawing characters work with VCONS_DRAW_INTR and don't
get lost when switching screens
2012-01-04 08:25:03 +00:00
macallan a06da19618 split putchar into separate methods for bitmap and alpha fonts, use
FONT_IS_ALPHA()
2012-01-04 07:56:35 +00:00
riz 7e46691679 Build in 'utils' subdir before building miniroot, or the MD bits.
When making changes to 'sysinst', for example, one would expect them
reflected in the generated installers.
2012-01-04 03:43:34 +00:00
perseant 232630fdd2 lfs_writerd thread exits when no more LFSs are mounted. 2012-01-04 02:48:58 +00:00
kiyohara 133bfd2508 Use device_t instead of 'struct device *'.
Remove unnecessary \n.
2012-01-04 02:36:26 +00:00
macallan d5062c9e69 split putchar method into one for alpha fonts and one for bitmap fonts 2012-01-03 23:15:11 +00:00
macallan 0012d4bd2f add a macro to identify alpha fonts 2012-01-03 23:13:59 +00:00
reinoud 35600b8c2c Rework NetBSD/usermode pmap fixing some oddities that were left over from
earlier times when we were forced to run PIE executables and were forced to
use a KVM above the kernel.
2012-01-03 21:28:50 +00:00
christos 1b695acdbf avoid using %m in format. 2012-01-03 19:02:54 +00:00
christos 020854a4e2 don't use %m in openpam_log, because it does not necessarily call syslog()
to process the message.
2012-01-03 18:56:49 +00:00
joerg c09f2f1d25 If the default path doesn't result in a match, bail out early instead of
running into a segmentation fault. Based on patch by Abhinav Upadhyay.
2012-01-03 17:49:57 +00:00
pgoyette d5ff17bf98 Display current mount point, rather than previous one, when printing
the "replaying log to disk" message.

OK dholland@

Fixes PR kern/39609
2012-01-03 15:44:00 +00:00
reinoud 0e68596237 Set the total memory length to be ALL the space *before* the kernel. 2012-01-03 12:16:16 +00:00
reinoud afa1fedea0 Use M_WAITOK instead of M_NOWAIT for the stack allocations 2012-01-03 12:10:04 +00:00
reinoud cc21223919 Rename the debug printf's to use a thunk_ prefix to avoid confusion. 2012-01-03 12:05:00 +00:00
reinoud 8873d4afdb Fix logic that checks if its the kernel or a userland process that causes the
trap. Signal sending still needs to be addressed.
2012-01-03 10:53:46 +00:00
kiyohara f58fcf6acf Use device_t instead of 'struct device *'.
Call aprint_* in auto-config time.
2012-01-03 07:36:02 +00:00
skrll 28d6e7ce06 Fix the CPU #ifdefs 2012-01-03 06:18:24 +00:00
skrll 7bf579b1ee Tidy up the M[FT]CPU_* hv-specific instructions some more.
Same code before and after change.
2012-01-03 06:11:21 +00:00
macallan 7a8eb8051b support anti-aliased fonts in 32bit colour
enable with options RADEONFB_DEPTH_32
2012-01-03 00:25:49 +00:00
liamjfoy e3d3462211 Remove dead variable 2012-01-02 22:17:11 +00:00
perseant f9b3466d45 * Remove PGO_RECLAIM during lfs_putpages()' call to genfs_putpages(),
to avoid a live lock in the latter when reclaiming a vnode with
  dirty pages.

* Add a new segment flag, SEGM_RECLAIM, to note when a segment is
  being written for vnode reclamation, and record which inode is being
  reclaimed, to aid in forensic debugging.

* Add a new segment flag, SEGM_SINGLE, so that opportunistic writes
  can write a single segment's worth of blocks and then stop, rather
  than writing all the way up to the cleaner's reserved number of
  segments.

* Add assert statements to check mutex ownership is the way it ought
  to be, mostly in lfs_putpages; fix problems uncovered by this.

* Don't clear VU_DIROP until the inode actually makes its way to disk,
  avoiding a problem where dirop inodes could become separated
  (uncovered by a modified version of the "ckckp" forensic regression
  test).

* Move the vfs_getopsbyname() call into lfs_writerd.  Prepare code to
  make lfs_writerd notice when there are no more LFSs, and exit losing
  the reference, so that, in theory, the module can be unloaded.  This
  code is not enabled, since it causes a crash on exit.

* Set IN_MODIFIED on inodes flushed by lfs_flush_dirops.  Really we
  only need to set IN_MODIFIED if we are going to write them again
  (e.g., to write pages); need to think about this more.

Finally, several changes to help avoid "no clean segments" panics:

* In lfs_bmapv, note when a vnode is loaded only to discover whether
  its blocks are live, so it can immediately be recycled.  Since the
  cleaner will try to choose ~empty segments over full ones, this
  prevents the cleaner from (1) filling the vnode cache with junk, and
  (2) squeezing any unwritten writes to disk and running the fs out of
  segments.

* Overestimate by half the amount of metadata that will be required
  to fill the clean segments.  This will make the disk appear smaller,
  but should help avoid a "no clean segments" panic.

* Rearrange lfs_writerd.  In particular, lfs_writerd now pays
  attention to the number of clean segments available, and holds off
  writing until there is room.
2012-01-02 22:10:44 +00:00