]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agoDon't let find(1) depend on struct timeb.
ed [Tue, 9 Feb 2010 21:24:41 +0000 (21:24 +0000)]
Don't let find(1) depend on struct timeb.

This structure is deprecated and only used by ftime(2), which is part of
libcompat. The second argument of get_date() is unused, which means we
can just remove it entirely.

14 years agoRemove VOP_VPTOFH(9) from references in VFS(9), as it's a VOP,
trasz [Tue, 9 Feb 2010 21:01:18 +0000 (21:01 +0000)]
Remove VOP_VPTOFH(9) from references in VFS(9), as it's a VOP,
not VFS operation.

14 years agoAdd references to VOP_* man pages to vnode(9).
trasz [Tue, 9 Feb 2010 20:58:39 +0000 (20:58 +0000)]
Add references to VOP_* man pages to vnode(9).

14 years ago- Deal with some special cases [1]
gabor [Tue, 9 Feb 2010 19:37:12 +0000 (19:37 +0000)]
- Deal with some special cases [1]
- style(9) nits

Pointed out by: jilles [1]
Approved by: delphij (mentor)

14 years agoAdd -i to usage()
gavin [Tue, 9 Feb 2010 19:13:45 +0000 (19:13 +0000)]
Add -i to usage()

Noticed by: ru
MFC after: 5 days

14 years agoMove device specific flag configuration to attach routine.
yongari [Tue, 9 Feb 2010 19:12:06 +0000 (19:12 +0000)]
Move device specific flag configuration to attach routine.
The softc obtained in device probe wouldn't be the same one used in
device attach. Drivers should not assume any values stored in softc
structure in probe routine will be available for its attach routine.

14 years agoVarious fixes like spelling, style and syntax.
marcel [Tue, 9 Feb 2010 18:43:20 +0000 (18:43 +0000)]
Various fixes like spelling, style and syntax.

Submitted by: ru (thanks!)

14 years agoAdd description for libefi.
marcel [Tue, 9 Feb 2010 18:40:40 +0000 (18:40 +0000)]
Add description for libefi.

Pointed out by: ru

14 years agoAs it turns out, fmt(1) is being used by the base system as well as the
delphij [Tue, 9 Feb 2010 18:22:26 +0000 (18:22 +0000)]
As it turns out, fmt(1) is being used by the base system as well as the
ports tree extensively and it is probably a good idea to keep it
regardless of NO_MAIL setting.

Reported by: Alexander Best
Reviewed by: antoine
X-MFC-With: r203584

14 years agoWhen you have multiple addresses on the same network on different
imp [Tue, 9 Feb 2010 18:10:56 +0000 (18:10 +0000)]
When you have multiple addresses on the same network on different
interfaces (such as when you are part of a carp pool), and you run
rpcbind -h to restrict which interfaces have rpc services, rpcbind can
none-the-less return addresses that aren't in the -h list.  This patch
enforces the rule that when you specify -h on the command line, then
services returned from rpcbind must be to one of the addresses listed
in -h, or be a loopback address (since localhost is implicit when
running -h).

The root cause of this is the assumption in addrmerge that there can
be only one interface that matches a given network IP address.  This
turns out not to be the case.  To retain historical behavior, I didn't
try to fix the routine to prefer the address that the request came
into, since I didn't know the side effects that might cause in the
normal case.  My quick analysis suggests that it wouldn't be a
problem, but since this code is tricky I opted for the more
conservative patch of only restricting the reply when -h is in effect.

Hence, this change will have no effect when you are running rpcbind
without -h.

Reviewed by: alfred@
Sponsored by: iX Systems
MFC after: 2 weeks

14 years agoUnbreak building kernels with COMPAT_32 enabled. The actual support
marcel [Tue, 9 Feb 2010 17:20:00 +0000 (17:20 +0000)]
Unbreak building kernels with COMPAT_32 enabled. The actual support
for the PT_VM_ENTRY request from 32-bit processes will follow.

Pointy hat: marcel

14 years agoAnything that casts struct sockaddr * to struct sockaddr_foo is safe
imp [Tue, 9 Feb 2010 17:16:13 +0000 (17:16 +0000)]
Anything that casts struct sockaddr * to struct sockaddr_foo is safe
due to careful design.  We've not yet figured out how to properly
annotate the sockaddr structs to communicate this to the compiler and
there's a number of constructs in the tree that make this annotation
challenging.

As such, reduce warns to 3 here because this code really isn't warns 6
safe, even if it kinda sorta appears to be on intel (which has no such
alignment restrictions).  Warns 4 adds the -Wcast-align warning.

# fixes the mips tinderbox build

14 years agoAdd the definition of Mistakeholder
gnn [Tue, 9 Feb 2010 14:51:39 +0000 (14:51 +0000)]
Add the definition of Mistakeholder

14 years ago- pt_BR.ISO8859-1 catalog
gabor [Tue, 9 Feb 2010 10:47:44 +0000 (10:47 +0000)]
- pt_BR.ISO8859-1 catalog
- Add link to pt_PT.ISO8859-1

Submitted by: sylvio
Approved by: delphij (mentor)

14 years agoSet ut_line to "ftpd" for ftpd.
ed [Tue, 9 Feb 2010 07:35:12 +0000 (07:35 +0000)]
Set ut_line to "ftpd" for ftpd.

This makes it a little easier to figure out which application was
responsible for this log entry. Ideally we should add an ut_process or
something similar.

Suggested by: Vincent Poy <vincepoy gmail com>

14 years agoSMP support for the mips port.
neel [Tue, 9 Feb 2010 06:24:43 +0000 (06:24 +0000)]
SMP support for the mips port.

The platform that supports SMP currently is a SWARM with a dual-core Sibyte
processor. The kernel config file to use is SWARM_SMP.

Reviewed by: imp, rrs

14 years agoAdd PT_VM_TIMESTAMP and PT_VM_ENTRY so that the tracing process can
marcel [Tue, 9 Feb 2010 05:52:35 +0000 (05:52 +0000)]
Add PT_VM_TIMESTAMP and PT_VM_ENTRY so that the tracing process can
obtain the memory map of the traced process. PT_VM_TIMESTAMP can be
used to check if the memory map changed since the last time to avoid
iterating over all the VM entries unnecesarily.

MFC after: 1 month

14 years agoFixing compilation bustage by removing a stray comment fragment.
avatar [Tue, 9 Feb 2010 04:07:39 +0000 (04:07 +0000)]
Fixing compilation bustage by removing a stray comment fragment.

14 years agoDisable the use of the IAAD usb doorbell on NVidia controllers as it can cause
thompsa [Tue, 9 Feb 2010 00:38:40 +0000 (00:38 +0000)]
Disable the use of the IAAD usb doorbell on NVidia controllers as it can cause
the hardware to stall.

Submitted by: Hans Petter Selasky

14 years agoKernel modules for these drivers are installed on all platforms, so
gavin [Mon, 8 Feb 2010 23:30:28 +0000 (23:30 +0000)]
Kernel modules for these drivers are installed on all platforms, so
install the man pages on all platforms too.

14 years agoUpdate documentation for the iwn and iwnfw drivers: they support the 1000, 5150,...
brucec [Mon, 8 Feb 2010 21:38:42 +0000 (21:38 +0000)]
Update documentation for the iwn and iwnfw drivers: they support the 1000, 5150, 6000 and 6050 devices too, with firmware modules for the 4965, 1000, 5000, 5150 and 6000.

Add documentation for mwl and all the wireless firmware drivers.

Approved by: rrs (mentor)

14 years agoXorg isn't treated as a distribution, so /usr/X11R6/lib shouldn't be configured when...
brucec [Mon, 8 Feb 2010 21:29:34 +0000 (21:29 +0000)]
Xorg isn't treated as a distribution, so /usr/X11R6/lib shouldn't be configured when running ldconfig.

PR: bin/138945
Approved by: rrs (mentor)
MFC after: 3 days

14 years agoInstall the padlock(4) man page on amd64 as well as i386, to match the
gavin [Mon, 8 Feb 2010 21:24:12 +0000 (21:24 +0000)]
Install the padlock(4) man page on amd64 as well as i386, to match the
platforms where the driver itself is compiled and installed.

PR: docs/130895
Reported by: George Hartzell <hartzell alerce.com>
MFC after: 1 week

14 years agoInitialize the execfile argument to NULL instead of _PATH_DEVNULL. This allows the...
brucec [Mon, 8 Feb 2010 21:23:48 +0000 (21:23 +0000)]
Initialize the execfile argument to NULL instead of _PATH_DEVNULL. This allows the -M option to be used without specifying -N.

PR: bin/138146
Approved by: rrs (mentor)
MFC after: 3 days

14 years agoUpdate .Dt to reflect the fact that these drivers and man pages are
gavin [Mon, 8 Feb 2010 21:01:41 +0000 (21:01 +0000)]
Update .Dt to reflect the fact that these drivers and man pages are
installed on more than just i386.

14 years agoIf there is only one NIC in the system that is up and running, the
mbr [Mon, 8 Feb 2010 20:57:49 +0000 (20:57 +0000)]
If there is only one NIC in the system that is up and running, the
interface specifier on the command line can be ommited.

Besides of this, the bpf is being reused for each machine
that has to be woken up.

Submitted by: Marc Balmer <marc@msys.ch>

14 years agoDocument the usfs driver and the NO_SYSCTL_DESCR option, and update the comment for...
brucec [Mon, 8 Feb 2010 20:57:42 +0000 (20:57 +0000)]
Document the usfs driver and the NO_SYSCTL_DESCR option, and update the comment for umass.
Don't include the sysctl description variables in aic7xxx when NO_SYSCTL_DESCR is used.

Approved by: rrs (mentor)

14 years agoUpdate .Dt on these man pages: the kernel modules and corresponding man
gavin [Mon, 8 Feb 2010 20:53:29 +0000 (20:53 +0000)]
Update .Dt on these man pages: the kernel modules and corresponding man
pages are installed on more platforms than just i386.

14 years agoAdd multicast key search support. This fixes corrupted mcast packets
rpaulo [Mon, 8 Feb 2010 20:23:20 +0000 (20:23 +0000)]
Add multicast key search support. This fixes corrupted mcast packets
when we have more than one hostap vap.

Submitted by: Russell Yount <russell.yount at gmail.com>
MFC after: 2 weeks

14 years agoFix TX power problems with AR9285.
rpaulo [Mon, 8 Feb 2010 20:12:01 +0000 (20:12 +0000)]
Fix TX power problems with AR9285.

14 years agoFix typo and remove extra spaces.
brucec [Mon, 8 Feb 2010 20:04:16 +0000 (20:04 +0000)]
Fix typo and remove extra spaces.

Approved by: rrs (mentor)
MFC after: 3 days

14 years agoFix typo in comment.
rpaulo [Mon, 8 Feb 2010 20:04:02 +0000 (20:04 +0000)]
Fix typo in comment.

14 years agoRemove the usb2_input_kbd directive that was missed during the renaming of the driver...
brucec [Mon, 8 Feb 2010 19:48:33 +0000 (19:48 +0000)]
Remove the usb2_input_kbd directive that was missed during the renaming of the drivers in the usb2 stack.

Approved by: rrs (mentor)

14 years agoRename usb2_ structures and variables to usb_.
brucec [Mon, 8 Feb 2010 19:44:09 +0000 (19:44 +0000)]
Rename usb2_ structures and variables to usb_.

Approved by: rrs (mentor)
Discussed with: hps

14 years agosh: Make sure the mail2.0 test can actually fail if $MAIL is not touched.
jilles [Mon, 8 Feb 2010 18:57:18 +0000 (18:57 +0000)]
sh: Make sure the mail2.0 test can actually fail if $MAIL is not touched.

14 years agoIntroduce new rc.conf variable firewall_coscripts. It can be used to
emax [Mon, 8 Feb 2010 18:51:24 +0000 (18:51 +0000)]
Introduce new rc.conf variable firewall_coscripts. It can be used to
specify list of executables and/or rc scripts that should be executed
after firewall starts/stops.

Submitted by: Yuri Kurenkov <y dot kurenkov at init dot ru>
Reviewed by: rhodes, rc@
MFC after: 1 week

14 years agoEnsure that tkip_mixing_phase1() is called after a rekeying event when
bschmidt [Mon, 8 Feb 2010 18:16:59 +0000 (18:16 +0000)]
Ensure that tkip_mixing_phase1() is called after a rekeying event when
useing plain s/w crypto.

Approved by: rpaulo (mentor)
Reviewed by: sam

14 years agoMake sure that FTS_COMFOLLOW is not set when the -P option is in effect.
jh [Mon, 8 Feb 2010 15:42:55 +0000 (15:42 +0000)]
Make sure that FTS_COMFOLLOW is not set when the -P option is in effect.
Otherwise the -i option will show the inode number of the referenced file
for symbolic links given on the command line. Similarly, the file color
was printed according to the link target in colorized output.

PR: bin/102394
Reviewed by: jilles
MFC after: 2 weeks

14 years agoRemove unused LIBCOMPAT keyword from syscalls.master.
ed [Mon, 8 Feb 2010 10:02:01 +0000 (10:02 +0000)]
Remove unused LIBCOMPAT keyword from syscalls.master.

14 years agoFall back to ASCII codepoints for box drawing.
ed [Mon, 8 Feb 2010 09:16:59 +0000 (09:16 +0000)]
Fall back to ASCII codepoints for box drawing.

Even though the default VGA font provides box drawing fonts, there is no
guarantee any font will provide these as well (i.e. ISO-8859-*, KOI8-R).
Just use ASCII characters for box drawing.

PR: kern/141633

14 years agoSet waiters flag before checking semaphore's counter,
davidxu [Mon, 8 Feb 2010 07:31:05 +0000 (07:31 +0000)]
Set waiters flag before checking semaphore's counter,
otherwise we might lose a wakeup. Tested on postgresql database server.

14 years agoImprove checking whether an ARM VA has a valid mapping before performing cache
raj [Sun, 7 Feb 2010 20:48:57 +0000 (20:48 +0000)]
Improve checking whether an ARM VA has a valid mapping before performing cache
sync.

VIPT/PIPT caches need valid VA-PA mapping in PTE for a cache operation to
succeed (unlike VIVT). Prior to this fix pmap was using l2pte_valid() for that
check, but this is not sufficient as the function merely checks if a PTE
exists (there can be existing but _invalid_ entries in the table).

A new pmap_has_valid_mapping() routine is introduced to do this job right by
checking proper PTE flags.

Among other potential problems this cures coherency issues with L2 caches on
MV-78100.

Submitted by: Grzegorz Bernacki, Piotr Ziecik
Reviewed, tested by: marcel
Obtained from: Semihalf
MFC after: 1 week

14 years agoCorrect arguments to free_unr(), "item" was missing.
gavin [Sun, 7 Feb 2010 20:36:23 +0000 (20:36 +0000)]
Correct arguments to free_unr(), "item" was missing.

MFC after: 1 week

14 years agomerge from my tbemd branch: cmpdi2 and ucmpdi2 are genereated when the
imp [Sun, 7 Feb 2010 19:49:01 +0000 (19:49 +0000)]
merge from my tbemd branch: cmpdi2 and ucmpdi2 are genereated when the
inline limit is pushed to a very low level.  Include them here until
we can find a better way to optionally include them.  They are small...

14 years agoAdd support for a few more Sony-specific ACPI features (default display
gavin [Sun, 7 Feb 2010 18:36:30 +0000 (18:36 +0000)]
Add support for a few more Sony-specific ACPI features (default display
brightness, wired LAN power and bass gain), and update the description of
one previously unknown feature (display contrast).  While here, expand on
a comment and remove two defines left over from an old version of the code.

Also update man page to document the above changes, and correct grammar.

PR: kern/127581

14 years agoBump .Dd for r203620
gavin [Sun, 7 Feb 2010 18:06:55 +0000 (18:06 +0000)]
Bump .Dd for r203620

MFC after: 1 week

14 years agoDocument support for the D-Link DFE520-TX card (supported with the vr(4)
gavin [Sun, 7 Feb 2010 18:05:12 +0000 (18:05 +0000)]
Document support for the D-Link DFE520-TX card (supported with the vr(4)
driver)

PR: kern/135989
Submitted by: "Rashid N. Achilov"  citycat4 ngs.ru

14 years agoSpelling nit
gavin [Sun, 7 Feb 2010 18:00:13 +0000 (18:00 +0000)]
Spelling nit

14 years agoTell the compiler these structures are aligned to a byte boundary.
imp [Sun, 7 Feb 2010 17:05:22 +0000 (17:05 +0000)]
Tell the compiler these structures are aligned to a byte boundary.
All the elements of these structs are char anyway, so it won't hurt
performance.

Bump warns back up to the default.

# we likely should have CTASSERTS to make sure they are the right size.
# but with libarchive based tar maybe we shouldn't bother.

14 years agoRemove statistics from the TTY queues.
ed [Sun, 7 Feb 2010 15:42:15 +0000 (15:42 +0000)]
Remove statistics from the TTY queues.

I added counters to see how often fast copying to userspace was actually
performed, which was only useful during development. Remove these
statistics now we know it to be effective.

14 years agoFix whitespace in pho's entry, results in nicer output files.
brueffer [Sun, 7 Feb 2010 13:59:03 +0000 (13:59 +0000)]
Fix whitespace in pho's entry, results in nicer output files.

PR: 143613
Submitted by: pluknet <pluknet@gmail.com>
Committed from: Debian/kFreeBSD talk at FOSDEM

14 years agoInitialize fromlen before calling recvfrom to avoid passing in random
imp [Sun, 7 Feb 2010 07:50:41 +0000 (07:50 +0000)]
Initialize fromlen before calling recvfrom to avoid passing in random
stack garbage.

Obtained from: NetBSD 1.13

14 years agoSimplify, remove unnecessary code.
kientzle [Sun, 7 Feb 2010 02:04:58 +0000 (02:04 +0000)]
Simplify, remove unnecessary code.

14 years agoMerge a bunch of refactoring from Joerg Sonnenberger to
kientzle [Sun, 7 Feb 2010 02:00:26 +0000 (02:00 +0000)]
Merge a bunch of refactoring from Joerg Sonnenberger to
isolate common code used by tar and cpio (and useful to other
libarchive clients).  The functions here are prefixed with
"lafe" (libarchive front-end) to indicate their use.

14 years agoStyle & Portability: Use archive_entry methods to examine
kientzle [Sun, 7 Feb 2010 01:35:28 +0000 (01:35 +0000)]
Style & Portability:  Use archive_entry methods to examine
file information, change some functions to static, remove
some unused headers.

14 years agoVarious portability workarounds for non-FreeBSD platforms.
kientzle [Sun, 7 Feb 2010 01:26:45 +0000 (01:26 +0000)]
Various portability workarounds for non-FreeBSD platforms.

14 years agoRestructure the logic that determines when we're crossing a mount
kientzle [Sun, 7 Feb 2010 01:22:55 +0000 (01:22 +0000)]
Restructure the logic that determines when we're crossing a mount
point.  In particular, this carves out a place for detecting and
excluding synthetic or network filesystems.

14 years agoMinor code rework.
kientzle [Sun, 7 Feb 2010 01:16:05 +0000 (01:16 +0000)]
Minor code rework.

14 years agoTrim out some unused configuration variables, remove
kientzle [Sun, 7 Feb 2010 01:07:58 +0000 (01:07 +0000)]
Trim out some unused configuration variables, remove
some unused headers, etc.

14 years agoAdd files for NO_MAIL, NO_SENDMAIL and NO_MAILWRAPPER.
delphij [Sun, 7 Feb 2010 00:38:31 +0000 (00:38 +0000)]
Add files for NO_MAIL, NO_SENDMAIL and NO_MAILWRAPPER.

MFC after: 2 weeks

14 years agosh: Do not stat() $MAIL/$MAILPATH in non-interactive shells.
jilles [Sat, 6 Feb 2010 22:57:24 +0000 (22:57 +0000)]
sh: Do not stat() $MAIL/$MAILPATH in non-interactive shells.

These may be NFS mounted, and we should not touch them unless we are going
to do something useful with the information.

14 years agoAdd sane-port (Scanner Access Now Easy) as port 6566.
bms [Sat, 6 Feb 2010 21:22:01 +0000 (21:22 +0000)]
Add sane-port (Scanner Access Now Easy) as port 6566.

Obtained from:  http://www.iana.org/assignments/port-numbers
MFC after:      3 days

14 years agoFix single-stepping when the kernel was entered through the EPC syscall
marcel [Sat, 6 Feb 2010 20:46:14 +0000 (20:46 +0000)]
Fix single-stepping when the kernel was entered through the EPC syscall
path. When the taken branch leaves the kernel and enters the process,
we still need to execute the instruction at that address. Don't raise
SIGTRAP when we branch into the process, but enable single-stepping
instead.

14 years agoFill in some missing error handling, be a little more careful about
kientzle [Sat, 6 Feb 2010 20:41:25 +0000 (20:41 +0000)]
Fill in some missing error handling, be a little more careful about
error reporting, prefer int64_t to off_t.

14 years agobsdtar doesn't actually know what compression is supported by libarchive
kientzle [Sat, 6 Feb 2010 20:36:14 +0000 (20:36 +0000)]
bsdtar doesn't actually know what compression is supported by libarchive
and it should not pretend that it does.  It should just pass along the
user's request and handle an error if it's not supported.

14 years agoRefactor the siginfo/sigusr1 handling. The read/write reporting
kientzle [Sat, 6 Feb 2010 20:27:36 +0000 (20:27 +0000)]
Refactor the siginfo/sigusr1 handling.  The read/write reporting
is sufficiently different that it was simpler to just put separate
reporting functions into read.c and write.c rather than try to have
a single all-purpose reporting function.
Switch to a custom function for converting int64_t to a string; in
the portable version, this saves a lot of configuration headaches
trying to decipher the platform printf().

14 years agoUpdate files to remove when MK_KERBEROS=no.
antoine [Sat, 6 Feb 2010 20:21:03 +0000 (20:21 +0000)]
Update files to remove when MK_KERBEROS=no.

14 years agoAdd files to remove when MK_JAIL=no.
antoine [Sat, 6 Feb 2010 20:11:23 +0000 (20:11 +0000)]
Add files to remove when MK_JAIL=no.

14 years agoUpdate files to remove when MK_IPX=no.
antoine [Sat, 6 Feb 2010 20:09:55 +0000 (20:09 +0000)]
Update files to remove when MK_IPX=no.

14 years agoAdd files to remove when MK_IPFW=no.
antoine [Sat, 6 Feb 2010 20:08:46 +0000 (20:08 +0000)]
Add files to remove when MK_IPFW=no.

14 years agoMove rescue/ping6 from files to remove when MK_INET6=no to file to remove
antoine [Sat, 6 Feb 2010 20:06:06 +0000 (20:06 +0000)]
Move rescue/ping6 from files to remove when MK_INET6=no to file to remove
when MK_INET6_SUPPORT=no.  (MK_INET6=no implies MK_INET6_SUPPORT=no)

14 years agoAdd file to remove when MK_IDEA=no.
antoine [Sat, 6 Feb 2010 20:02:56 +0000 (20:02 +0000)]
Add file to remove when MK_IDEA=no.

14 years agoAdd files to remove when MK_GSSAPI=no.
antoine [Sat, 6 Feb 2010 20:00:35 +0000 (20:00 +0000)]
Add files to remove when MK_GSSAPI=no.

14 years agoRemove all traces of an experiment for handling "root" on Windows systems.
kientzle [Sat, 6 Feb 2010 19:56:32 +0000 (19:56 +0000)]
Remove all traces of an experiment for handling "root" on Windows systems.

14 years agoReformat the Makefile slightly.
kientzle [Sat, 6 Feb 2010 19:53:48 +0000 (19:53 +0000)]
Reformat the Makefile slightly.

14 years agoAllow -b up to 8192. I've had reports from people who routinely
kientzle [Sat, 6 Feb 2010 19:48:59 +0000 (19:48 +0000)]
Allow -b up to 8192.  I've had reports from people who routinely
use -b 2048 (1MiB block size).  Setting the limit to 8192 should
allow some room for growth while still helping people who mistakenly
put in byte counts here instead of block counts.

14 years agoDiff reduction compared to portable bsdtar 2.8: Move the
kientzle [Sat, 6 Feb 2010 19:44:37 +0000 (19:44 +0000)]
Diff reduction compared to portable bsdtar 2.8:  Move the
program name into a global, which eliminates an extra
argument from a lot of places.

14 years agoRevert unwanted changes in revision 203422.
rpaulo [Sat, 6 Feb 2010 19:24:16 +0000 (19:24 +0000)]
Revert unwanted changes in revision 203422.

Spotted by: sam

14 years agoAdd myself.
bschmidt [Sat, 6 Feb 2010 18:10:58 +0000 (18:10 +0000)]
Add myself.

Approved by: rpaulo (mentor)

14 years ago- Cast intptr_t, pid_t and time_t values to intmax_t and use %jd with
jh [Sat, 6 Feb 2010 16:01:38 +0000 (16:01 +0000)]
- Cast intptr_t, pid_t and time_t values to intmax_t and use %jd with
  printf.
- Cast the system call return value to long and use %ld in a printf in
  ktrsysret().

PR: bin/123774
MFC after: 2 weeks

14 years agoAdd missing coma.
trasz [Sat, 6 Feb 2010 14:10:45 +0000 (14:10 +0000)]
Add missing coma.

14 years agoPropagate the vlan eventis to the underlying interfaces/members so they can do initia...
eri [Sat, 6 Feb 2010 13:49:35 +0000 (13:49 +0000)]
Propagate the vlan eventis to the underlying interfaces/members so they can do initialization of hw related features.

PR: kern/141646
Reviewed by: thompsa
Approved by: thompsa(co-mentor)
MFC after: 2 weeks

14 years agoAdd the -i option to the synopsis.
gavin [Sat, 6 Feb 2010 13:39:08 +0000 (13:39 +0000)]
Add the -i option to the synopsis.

Submitted by: dhw
MFC after: 1 week (with r203310)

14 years agoacpi_cpu: prefer _OSC over _PDC, just in case
avg [Sat, 6 Feb 2010 12:48:06 +0000 (12:48 +0000)]
acpi_cpu: prefer _OSC over _PDC, just in case

_PDC was deprecated in favor of _OSC long time ago, but it
seems that they still peacefully coexist and in some case
only _PDC is present.
Still _OSC provides a reacher interface and is capable to
report back its status.
If the status is non-zero, then report it, we may find
it useful to understand what firmware expects from OS.
Also clean up some comments that became less useful over time.

Reviewed by: njl, jhb, rpaulo
MFC after: 3 weeks

14 years agoDocument one more file descriptor type and two more vnode types.
antoine [Sat, 6 Feb 2010 11:29:06 +0000 (11:29 +0000)]
Document one more file descriptor type and two more vnode types.

MFC after: 2 weeks

14 years agoMap and report actual video memory we need.
jkim [Sat, 6 Feb 2010 00:52:42 +0000 (00:52 +0000)]
Map and report actual video memory we need.

14 years agoCorrect two typos.
delphij [Sat, 6 Feb 2010 00:25:46 +0000 (00:25 +0000)]
Correct two typos.

Reported by: Brandon Falk <falkman gamozo org>
MFC after: 1 week

14 years agoRemove two files that are not needed by FreeBSD.
delphij [Fri, 5 Feb 2010 23:17:59 +0000 (23:17 +0000)]
Remove two files that are not needed by FreeBSD.

Approved by: pjd
MFC after: 2 weeks

14 years agoFix gcore so that it can have the '-s' flag without hanging.
mjacob [Fri, 5 Feb 2010 18:28:43 +0000 (18:28 +0000)]
Fix gcore so that it can have the '-s' flag without hanging.

14 years agoFix a bug in previous revision.
delphij [Fri, 5 Feb 2010 18:17:17 +0000 (18:17 +0000)]
Fix a bug in previous revision.

The bc(1) program may need to deal with files when it's being run in
interactive mode, so we can not blindly use interactive mode (in turn
use libedit) but need to check if the input source is really the standard
input.

This commit should fix a regression where 'bc -l' would not parse the
mathlib.

Reported by: trasz

14 years agoReplace some homegrown functions with better/correct ones.
jkim [Fri, 5 Feb 2010 18:00:24 +0000 (18:00 +0000)]
Replace some homegrown functions with better/correct ones.

14 years agoUse new helper functions to set PCIe max read request size.
mav [Fri, 5 Feb 2010 17:20:48 +0000 (17:20 +0000)]
Use new helper functions to set PCIe max read request size.

14 years agoAdd pci_get|set_max_read_req() helper functions to control maximum PCIe
mav [Fri, 5 Feb 2010 17:18:48 +0000 (17:18 +0000)]
Add pci_get|set_max_read_req() helper functions to control maximum PCIe
read request size.

Reviewed by: jhb@

14 years agoAdd a description of supported PowerPC hardware to the hardware notes.
nwhitehorn [Fri, 5 Feb 2010 16:41:19 +0000 (16:41 +0000)]
Add a description of supported PowerPC hardware to the hardware notes.

14 years agoReport SATA300 chips also as SATA.
mav [Fri, 5 Feb 2010 14:41:18 +0000 (14:41 +0000)]
Report SATA300 chips also as SATA.

14 years agoWhen hacking INQUIRY result, make sure that it is right INQUIRY and there
mav [Fri, 5 Feb 2010 12:40:18 +0000 (12:40 +0000)]
When hacking INQUIRY result, make sure that it is right INQUIRY and there
is enough of result to hack.

14 years agoCorrect a comment - we are not setting the exception level but rather are
neel [Fri, 5 Feb 2010 06:36:03 +0000 (06:36 +0000)]
Correct a comment - we are not setting the exception level but rather are
disabling interrupts.

Simplify register usage - we can directly load 'curpcb' into 'k1' after
interrupts are disabled. There is no need to do so indirectly through 'a1'.

14 years agoInitialize interrupt controller early on.
neel [Fri, 5 Feb 2010 03:22:04 +0000 (03:22 +0000)]
Initialize interrupt controller early on.

14 years agoReimplement all functions to access the system control unit in C.
neel [Fri, 5 Feb 2010 03:20:47 +0000 (03:20 +0000)]
Reimplement all functions to access the system control unit in C.

The only reason we need to have the sb_load64() and sb_store64()
functions in assembly is to cheat the compiler and generate the
'ld' and 'sd' instructions which it otherwise will not do when
compiling for a 32-bit architecture. There are some 64-bit
registers in the SCD unit that must be accessed using 64-bit
load and store instructions.

14 years agostyle: don't need to use braces for single line control statements.
neel [Fri, 5 Feb 2010 02:40:42 +0000 (02:40 +0000)]
style: don't need to use braces for single line control statements.