Commit Graph

208077 Commits

Author SHA1 Message Date
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
reinoud
b9d601ff9f Remove tests that are dubious and should be (re)moved anyway. 2012-01-02 22:02:51 +00:00
reinoud
6e429eb748 Add UDF, NILFS and NFS to the standard file systems and boost the symbol table
size to accomodate for this.
2012-01-02 21:48:14 +00:00
perseant
72d61f7290 In lfs_cleanerd, check errno earlier, to avoid premature exit when the
real errno was EAGAIN.

When coalescing, check against NULL to avoid seg fault.
2012-01-02 21:35:17 +00:00
dholland
b972515e63 Remove unnecessary cast to caddr_t. 2012-01-02 21:29:55 +00:00
dholland
677bc7fd8c stdlib.h, not malloc.h 2012-01-02 21:29:29 +00:00
wiz
d6829e5b30 Bump date for previous. Move RCS Id to top of file. 2012-01-02 18:07:21 +00:00
wiz
b3da5e68a9 Remove trailing whitespace. 2012-01-02 18:06:37 +00:00
wiz
067d9a870e Use more markup. New sentence, new line. Sort sections.
Bump date for previous.
2012-01-02 18:04:34 +00:00
wiz
adca3c43ee New sentence, new line. Bump date for previous. 2012-01-02 18:02:00 +00:00
skrll
fb2a616612 From OpenBSD...
Fix encoding of DIAG instructions in the MFCPU_T and MTCPU_T macros. MTCPU_T
was encoded as a read instruction, while MFCPU_T was encoded as a
read-through-TH instruction, although the only uses of it concern registers
read through CH.

(You are not supposed to understand this, this is a dark corner of undocumented
rotten PA-RISC bowels).

Cache SID hashing will now correctly be disabled on PCXS, PCXT and PCXT'
processors.

Proper encoding from the old PA-RISC mklinux sources; tested on 720 (PCXS)
and 715/75 (PCXT); ok kettenis@
2012-01-02 16:13:12 +00:00
dholland
27eed90c42 Clarify the behavior of exit(x) for out-of-range x. PR 45769 2012-01-02 15:55:29 +00:00
rkujawa
5ec5041c48 Correct the include path. 2012-01-02 15:41:51 +00:00
reinoud
7142b8ed9f Do release all l2 pages on destroy 2012-01-02 09:49:12 +00:00
wiz
dafcaac4c0 Remove unnecessary quoting. From Abhinav Upadhyay. 2012-01-02 00:35:53 +00:00
wiz
d62e358d67 Fix typo, from Abhinav Upadhyay. 2012-01-02 00:35:02 +00:00
jmcneill
31469ba145 fix range check for mmap 2012-01-02 00:20:30 +00:00