]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoMove table list to a separate function.
Roman Kurakin [Sun, 21 Sep 2008 12:54:09 +0000 (12:54 +0000)]
Move table list to a separate function.

15 years agoFix error message content.
Marko Zec [Sun, 21 Sep 2008 07:33:33 +0000 (07:33 +0000)]
Fix error message content.

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

15 years agofix compilation on 64-bit platform w/ ATH_DEBUG
Sam Leffler [Sun, 21 Sep 2008 00:30:33 +0000 (00:30 +0000)]
fix compilation on 64-bit platform w/ ATH_DEBUG

15 years agofix memory smash on lp64 platforms; mostly noticeable in user mode
Sam Leffler [Sun, 21 Sep 2008 00:28:54 +0000 (00:28 +0000)]
fix memory smash on lp64 platforms; mostly noticeable in user mode
as being unable to associate

15 years agoFix build.
Kai Wang [Sun, 21 Sep 2008 00:27:16 +0000 (00:27 +0000)]
Fix build.

15 years agoeliminate hardwired lists; use the media type to autoconfig
Sam Leffler [Sun, 21 Sep 2008 00:26:13 +0000 (00:26 +0000)]
eliminate hardwired lists; use the media type to autoconfig

15 years agoAdd support for option "-M", which is used to operate ar(1) in a
Kai Wang [Sat, 20 Sep 2008 22:10:10 +0000 (22:10 +0000)]
Add support for option "-M", which is used to operate ar(1) in a
script mode like the MRI(Microtec Research Inc.) "librarian" program.

Originally this option is provided by Binutils ar(1) to ease the
transition for developers who are used to writing "librarian" scripts.

We added this option to BSD ar(1) because:

1. Further improve the compatibility with Binutils ar(1).
2. There are still a few software using this -M option. (at least one
in our ports collection)

Suggested by: rink & erwin

15 years ago<osreldate.h> does not have a forward declration of getosreldate(), so
Craig Rodrigues [Sat, 20 Sep 2008 21:12:54 +0000 (21:12 +0000)]
<osreldate.h> does not have a forward declration of getosreldate(), so
remove it from this man page.

MFC after: 3 days

15 years agoAllow the d_mmap driver methods to use cdevpriv KPI during verification
Konstantin Belousov [Sat, 20 Sep 2008 19:56:02 +0000 (19:56 +0000)]
Allow the d_mmap driver methods to use cdevpriv KPI during verification
phase of establishing mapping.

Discussed with: rwatson, jhb, rnoland
Tested by: rnoland
MFC after: 3 days

15 years agofdescfs, devfs, mqueuefs, nfs, portalfs, pseudofs, tmpfs and xfs
Konstantin Belousov [Sat, 20 Sep 2008 19:50:52 +0000 (19:50 +0000)]
fdescfs, devfs, mqueuefs, nfs, portalfs, pseudofs, tmpfs and xfs
initialize the vattr structure in VOP_GETATTR() with VATTR_NULL(),
vattr_null() or by zeroing it. Remove these to allow preinitialization
of fields work in vn_stat(). This is needed to get birthtime initialized
correctly.

Submitted by:   Jaakko Heinonen <jh saunalahti fi>
Discussed on:   freebsd-fs
MFC after: 1 month

15 years agoInitialize va_rdev to NODEV instead of 0 or VNOVAL in VOP_GETATTR().
Konstantin Belousov [Sat, 20 Sep 2008 19:49:15 +0000 (19:49 +0000)]
Initialize va_rdev to NODEV instead of 0 or VNOVAL in VOP_GETATTR().
NODEV is more appropriate when va_rdev doesn't have a meaningful value.

Submitted by:   Jaakko Heinonen <jh saunalahti fi>
Suggested by:   bde
Discussed on:   freebsd-fs
MFC after: 1 month

15 years agoInitialize va_rdev to NODEV and va_fsid to VNOVAL before the
Konstantin Belousov [Sat, 20 Sep 2008 19:48:24 +0000 (19:48 +0000)]
Initialize va_rdev to NODEV and va_fsid to VNOVAL before the
VOP_GETATTR() call in vn_stat(). Thus if a file system doesn't
initialize those fields in VOP_GETATTR() they will have a sane default
value.

Submitted by:   Jaakko Heinonen <jh saunalahti fi>
Discussed on:   freebsd-fs
MFC after: 1 month

15 years agoInitialize va_flags and va_filerev properly in VOP_GETATTR(). Don't
Konstantin Belousov [Sat, 20 Sep 2008 19:46:45 +0000 (19:46 +0000)]
Initialize va_flags and va_filerev properly in VOP_GETATTR(). Don't
initialize va_vaflags and va_spare because they are not part of the
VOP_GETATTR() API. Also don't initialize birthtime to ctime or zero.

Submitted by:   Jaakko Heinonen <jh saunalahti fi>
Reviewed by: bde
Discussed on:   freebsd-fs
MFC after: 1 month

15 years agoInitialize birthtime fields in vn_stat() to prevent stat(2) from
Konstantin Belousov [Sat, 20 Sep 2008 19:43:22 +0000 (19:43 +0000)]
Initialize birthtime fields in vn_stat() to prevent stat(2) from
returning uninitialized birthtime. Most file systems don't initialize
birthtime properly in their VOP_GETTATTR().

Submitted by:   Jaakko Heinonen <jh saunalahti fi>
Reviewed by: bde
Discussed on:   freebsd-fs
MFC after: 1 month

15 years agoFix clone destruction, can't use the simple api because that does not remove
Andrew Thompson [Sat, 20 Sep 2008 19:38:37 +0000 (19:38 +0000)]
Fix clone destruction, can't use the simple api because that does not remove
the ifnet from cloner's list.  Expose if_clone_destroyif api to do this.

Submitted by: sam

15 years agoFree allocated memory.
Roman Kurakin [Sat, 20 Sep 2008 19:25:02 +0000 (19:25 +0000)]
Free allocated memory.

15 years agoRemove some unused variables.
Roman Kurakin [Sat, 20 Sep 2008 16:46:19 +0000 (16:46 +0000)]
Remove some unused variables.

15 years agoMFamd64 SVN rev 179749 CVS rev 1.620
Alan Cox [Sat, 20 Sep 2008 16:24:42 +0000 (16:24 +0000)]
MFamd64 SVN rev 179749 CVS rev 1.620
  Reverse the direction of pmap_promote_pde()'s traversal over the specified
  page table page.  The direction of the traversal can matter if
  pmap_promote_pde() has to remove write access (PG_RW) from a PTE that
  hasn't been modified (PG_M).  In general, if there are two or more such
  PTEs to choose among, it is better to write protect the one nearer the
  high end of the page table page rather than the low end.  This is because
  most programs access memory in an ascending direction.  The net result of
  this change is a sometimes significant reduction in the number of failed
  promotion attempts and the number of pages that are write protected by
  pmap_promote_pde().

MFamd64 SVN rev 179777 CVS rev 1.621
  Tweak the promotion test in pmap_promote_pde().  Specifically, test PG_A
  before PG_M.  This sometimes prevents unnecessary removal of write access
  from a PTE.  Overall, the net result is fewer demotions and promotion
  failures.

15 years agoStyle(9) the show_nat() function.
Roman Kurakin [Sat, 20 Sep 2008 16:17:49 +0000 (16:17 +0000)]
Style(9) the show_nat() function.

15 years agoDo not do the useless job for an empty table.
Roman Kurakin [Sat, 20 Sep 2008 15:54:22 +0000 (15:54 +0000)]
Do not do the useless job for an empty table.

MFC after: 1 month

15 years agoRevert this part of r183203 which wasn't meant to be committed, yet.
Marius Strobl [Sat, 20 Sep 2008 11:46:07 +0000 (11:46 +0000)]
Revert this part of r183203 which wasn't meant to be committed, yet.

15 years agoRemove duplicate entry accidentally introduced with r183202.
Marius Strobl [Sat, 20 Sep 2008 11:34:18 +0000 (11:34 +0000)]
Remove duplicate entry accidentally introduced with r183202.

15 years agoSome of the assembly files depend on v9a/v9b-only instructions so
Marius Strobl [Sat, 20 Sep 2008 11:28:42 +0000 (11:28 +0000)]
Some of the assembly files depend on v9a/v9b-only instructions so
compile these with -mcpu=ultrasparc (which is the hard-coded default
of our system compiler), which allows the remainder of the kernel to
be compiled with "only" -mcpu=v9 for reference and testing purposes.

15 years agoUse the STICK timers only when absolutely necessary, i.e. if a machine
Marius Strobl [Sat, 20 Sep 2008 11:26:13 +0000 (11:26 +0000)]
Use the STICK timers only when absolutely necessary, i.e. if a machine
consists of CPUs running at different speeds, for driving hardclock as
these timers in turn are driven at frequencies as low as 5MHz, resulting
in bad granularity compared to the TICK timers. However, don't employ
the workaround for the BlackBird erratum #1 when using the TICK timer
on machines with cheetah-class CPUs for performance reasons.

Reported by: Florian Smeets

15 years agoMove #defines for MRT-related constants from net/route.c to
Marko Zec [Sat, 20 Sep 2008 09:09:25 +0000 (09:09 +0000)]
Move #defines for MRT-related constants from net/route.c to
net/route.h, because the vnet code will need those constants as
well.

Reviewed by: bz
Approved by: julian (mentor)
MFC after: never

15 years agoFix issue with tom loading by moving cxgb_log_tcb in to tom
Kip Macy [Fri, 19 Sep 2008 21:12:19 +0000 (21:12 +0000)]
Fix issue with tom loading by moving cxgb_log_tcb in to tom

MFC after: 3 days

15 years agoBackout rev 183181. It appears that I should have been using boot-device
Maxim Sobolev [Fri, 19 Sep 2008 19:49:58 +0000 (19:49 +0000)]
Backout rev 183181. It appears that I should have been using boot-device
of "cd:,\\:tbxi" with properly configured boot.tbxi, instead of booting
\boot\loader directly. Rev 183168 could probably stay, since it can be
viewed as an anti-foot-shooting measure and has no impact on normal
operation. I can revert it as well, if anybody objects.

15 years agoAdd atheros HAL building so the IDT kernel can build.
Warner Losh [Fri, 19 Sep 2008 19:46:11 +0000 (19:46 +0000)]
Add atheros HAL building so the IDT kernel can build.

15 years agomips_subr.c was in the Juniper code drop, but didn't have any
Warner Losh [Fri, 19 Sep 2008 19:26:38 +0000 (19:26 +0000)]
mips_subr.c was in the Juniper code drop, but didn't have any
functions used by other code in the tree.  As such it was removed from
the merged tree until the functions were needed in the future.  The
file was missing from the FreeBSD import, but it was listed in the
files.mips file as being standard.  Remove it from there until such
time as we need one.

15 years agocrunchgen doesn't work yet on mips. So sysinstall can't be built there.
Warner Losh [Fri, 19 Sep 2008 19:20:05 +0000 (19:20 +0000)]
crunchgen doesn't work yet on mips.  So sysinstall can't be built there.
omit it like we do for arm.

15 years agopci_setup_intr() will only enable MSI/MSI-X for direct children. Add methods
Robert Noland [Fri, 19 Sep 2008 19:11:35 +0000 (19:11 +0000)]
pci_setup_intr() will only enable MSI/MSI-X for direct children.  Add methods
to vga_pci.c to request on behalf of it's children.  This causes vgapci to show
up as the interrupt owner in vmstat -i, rather than the child device.

Approved by: jhb(mentor)

15 years agoRescue is "not yet" for MIPS.
David E. O'Brien [Fri, 19 Sep 2008 16:14:42 +0000 (16:14 +0000)]
Rescue is "not yet" for MIPS.

15 years agoMove uuid_enc_le, uuid_dec_le, uuid_enc_be and uuid_dec_be symbols
Maksim Yevmenkin [Fri, 19 Sep 2008 15:52:56 +0000 (15:52 +0000)]
Move uuid_enc_le, uuid_dec_le, uuid_enc_be and uuid_dec_be symbols
into FBSD_1.1 section where they should be.

Pointed out by: kib, deischen
MFC after: 3 days

15 years agoChange the wording to prefer 'forwarding' but still retain the word routing for
Andrew Thompson [Fri, 19 Sep 2008 15:27:37 +0000 (15:27 +0000)]
Change the wording to prefer 'forwarding' but still retain the word routing for
clarity.

Suggested by: dougb

15 years agoClean up DSDT and XSDT correctly instead of FADT when the tables are bad.
Jung-uk Kim [Fri, 19 Sep 2008 15:25:13 +0000 (15:25 +0000)]
Clean up DSDT and XSDT correctly instead of FADT when the tables are bad.

Submitted by: jhb
Tested by: olli
MFC after: 3 days

15 years agoRegenerate for r183188.
David E. O'Brien [Fri, 19 Sep 2008 15:21:40 +0000 (15:21 +0000)]
Regenerate for r183188.

15 years agoAdd freebsd32 compat shim for nmount(2).
David E. O'Brien [Fri, 19 Sep 2008 15:17:32 +0000 (15:17 +0000)]
Add freebsd32 compat shim for nmount(2).
(and quiet some compiler warnings for vfs_donmount)

15 years agoBring the usage message in sync with the manual page.
Joseph Koshy [Fri, 19 Sep 2008 14:51:41 +0000 (14:51 +0000)]
Bring the usage message in sync with the manual page.

15 years agoKeep symbols in sorted order.
Joseph Koshy [Fri, 19 Sep 2008 13:21:23 +0000 (13:21 +0000)]
Keep symbols in sorted order.

15 years agoAdd an example illustrating the use sleep(1) for performing timed
Joseph Koshy [Fri, 19 Sep 2008 13:17:22 +0000 (13:17 +0000)]
Add an example illustrating the use sleep(1) for performing timed
measurements.

15 years agoUse the version of the kernel returned by getosreldate()
Craig Rodrigues [Fri, 19 Sep 2008 11:59:10 +0000 (11:59 +0000)]
Use the version of the kernel returned by getosreldate()
to determine whether to call the fallback_mount() backwards
compatibility function or not.

Reviewed by: dfr

15 years agoOn PowerPC send output to both "/chosen/stdout" and "screen" nodes, unless
Maxim Sobolev [Fri, 19 Sep 2008 11:00:14 +0000 (11:00 +0000)]
On PowerPC send output to both "/chosen/stdout" and "screen" nodes, unless
they point to the very same device. This should make loader usable on
some (all?) PowerMacs, where "/chosen/stdout" is disconneted from the
"screen" by the OF init process by default, except when user actually
has requested interaction with OF by holding ALT-CMD-O-F. Along with
rev 183168 this should provide a way to build bootable FreeBSD/ppc
installation or live CD that works OOB. Also, it should bring PowerMac
experience closer to that on other arches.

MFC after: 1 week
(assiming re@ blessing)

15 years agoEven though snp(4) in SVN is still broken, remove the unneeded D_NEEDMINOR.
Ed Schouten [Fri, 19 Sep 2008 10:21:30 +0000 (10:21 +0000)]
Even though snp(4) in SVN is still broken, remove the unneeded D_NEEDMINOR.

kib@ and I have decided we will MFC the bpf(4)/snp(4) fixes after we've
released 7.1. Make sure the code in HEAD doesn't refer to a flag we
don't need anyway.

snp(4) in the MPSAFE TTY P4 branch already works, but still needs some
polishing before it can be integrated to SVN.

15 years agoAdd a vendor ID for 3G Green Green Globe Co., Ltd, found in
Kevin Lo [Fri, 19 Sep 2008 09:04:06 +0000 (09:04 +0000)]
Add a vendor ID for 3G Green Green Globe Co., Ltd, found in
D-Link DPG-1200 remote control.

15 years agofix a another driver bug related with tsleep() during detaching that
Weongyo Jeong [Fri, 19 Sep 2008 07:40:30 +0000 (07:40 +0000)]
fix a another driver bug related with tsleep() during detaching that
this also can be happened if we pull the USN stick out forcibly.

Currently the ZyDAS driver uses tsleep() when it try to query a read
command to the device and it'd make a timeout if the device doesn't
response within about 1 sec.

In a case of that the USB stick is gone by hand and the driver's
scanning with changing the channel numbers, the thread which is sleeping
until a command requested is responded can be waked up after all
detaching routines finished that means the zyd softc already freed.
Tring to touch the softc freed by the wakeup thread makes a panic.

So make sure that all sleeping threads should be waken up before the
detach is completed and any other new requests to the device should be
prevented.

15 years agoclear pending callbacks when the driver try to change the state
Weongyo Jeong [Fri, 19 Sep 2008 05:10:33 +0000 (05:10 +0000)]
clear pending callbacks when the driver try to change the state

Pointed by: sam

15 years agoMFp4: Merge interrupt code from p4
Warner Losh [Fri, 19 Sep 2008 04:16:13 +0000 (04:16 +0000)]
MFp4: Merge interrupt code from p4

Submitted by: gonzo@

15 years agoMFp4: Update the interrupt code from perforce.
Warner Losh [Fri, 19 Sep 2008 04:10:09 +0000 (04:10 +0000)]
MFp4: Update the interrupt code from perforce.

Submitted by: gonzo@

15 years agoMerge from p4: add bpf
Warner Losh [Fri, 19 Sep 2008 03:47:29 +0000 (03:47 +0000)]
Merge from p4: add bpf

15 years agoMerge from p4: add Juniper license statement.
Warner Losh [Fri, 19 Sep 2008 03:36:37 +0000 (03:36 +0000)]
Merge from p4: add Juniper license statement.

15 years agoMFamd64 SVN rev 179471 CVS rev 1.619
Alan Cox [Fri, 19 Sep 2008 03:33:49 +0000 (03:33 +0000)]
MFamd64 SVN rev 179471 CVS rev 1.619
  Correct an error in pmap_promote_pde() that may result in an errant
  promotion within the kernel's address space.

15 years agoWhen attaching framebuffer to "/chosen/stdout" node fails, try attaching
Maxim Sobolev [Fri, 19 Sep 2008 03:22:47 +0000 (03:22 +0000)]
When attaching framebuffer to "/chosen/stdout" node fails, try attaching
to "screen" node directly. The problem is that by default OF on some (all?)
Macs either doesn't provide "/chosen/stdout" or redirects it somewhere,
unless you boot in manual mode via CMD-ALT-O-F. It's nice to see normal
FreeBSD boot output instead of blank gray screen.

15 years agoMFP4: Add mips to the list of soft-float platforms.
Warner Losh [Fri, 19 Sep 2008 03:09:36 +0000 (03:09 +0000)]
MFP4: Add mips to the list of soft-float platforms.

15 years agomfp4: sort the architectures alphabetically...
Warner Losh [Fri, 19 Sep 2008 02:30:22 +0000 (02:30 +0000)]
mfp4: sort the architectures alphabetically...

15 years agoPrefer the patch in p4 to the patch in svn as it properly sorts the
Warner Losh [Fri, 19 Sep 2008 01:35:34 +0000 (01:35 +0000)]
Prefer the patch in p4 to the patch in svn as it properly sorts the
architectures alphabetically.

15 years agoFix two panics:
Kip Macy [Thu, 18 Sep 2008 23:56:42 +0000 (23:56 +0000)]
Fix two panics:

1. panic: rtalloc1_fib: bad fibnum

2. panic: Lock tcpinp not exclusively locked
@ /usr/src/sys/netinet/in_pcb.c:1284

Submitted by: Chelsio Inc.
MFC after: 3 days

15 years agoMove the protocol and port count checks to outside the loop, these conditions
Andrew Thompson [Thu, 18 Sep 2008 20:56:35 +0000 (20:56 +0000)]
Move the protocol and port count checks to outside the loop, these conditions
can not change while we have the lock so no point retesting.

15 years agoWhitespace fixes. This file also had 7 space indent in a few places.
John Baldwin [Thu, 18 Sep 2008 20:26:06 +0000 (20:26 +0000)]
Whitespace fixes.  This file also had 7 space indent in a few places.

15 years agoVarious style fixes. 7 space indent is just odd.
John Baldwin [Thu, 18 Sep 2008 20:10:11 +0000 (20:10 +0000)]
Various style fixes.  7 space indent is just odd.

15 years agoSort includes.
John Baldwin [Thu, 18 Sep 2008 20:04:22 +0000 (20:04 +0000)]
Sort includes.

15 years agoMips needs the same treatment for atomic_or_8 as the other RISCy
Warner Losh [Thu, 18 Sep 2008 19:57:06 +0000 (19:57 +0000)]
Mips needs the same treatment for atomic_or_8 as the other RISCy
architectures.

15 years agoMips doesn't have a long double that's different in size from double.
Warner Losh [Thu, 18 Sep 2008 19:54:02 +0000 (19:54 +0000)]
Mips doesn't have a long double that's different in size from double.

15 years agoClear any possibly pending PCI error bits left by the firmware. These
Marius Strobl [Thu, 18 Sep 2008 19:45:22 +0000 (19:45 +0000)]
Clear any possibly pending PCI error bits left by the firmware. These
could trigger an error interrupt that we can't actually to do anything
against as soon as enabling the error handlers.
While at it don't bother about writing only to the write-one-to-clear
bits when clearing error bits.

15 years ago- Recognize SAVE and OSXSAVE extended processor features.
Stanislav Sedov [Thu, 18 Sep 2008 18:51:32 +0000 (18:51 +0000)]
- Recognize SAVE and OSXSAVE extended processor features.

Approved by: kib (mentor)
MFC after: 1 month

15 years agoHello, svn world! (adding myself to yet another list)
Marko Zec [Thu, 18 Sep 2008 17:32:13 +0000 (17:32 +0000)]
Hello, svn world! (adding myself to yet another list)

Approved by: silby (mentor)

15 years agoNo FORTH for MIPS.
David E. O'Brien [Thu, 18 Sep 2008 15:25:35 +0000 (15:25 +0000)]
No FORTH for MIPS.

15 years agoCatch up with intr_event_create() API changes.
David E. O'Brien [Thu, 18 Sep 2008 15:24:49 +0000 (15:24 +0000)]
Catch up with intr_event_create() API changes.

15 years agoCatch up with intr_event_create() API changes.
David E. O'Brien [Thu, 18 Sep 2008 15:15:42 +0000 (15:15 +0000)]
Catch up with intr_event_create() API changes.

15 years agoJust a fixup for a KTRACE message I stumbled upon many moons ago.
Sean Bruno [Thu, 18 Sep 2008 15:02:19 +0000 (15:02 +0000)]
Just a fixup for a KTRACE message I stumbled upon many moons ago.

Reviewed by: Scott Long
MFC after: 2 days

15 years agoAdd a new cam_status CAM_SCSI_IT_NEXUS_LOST. This will be used by future patches
Sean Bruno [Thu, 18 Sep 2008 14:48:46 +0000 (14:48 +0000)]
Add a new cam_status CAM_SCSI_IT_NEXUS_LOST.  This will be used by future patches
for target mode that are forthcoming.

Reviewed by: Scott Long
MFC after: 2 days

15 years ago- Add a missing prototype.
Marius Strobl [Thu, 18 Sep 2008 14:17:10 +0000 (14:17 +0000)]
- Add a missing prototype.
- Remove a banal comment.

15 years ago- Make bsdlabel use libgeom to determine provider name, device path, the media
Ulf Lilleengen [Thu, 18 Sep 2008 14:04:02 +0000 (14:04 +0000)]
- Make bsdlabel use libgeom to determine provider name, device path, the media
  size and the sector size.
- Fix a bug where bsdlabel would try to read a regular file using the geom_bsd
  class.

Quick review by: phk
Approved by: pjd (mentor)

15 years ago- Newer firmware versions no longer provide SUNW,stop-self so just
Marius Strobl [Thu, 18 Sep 2008 13:56:30 +0000 (13:56 +0000)]
- Newer firmware versions no longer provide SUNW,stop-self so just
  disable interrupts and loop forever with these.
- Hide all MP-related bits in <machine/smp.h> underneath #ifdef SMP.
- Inline ipi_all_but_self(9) and ipi_selected(9). We don't expose any
  additional bits but save a few cycles by doing so.
- Remove ipi_all(9), which actually only called panic(9). It can't be
  implemented natively anyway and having it removed at least causes
  MI users to fail already fail when linking.

15 years agoCleanup the AHCI code a bit.
Søren Schmidt [Thu, 18 Sep 2008 12:12:34 +0000 (12:12 +0000)]
Cleanup the AHCI code a bit.
Add suspend/resume for AHCI, general methods added.

Inspired by: Andrey V. Elsukov

15 years agoFix small mistake.
Alexander Motin [Thu, 18 Sep 2008 10:30:29 +0000 (10:30 +0000)]
Fix small mistake.

15 years agoImprove grammar.
Joseph Koshy [Thu, 18 Sep 2008 10:20:35 +0000 (10:20 +0000)]
Improve grammar.

15 years agoDocument new PMC classes, capabilities and CPU kinds.
Joseph Koshy [Thu, 18 Sep 2008 10:16:54 +0000 (10:16 +0000)]
Document new PMC classes, capabilities and CPU kinds.
Improve typography.

15 years agoAdd ASUS P5KPL-C to the list of supported motherboard.
Pyun YongHyeon [Thu, 18 Sep 2008 05:08:17 +0000 (05:08 +0000)]
Add ASUS P5KPL-C to the list of supported motherboard.

Reported by: < nikola.lecic <at> anthesphoria dot net >

15 years agoMfP4: Generalize int64_t in the public headers to support compilers
Tim Kientzle [Thu, 18 Sep 2008 04:19:06 +0000 (04:19 +0000)]
MfP4: Generalize int64_t in the public headers to support compilers
which have a 64-bit integer type but don't provide standard C99 definitions.

15 years agoMake sure there is at least one port to avoid divide by zero when choosing the
Andrew Thompson [Thu, 18 Sep 2008 04:14:28 +0000 (04:14 +0000)]
Make sure there is at least one port to avoid divide by zero when choosing the
tx port.

PR: kern/122794
MFC after: 3 days

15 years agoTrying to distinguish different "versions" of mtree files was a silly idea.
Tim Kientzle [Thu, 18 Sep 2008 04:13:36 +0000 (04:13 +0000)]
Trying to distinguish different "versions" of mtree files was a silly idea.

Submitted by: Joerg Sonnenberger

15 years agoDon't do round robin assignment of interrupts on xen
Kip Macy [Thu, 18 Sep 2008 03:19:46 +0000 (03:19 +0000)]
Don't do round robin assignment of interrupts on xen

MFC after: 1 month

15 years agoChange order of pcpu initialization so the pc_prvspace is set
Kip Macy [Thu, 18 Sep 2008 02:59:19 +0000 (02:59 +0000)]
Change order of pcpu initialization so the pc_prvspace is set

MFC after: 1 month

15 years agofix initial page directory setup for APs to work when KERNBASE < 0xc0000000
Kip Macy [Thu, 18 Sep 2008 01:09:15 +0000 (01:09 +0000)]
fix initial page directory setup for APs to work when KERNBASE < 0xc0000000

MFC after: 1 month

15 years agoMFamd64: More CPUID feature flags: SSE4, X2APIC, POPCNT, DTES64, and 1GB
John Baldwin [Wed, 17 Sep 2008 20:45:18 +0000 (20:45 +0000)]
MFamd64: More CPUID feature flags: SSE4, X2APIC, POPCNT, DTES64, and 1GB
large pages.

MFC after: 1 month

15 years agoBump modification date.
Alexander Motin [Wed, 17 Sep 2008 20:34:50 +0000 (20:34 +0000)]
Bump modification date.

15 years agoFix a typo.
Alexander Motin [Wed, 17 Sep 2008 20:28:01 +0000 (20:28 +0000)]
Fix a typo.

15 years agoAdd set of snd_hda driver configuration examples to the man page.
Alexander Motin [Wed, 17 Sep 2008 20:17:22 +0000 (20:17 +0000)]
Add set of snd_hda driver configuration examples to the man page.

15 years agoSome people have very strange notions of how large KVA_PAGES should be. The
Kip Macy [Wed, 17 Sep 2008 19:11:37 +0000 (19:11 +0000)]
Some people have very strange notions of how large KVA_PAGES should be. The
core of this change generalizes the initial page directory setup so that
the kernel can be given arbitrarily large or small.

- small formatting fixes
- update copyright

MFC after: 1 month

15 years agoSync with English revisions. While I'm there set fbsd:notbinary attribute
Xin LI [Wed, 17 Sep 2008 18:13:37 +0000 (18:13 +0000)]
Sync with English revisions.  While I'm there set fbsd:notbinary attribute
to make verify.py happy.

15 years agoDocument the suser(9) and suser_cred(9) interface removal.
Attilio Rao [Wed, 17 Sep 2008 15:50:41 +0000 (15:50 +0000)]
Document the suser(9) and suser_cred(9) interface removal.

15 years agoRemove the suser(9) interface from the kernel. It has been replaced from
Attilio Rao [Wed, 17 Sep 2008 15:49:44 +0000 (15:49 +0000)]
Remove the suser(9) interface from the kernel. It has been replaced from
years by the priv_check(9) interface and just very few places are left.
Note that compatibility stub with older FreeBSD version
(all above the 8 limit though) are left in order to reduce diffs against
old versions. It is responsibility of the maintainers for any module, if
they think it is the case, to axe out such cases.

This patch breaks KPI so __FreeBSD_version will be bumped into a later
commit.

This patch needs to be credited 50-50 with rwatson@ as he found time to
explain me how the priv_check() works in detail and to review patches.

Tested by:      Giovanni Trematerra <giovanni dot trematerra at gmail dot com>
Reviewed by:    rwatson

15 years agoSmall consistency bug: remove named function attribute.
Ed Schouten [Wed, 17 Sep 2008 13:59:05 +0000 (13:59 +0000)]
Small consistency bug: remove named function attribute.

Everywhere in <sys/ttydisc.h> we don't specify a function argument name,
except in a single place. Also remove it there.

15 years agoDocument the -F 's return statement.
Remko Lodder [Wed, 17 Sep 2008 06:56:27 +0000 (06:56 +0000)]
Document the -F 's return statement.
If the application returns succesfully
the return code is 7 (which means the
filesystem is clean).

PR: 127432
Submitted by: edwin
MFC after: 3 days

15 years agoWhitespace fixes.
Joseph Koshy [Wed, 17 Sep 2008 04:13:14 +0000 (04:13 +0000)]
Whitespace fixes.

15 years agoAdd event name aliases for Pentium PMCs.
Joseph Koshy [Wed, 17 Sep 2008 03:53:37 +0000 (03:53 +0000)]
Add event name aliases for Pentium PMCs.

15 years agoDecontext-alize the nfsserver module.
Attilio Rao [Tue, 16 Sep 2008 21:57:39 +0000 (21:57 +0000)]
Decontext-alize the nfsserver module.
Now, only some few places still require thread passing (mostly the ones which
access to VOP_* functions) and will be fixed once the primitive also will be.

Tested by: Giovanni Trematerra <giovanni dot trematerra at gmail dot com>

15 years agoImplement zero-copy bpf(4) buffer or "zbuf" support for libpcap. A slightly
Christian S.J. Peron [Tue, 16 Sep 2008 20:32:29 +0000 (20:32 +0000)]
Implement zero-copy bpf(4) buffer or "zbuf" support for libpcap.  A slightly
different version has been committed upstream in the libpcap vendor branch.
This will allow people to experiment with zero-copy bpf(4) without requiring
external patches.

Note to enable this functionality:

    sysctl net.bpf.zerocopy_enable=1

By default, libpcap will use the legacy buffering method unless this sysctl
variable is set to 1.

For the details about zero-copy bpf(4) implementation see svn change r177548.

Requested by: many
Discussed with: sam
In collaboration with: rwatson

15 years agoAdd 'device acpi' to GENERIC on i386. Most newer i386 machines require it,
John Baldwin [Tue, 16 Sep 2008 20:22:22 +0000 (20:22 +0000)]
Add 'device acpi' to GENERIC on i386.  Most newer i386 machines require it,
so the benefit of having acpi.ko as a standalone module is outweighed by
the complications of drivers compiled into the kernel not including ACPI
attachments by default.

Discussed on: current

15 years agoAllow a jail to be started with a specific route fib.
Andrew Thompson [Tue, 16 Sep 2008 20:18:25 +0000 (20:18 +0000)]
Allow a jail to be started with a specific route fib.

Reviewed by: secteam (simon)
Reviewed by: brooks, bz