]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
15 years agoConform to style(9) for return (foo); The files were a mix before.
Warner Losh [Mon, 29 Sep 2008 18:05:26 +0000 (18:05 +0000)]
Conform to style(9) for return (foo);  The files were a mix before.

Submitted by: mav@

15 years agoDistinguish between cmd/parameters used for clone operations and
Sam Leffler [Mon, 29 Sep 2008 16:27:32 +0000 (16:27 +0000)]
Distinguish between cmd/parameters used for clone operations and
all others.  Use this to disambiguate cmd line arguments that can
be either clone params or regular parameters so, in particular,
"bssid" again works as a regular parameter.

While here leverage the above to improve the logic for flushing
clone operations on the first !clone cmd line parameter.

Reviewed by: jhay

15 years agoSince in some cases (when found obsolete) 'make' can be builded earlier
Andrey A. Chernov [Mon, 29 Sep 2008 16:13:28 +0000 (16:13 +0000)]
Since in some cases (when found obsolete) 'make' can be builded earlier
at 'upgrade_checks' target, put arc4random_uniform() into
__FreeBSD_version ifdef.

15 years agoSupport for CPU sets is going to appear in 7.1 before 8.0.
John Baldwin [Mon, 29 Sep 2008 15:44:48 +0000 (15:44 +0000)]
Support for CPU sets is going to appear in 7.1 before 8.0.

MFC after: 3 days

15 years agoExpand comments relating various detach/free/drop inpcb routines.
Robert Watson [Mon, 29 Sep 2008 13:50:17 +0000 (13:50 +0000)]
Expand comments relating various detach/free/drop inpcb routines.

MFC after: 3 days

15 years agoFix typo in comment.
Robert Watson [Mon, 29 Sep 2008 13:48:48 +0000 (13:48 +0000)]
Fix typo in comment.

MFC after: 3 days

15 years agoOur groff doesn't understand $Mdocdate$, so replace them with bare dates.
Dag-Erling Smørgrav [Mon, 29 Sep 2008 10:53:05 +0000 (10:53 +0000)]
Our groff doesn't understand $Mdocdate$, so replace them with bare dates.

MFC after: 3 days

15 years agoo Add missed dot.
Maxim Konovalov [Mon, 29 Sep 2008 05:31:27 +0000 (05:31 +0000)]
o Add missed dot.

15 years agoReturn G_PART_PROBE_PRI_HIGH instead of G_PART_PROBE_PRI_NORM
Marcel Moolenaar [Mon, 29 Sep 2008 02:48:22 +0000 (02:48 +0000)]
Return G_PART_PROBE_PRI_HIGH instead of G_PART_PROBE_PRI_NORM
if the probe succeeds. This guarantees that the BSD scheme
wins over the MBR scheme when MBR gets to probe first. Build-
or link-time conditions can cause schemes to end up in the
linker set in a different order. Normally BSD is before MBR
in the linker set and as such get to probe first. But typically
when the kernel gets rebuild or relinked, this can change.

15 years agoInsert the null scheme at the head. This does not change any
Marcel Moolenaar [Mon, 29 Sep 2008 02:39:02 +0000 (02:39 +0000)]
Insert the null scheme at the head. This does not change any
functionality, but creates an invariant: the first element
on the list is always the null scheme.

15 years agoConvert all C++ comments to C style. There's lots of folks that don't
Warner Losh [Mon, 29 Sep 2008 01:32:21 +0000 (01:32 +0000)]
Convert all C++ comments to C style.  There's lots of folks that don't
like them and they don't add enough to be worth standing out.

15 years agoThe parameters to the MMCBR_ACQUIRE_HOST and MMCBR_RELEAES_HOST were
Warner Losh [Mon, 29 Sep 2008 01:28:30 +0000 (01:28 +0000)]
The parameters to the MMCBR_ACQUIRE_HOST and MMCBR_RELEAES_HOST were
the device in question, rather than the bus doing the requesting.  Fix
it so that it is the bus.

Submitted by: mav@

15 years agoImplement MMCBR_IVAR_CAPS for AT91 MCI device.
Warner Losh [Sun, 28 Sep 2008 23:37:56 +0000 (23:37 +0000)]
Implement MMCBR_IVAR_CAPS for AT91 MCI device.

Submitted by: mav@ (well, not this one, but the base impl was)

15 years agoAdd "caps" word to host bridge.
Warner Losh [Sun, 28 Sep 2008 23:37:06 +0000 (23:37 +0000)]
Add "caps" word to host bridge.

15 years agoImplement power down, and power down the bus on detach.
Warner Losh [Sun, 28 Sep 2008 23:24:52 +0000 (23:24 +0000)]
Implement power down, and power down the bus on detach.

Submitted by: mav@

15 years agoWhen a device is read only, fail all non-read BIO requests.
Warner Losh [Sun, 28 Sep 2008 22:42:29 +0000 (22:42 +0000)]
When a device is read only, fail all non-read BIO requests.

Submitted by: mav@

15 years agoPropigate read-only status of cards. Right now it is read only at
Warner Losh [Sun, 28 Sep 2008 22:40:11 +0000 (22:40 +0000)]
Propigate read-only status of cards.  Right now it is read only at
device attach time.  We may need to read this more often in the
future, but for now simplicity of implementation wins.

Submitted by: mav@

15 years agoThe OCR register defines both acceptable voltage bits, as well as bits
Warner Losh [Sun, 28 Sep 2008 22:27:29 +0000 (22:27 +0000)]
The OCR register defines both acceptable voltage bits, as well as bits
for other things.  Mask out the voltage only bits when returning the
Vdd mask for voltage computation.

Submitted by: mav@

15 years agoOther busses on the system use the official capitalization for the
Warner Losh [Sun, 28 Sep 2008 22:23:06 +0000 (22:23 +0000)]
Other busses on the system use the official capitalization for the
technology.  Make mmc conform to that.

Submitted by: mav@

15 years agoFix line continuation whitespace.
Warner Losh [Sun, 28 Sep 2008 22:21:53 +0000 (22:21 +0000)]
Fix line continuation whitespace.

Submitted by: mav@

15 years agoSmall typo in the makedev(3) manpage.
Ed Schouten [Sun, 28 Sep 2008 20:26:16 +0000 (20:26 +0000)]
Small typo in the makedev(3) manpage.

devtoname(3) is a nonexistent function. We do have devtoname(9), but
that's entirely different. The correct function is devname(3).

15 years agoSeveral documentation fixups related to device minor/major numbers:
Ed Schouten [Sun, 28 Sep 2008 20:15:45 +0000 (20:15 +0000)]
Several documentation fixups related to device minor/major numbers:

- Document the minor(3), major(3) and makedev(3) macro's. They also
  apply to umajor() and uminor() in the kernel, but hopefully we'll sort
  that out one day.

- Briefly dev2unit() inside the make_dev(9) manual page, since this is
  now the preferred macro to obtain character device unit numbers inside
  the kernel.

- Remove the device_ids(9) manual page. It contains highly inaccurate
  information, such as a description of the nonexistent major().

15 years agoCatch up with svn r96606 (cvs rev 1.127 2002/05/14 20:35:29) of
Warner Losh [Sun, 28 Sep 2008 19:44:38 +0000 (19:44 +0000)]
Catch up with svn r96606 (cvs rev 1.127 2002/05/14 20:35:29) of
sys/param.h and move the MI numbers out of here.  Also move the MI
defines.  Also remove a couple defines not in use (not sure if it is
age, or OpenBSD origins for thse).  Note the current values that are
overrides that appear to be odd in some way.

More cleanup could be done here: NBPG appears to be spelled PAGE_SIZE
these days.  There's new ways to spell PGOFSET and PGSHIFT too, I
think.  These constants duplicate the MI constants and are sprinkled
into the mips code only.  Further investigation is needed.

15 years agoRevert previous commit. The prototype has been moved to unistd.h
Marcel Moolenaar [Sun, 28 Sep 2008 19:17:54 +0000 (19:17 +0000)]
Revert previous commit. The prototype has been moved to unistd.h

15 years agoRemove ipi_all() and ipi_self() as the former hasn't been used at
Marius Strobl [Sun, 28 Sep 2008 18:34:14 +0000 (18:34 +0000)]
Remove ipi_all() and ipi_self() as the former hasn't been used at
all to date and the latter also is only used in ia64 and powerpc
code which no longer serves a real purpose after bring-up and just
can be removed as well. Note that architectures like sun4u also
provide no means of implementing IPI'ing a CPU itself natively
in the first place.

Suggested by: jhb
Reviewed by: arch, grehan, jhb

15 years agoDon't automatically prepend the "tty" prefix to `pkill -t' arguments.
Ed Schouten [Sun, 28 Sep 2008 16:44:15 +0000 (16:44 +0000)]
Don't automatically prepend the "tty" prefix to `pkill -t' arguments.

Because we now enforce UNIX98-style PTY's, we now use a lot of TTY's
that don't have the traditional /dev/ttyXX naming scheme. pkill(1)'s -t
flag automatically prepended the word "tty" to each TTY that was passed
on the command line. This meant that `pkill -t pts/0' was actually
converted to /dev/ttypts/0. Disable this broken behaviour for now.

Reported by: erwin

15 years agoUnbreak support for G4s without an L3 cache. L3 cache support was introduced
Nathan Whitehorn [Sun, 28 Sep 2008 15:12:43 +0000 (15:12 +0000)]
Unbreak support for G4s without an L3 cache. L3 cache support was introduced
with, and limited to, the Motorola/Freescale 745x family.

Reported by: Marco Trillo

15 years agoAdd new PMC classes and CPU types.
Joseph Koshy [Sun, 28 Sep 2008 14:11:34 +0000 (14:11 +0000)]
Add new PMC classes and CPU types.

15 years agoUpdate a comment.
Joseph Koshy [Sun, 28 Sep 2008 14:05:12 +0000 (14:05 +0000)]
Update a comment.

15 years agoWhite space nit.
Warner Losh [Sun, 28 Sep 2008 05:36:25 +0000 (05:36 +0000)]
White space nit.

15 years agoFix comments to relate to FreeBSD's current interrupt blocking
Warner Losh [Sun, 28 Sep 2008 03:50:34 +0000 (03:50 +0000)]
Fix comments to relate to FreeBSD's current interrupt blocking
functionality, as opposed to the legacy spl means.

15 years agoFix comment about needing to call something from splnet, which doesn't
Warner Losh [Sun, 28 Sep 2008 03:48:15 +0000 (03:48 +0000)]
Fix comment about needing to call something from splnet, which doesn't
exist in freebsd.

15 years agoRemove stale comment. splhigh -> critical_enter transition happend
Warner Losh [Sun, 28 Sep 2008 03:47:24 +0000 (03:47 +0000)]
Remove stale comment.  splhigh -> critical_enter transition happend
some time ago, and no longer needs special attention.

15 years agoAdd stronger warning that spl is historical. I almost deleted this
Warner Losh [Sun, 28 Sep 2008 03:45:16 +0000 (03:45 +0000)]
Add stronger warning that spl is historical.  I almost deleted this
man page entirely, but it is still mildly useful in understanding the
few splxxx usages we still have in the tree.

15 years agoChange while (cond)\n\t\t; to while (cond)\n\t\tcontinue; since the
Warner Losh [Sun, 28 Sep 2008 03:33:01 +0000 (03:33 +0000)]
Change while (cond)\n\t\t; to while (cond)\n\t\tcontinue; since the
former more explicitly tells the compiler that you want an empty loop.
There are some lint programs that use this hint to avoid generating
warnings.

No functional change...

15 years agoAdd a driver for `Schizo' Fireplane/Safari to PCI 2.1 and `Tomatillo'
Marius Strobl [Sun, 28 Sep 2008 00:07:05 +0000 (00:07 +0000)]
Add a driver for `Schizo' Fireplane/Safari to PCI 2.1 and `Tomatillo'
JBus to PCI 2.2 bridges. In theory, this driver should also handle
`XMITS' Fireplane/Safari to PCI-X bridges but due to lack of access
to such hardware, support for these hasn't be fleshed out, yet.

15 years ago- Build jexec (1) and slstat.
Antoine Brodin [Sat, 27 Sep 2008 22:24:50 +0000 (22:24 +0000)]
- Build jexec (1) and slstat.
- style.Makefile
Noticed by: Marius (1)

15 years agoguard against adhoc_pick_channel returning a NULL channel; this can
Sam Leffler [Sat, 27 Sep 2008 21:18:40 +0000 (21:18 +0000)]
guard against adhoc_pick_channel returning a NULL channel; this can
happen after a scan cache flush (e.g. in response to ifconfig wlan bssid -)

15 years agoExport the partition name in the conftxt and confxml output.
Marcel Moolenaar [Sat, 27 Sep 2008 19:58:11 +0000 (19:58 +0000)]
Export the partition name in the conftxt and confxml output.
The conftxt output is used by libdisk, and the confxml
output is used by gpart itself (gpart show -l).

Submitted by: nyan@

15 years agoHold the root mount while we're tasting. It is possible
Marcel Moolenaar [Sat, 27 Sep 2008 19:29:52 +0000 (19:29 +0000)]
Hold the root mount while we're tasting. It is possible
that a nested partition (typically the BSD disklabel)
is not done tasting while the root file system is being
mounted. While this is rare, it's still possible.

15 years agoWhen an inpcb doesn't have a socket but the inpcb is passed to ipfw
Robert Watson [Sat, 27 Sep 2008 19:28:28 +0000 (19:28 +0000)]
When an inpcb doesn't have a socket but the inpcb is passed to ipfw
in the transmit path, such as TCPS_TIMEWAIT, fail the credential
extraction immediately rather than acquiring locks and looking up
the inpcb on the global lists in order to reach the conclusion that
the credential extraction has failed.

This is more efficient, but more importantly, it avoids lock
recursion on the inpcbinfo, which is no longer allowed with rwlocks.
This appears to have been responsible for at least two reported
panics.

MFC after: 3 days
Reported by: ganbold

15 years agoDisable use of the user credentials until there is code to set the levels
John Birrell [Sat, 27 Sep 2008 17:52:48 +0000 (17:52 +0000)]
Disable use of the user credentials until there is code to set the levels
that DTrace uses.

This fixes a bug that would have affected kernels built with MAC and all
kernels built after the mpsafetty integration.

The bug will be apparent in RELENG7 on MAC kernels.

Reported by: kan

15 years agoAlso use dev2unit() in the pseudo-driver example script.
Ed Schouten [Sat, 27 Sep 2008 16:52:57 +0000 (16:52 +0000)]
Also use dev2unit() in the pseudo-driver example script.

Because I'm planning on MFC'ing my last change to this file, make sure
we use dev2unit() here as well.

15 years agoFix the build.
Roman Kurakin [Sat, 27 Sep 2008 15:58:54 +0000 (15:58 +0000)]
Fix the build.

Noted by: ganbold@

15 years agoDifferentiate between interrupt frames, trap interrupt frames and timer
Konstantin Belousov [Sat, 27 Sep 2008 15:58:37 +0000 (15:58 +0000)]
Differentiate between interrupt frames, trap interrupt frames and timer
frame in the kgdb, to allow it to properly backtrace over the interrupt
stacks.

Noted and reviewed by: tegge
Tested by: pho
MFC after: 1 week

15 years agoFrames created by the Xcpustop, Xrendezvous, Xipi_intr_bitmap_handler
Konstantin Belousov [Sat, 27 Sep 2008 15:54:04 +0000 (15:54 +0000)]
Frames created by the Xcpustop, Xrendezvous, Xipi_intr_bitmap_handler
and Xlazypmap differ from the frame for Xtimerint. The Xtimerint puts
pointer to the frame between return address and frame body, while rest
of the functions listed above do not. Correct offset calculation to
allow the ddb backtrace to step over such frames.

Noted and reviewed by: tegge
Tested by: pho
MFC after: 1 week

15 years agoIf the panic thread is preempted after setting panicstr but before
Konstantin Belousov [Sat, 27 Sep 2008 15:45:54 +0000 (15:45 +0000)]
If the panic thread is preempted after setting panicstr but before
setting TDF_INPANIC then it will never be rescheduled again. Wrap
setting the panic condition with the critical section.

Noted and reviewed by: tegge
MFC after: 1 week

15 years agoExpand the DBDMA API to allow setting device-dependent control bits. While
Nathan Whitehorn [Sat, 27 Sep 2008 15:41:16 +0000 (15:41 +0000)]
Expand the DBDMA API to allow setting device-dependent control bits. While
here, clean up and document this a little.

Submitted by: Marco Trillo
MFC after: 1 week

15 years agoAllow 255 sectors/track for the BSD disklabel. The previous limit
Marcel Moolenaar [Sat, 27 Sep 2008 15:28:15 +0000 (15:28 +0000)]
Allow 255 sectors/track for the BSD disklabel. The previous limit
of 63 sectors/track is too PC BIOS specific. On pc98, where the
BSD disklabel is used as well, 255 sectors/track is not uncommon.

Submitted by: nyan@

15 years agoAdd DMA support for Apple built-in ATA controllers.
Nathan Whitehorn [Sat, 27 Sep 2008 15:13:44 +0000 (15:13 +0000)]
Add DMA support for Apple built-in ATA controllers.

Tested by: grehan, marcotrillo@gmail.com
MFC after: 1 month

15 years ago* add all keyword for table list & flush actions.
Roman Kurakin [Sat, 27 Sep 2008 15:09:00 +0000 (15:09 +0000)]
* add all keyword for table list & flush actions.
* add tables_max sysctl.
* add default_rule sysctl.

PR: 127058 (partially)

15 years agoAdd keyword all in addtion to the table number for the 'list' and the
Roman Kurakin [Sat, 27 Sep 2008 14:30:34 +0000 (14:30 +0000)]
Add keyword all in addtion to the table number for the 'list' and the
'flush' actions on tables.  Part of PR: 127058.

PR: 127058 (based on)
MFC after: 1 month

15 years agoMove uminor() and umajor() to the same place as userspace minor() and major().
Ed Schouten [Sat, 27 Sep 2008 13:19:09 +0000 (13:19 +0000)]
Move uminor() and umajor() to the same place as userspace minor() and major().

The uminor() and umajor() functions have the same use in kernel space as
the minor() and major() functions in userspace. If we ever get rid of
the minor() function in kernel space, we could decide to just expose
minor() and major() to kernel space, making uminor() and umajor()
redundant.

There are two reasons why we want to have uminor() and umajor() in
<sys/types.h>:

- Having them close together prevents them from diverting. Even though
  it's unlikely the definitions will change, it's a good habit to have
  them at the same place.

- They don't really belong in kern_conf.c. kern_conf.c has been
  liberated from dealing with device major and minor number handling.

The device_ids(9) manpage now lists the wrong #include's, because it
should only list <sys/types.h> now. I'm leaving it as it is now, because
I wonder if we should document them anyway. We're probably better off
documenting minor(3) and major(3).

15 years agoRather than shadowing global variable 'lookup' in check_uidgid(), rename
Robert Watson [Sat, 27 Sep 2008 10:14:02 +0000 (10:14 +0000)]
Rather than shadowing global variable 'lookup' in check_uidgid(), rename
it to ugid_lookupp.  This should make debugging issues with ipfw uid
rules easier.

MFC after: 3 days

15 years agoReplace all calls to minor() with dev2unit().
Ed Schouten [Sat, 27 Sep 2008 08:51:18 +0000 (08:51 +0000)]
Replace all calls to minor() with dev2unit().

After I removed all the unit2minor()/minor2unit() calls from the kernel
yesterday, I realised calling minor() everywhere is quite confusing.
Character devices now only have the ability to store a unit number, not
a minor number. Remove the confusion by using dev2unit() everywhere.

This commit could also be considered as a bug fix. A lot of drivers call
minor(), while they should actually be calling dev2unit(). In -CURRENT
this isn't a problem, but it turns out we never had any problem reports
related to that issue in the past. I suspect not many people connect
more than 256 pieces of the same hardware.

Reviewed by: kib

15 years agoStatic-ify procedures in init(8).
Xin LI [Sat, 27 Sep 2008 00:09:10 +0000 (00:09 +0000)]
Static-ify procedures in init(8).

15 years agoMove getosreldate(3) prototype from the machine generated <osreldate.h>
Peter Wemm [Fri, 26 Sep 2008 19:23:22 +0000 (19:23 +0000)]
Move getosreldate(3) prototype from the machine generated <osreldate.h>
to <unistd.h> in the BSD section.

Suggested by: kib

15 years agoMove CTASSERT from header file to source file, per implementation note now
Ed Maste [Fri, 26 Sep 2008 18:44:40 +0000 (18:44 +0000)]
Move CTASSERT from header file to source file, per implementation note now
in the CTASSERT man page.

15 years agoMove CTASSERT from header file to source file, per implementation note now
Ed Maste [Fri, 26 Sep 2008 18:30:11 +0000 (18:30 +0000)]
Move CTASSERT from header file to source file, per implementation note now
in the CTASSERT man page.

Submitted by: Ryan Stone

15 years agoThe previous commit re-introduced sade on platforms
Marcel Moolenaar [Fri, 26 Sep 2008 18:28:54 +0000 (18:28 +0000)]
The previous commit re-introduced sade on platforms
where it doesn't work. Re-limit sade to amd64 and
i386.

15 years agoDon't forget to initialize `int error' in ttydev_open().
Ed Schouten [Fri, 26 Sep 2008 18:17:04 +0000 (18:17 +0000)]
Don't forget to initialize `int error' in ttydev_open().

I've had some reports in the past that opening an already opened TTY
through, for example, /dev/tty can fail with random error codes. Looking
at ttydev_open(), I can see there is a way `error' is returned without
initialising it. Even though I haven't had any confirmation this fixes
the bug, I'll fix it anyway.

Reported by: Andrzej Tobola <ato iem pw edu pl>

15 years agoAdvertise bit 26 as sse2.
Olivier Houchard [Fri, 26 Sep 2008 15:29:18 +0000 (15:29 +0000)]
Advertise bit 26 as sse2.

Spotted out by: gahr

15 years agoAdd -D_OSRELDATE_H to CFLAGS to prevent the declaration of
Marcel Moolenaar [Fri, 26 Sep 2008 15:00:18 +0000 (15:00 +0000)]
Add -D_OSRELDATE_H to CFLAGS to prevent the declaration of
getosreldate() in assembler source files. We still get the
definition of __FreeBSD_version this way, because it's
outside the standard multiple-inclusion protection trick.

All this is specific to ia64.

15 years agoSave previous content of the td_fpop before storing the current
Konstantin Belousov [Fri, 26 Sep 2008 14:50:49 +0000 (14:50 +0000)]
Save previous content of the td_fpop before storing the current
filedescriptor into it. Make sure that td_fpop is NULL when calling
d_mmap from dev_pager_getpages().

Change guards against td_fpop field being non-NULL with private state
for another device, and against sudden clearing the td_fpop. This
could occur when either a driver method calls another driver through
the filedescriptor operation, or a page fault happen while driver is
writing to a memory backed by another driver.

Noted by: rwatson
Tested by: rnoland
MFC after: 3 days

15 years agoRename the `minor' argument of make_dev(9) to `unit'.
Ed Schouten [Fri, 26 Sep 2008 14:31:24 +0000 (14:31 +0000)]
Rename the `minor' argument of make_dev(9) to `unit'.

To prevent any further confusion about device minor and unit numbers,
we'd better just refer to device unit numbers. Many people still think
the numbers we show inside devfs have any relation to the numbers passed
to make_dev(9), which is not the case.

Discussed with: kib

15 years agoRemove unit2minor() use from kernel code.
Ed Schouten [Fri, 26 Sep 2008 14:19:52 +0000 (14:19 +0000)]
Remove unit2minor() use from kernel code.

When I changed kern_conf.c three months ago I made device unit numbers
equal to (unneeded) device minor numbers. We used to require
bitshifting, because there were eight bits in the middle that were
reserved for a device major number. Not very long after I turned
dev2unit(), minor(), unit2minor() and minor2unit() into macro's.
The unit2minor() and minor2unit() macro's were no-ops.

We'd better not remove these four macro's from the kernel, because there
is a lot of (external) code that may still depend on them. For now it's
harmless to remove all invocations of unit2minor() and minor2unit().

Reviewed by: kib

15 years agoAdd support for the ITE 8213 controller.
Søren Schmidt [Fri, 26 Sep 2008 07:29:48 +0000 (07:29 +0000)]
Add support for the ITE 8213 controller.
Thanks goes to ITE who provided docs and feedback and made this possible.

Minor fixups to the Intel ICH code for bugs found while doing this.
(ITE8213 is very semilar to an Intel ICH)

MFC after: 1 week

15 years agomove ipi_pcpu to evtchn.c
Kip Macy [Fri, 26 Sep 2008 05:54:24 +0000 (05:54 +0000)]
move ipi_pcpu to evtchn.c

15 years agoRe-add getosreldate(3) function prototype in the form that I've been using
Peter Wemm [Fri, 26 Sep 2008 05:50:08 +0000 (05:50 +0000)]
Re-add getosreldate(3) function prototype in the form that I've been using
for quite some time now.  While I'm not sure if it'll break IA64 again,
this way doesn't cause problems with my builds of XFree86/Xorg and the way
they #include <osreldate.h> via cpp in the imake system.

15 years agoUse some casting to get the right addresses. This is likely unwise
Warner Losh [Fri, 26 Sep 2008 05:40:56 +0000 (05:40 +0000)]
Use some casting to get the right addresses.  This is likely unwise
code, but will be OK until there's a 64-bit siba...

With this change, SENTRY5 kernel now compiles for mips, the last of
the holdouts.

15 years agoCatch up to latest tty, kdb and SYSINIT changes. Modeled after the
Warner Losh [Fri, 26 Sep 2008 05:37:54 +0000 (05:37 +0000)]
Catch up to latest tty, kdb and SYSINIT changes.  Modeled after the
dev/ofw changes, since this driver appears to have used that as a
start years ago...

15 years agoUpdate xen/interface includes to the latest in mercurial
Kip Macy [Fri, 26 Sep 2008 05:29:39 +0000 (05:29 +0000)]
Update xen/interface includes to the latest in mercurial

MFC after: 1 month

15 years agoThe Ultra2 never had a CFE console or CFE boot loader. Kill obvious
Warner Losh [Fri, 26 Sep 2008 05:10:57 +0000 (05:10 +0000)]
The Ultra2 never had a CFE console or CFE boot loader.  Kill obvious
cut-n-paste leftover.

15 years agoRemove reference to machine/tlb.h. It no longer exists, and isn't
Warner Losh [Fri, 26 Sep 2008 04:45:56 +0000 (04:45 +0000)]
Remove reference to machine/tlb.h.  It no longer exists, and isn't
needed as this compiles fine w/o it.

15 years agoSupport for the siba bus found in many broadcom products.
Warner Losh [Fri, 26 Sep 2008 03:57:23 +0000 (03:57 +0000)]
Support for the siba bus found in many broadcom products.

Submitted by: bms@
Obtained from: p4 mips branch

15 years agoSupport for CFE boot loaders. Initially the support is for MIPS, but
Warner Losh [Fri, 26 Sep 2008 03:53:10 +0000 (03:53 +0000)]
Support for CFE boot loaders.  Initially the support is for MIPS, but
other processors will work too.

Submitted by: bms@
Obtained from: p4 mips2 branch

15 years agoGC empty directory eBones.
Xin LI [Thu, 25 Sep 2008 23:19:37 +0000 (23:19 +0000)]
GC empty directory eBones.

15 years agoAdd support for installing 32-bit system calls from kernel modules. This
John Baldwin [Thu, 25 Sep 2008 20:50:21 +0000 (20:50 +0000)]
Add support for installing 32-bit system calls from kernel modules.  This
includes syscall32_{de,}register() routines as well as a module handler
and wrapper macros similar to the support for native syscalls in
<sys/sysent.h>.

MFC after: 1 month

15 years agomust do a deep copy of mcast packets as they can be modified after dispatch
Sam Leffler [Thu, 25 Sep 2008 20:25:25 +0000 (20:25 +0000)]
must do a deep copy of mcast packets as they can be modified after dispatch

Submitted by: "Jared Go" <jared@hobnob.com>

15 years agoSort includes and add multiple include guards.
John Baldwin [Thu, 25 Sep 2008 20:12:38 +0000 (20:12 +0000)]
Sort includes and add multiple include guards.

15 years agoRegen.
John Baldwin [Thu, 25 Sep 2008 20:08:36 +0000 (20:08 +0000)]
Regen.

15 years agoTidy up a few things with syscall generation:
John Baldwin [Thu, 25 Sep 2008 20:07:42 +0000 (20:07 +0000)]
Tidy up a few things with syscall generation:
- Instead of using a syscall slot (370) just to get a function prototype
  for lkmressys(), add an explicit function prototype to <sys/sysent.h>.
  This also removes unused special case checks for 'lkmressys' from
  makesyscalls.sh.
- Instead of having magic logic in makesyscalls.sh to only generate a
  function prototype the first time 'lkmnosys' is seen, make 'NODEF'
  always not generate a function prototype and include an explicit
  prototype for 'lkmnosys' in <sys/sysent.h>.
- As a result of the fix in (2), update the LKM syscall entries in
  the freebsd32 syscall table to use 'lkmnosys' rather than 'nosys'.
- Use NOPROTO for the __syscall() entry (198) in the native ABI.  This
  avoids the need for magic logic in makesyscalls.h to only generate
  a function prototype the first time 'nosys' is encountered.

15 years agoInitialize the DDB command list when initializing DDB so that the basic
John Baldwin [Thu, 25 Sep 2008 19:50:14 +0000 (19:50 +0000)]
Initialize the DDB command list when initializing DDB so that the basic
commands are available from 'boot -d'.

Suggested by: dfr

15 years agoUse existing GDB routines for parsing the section table of klds in
John Baldwin [Thu, 25 Sep 2008 19:32:03 +0000 (19:32 +0000)]
Use existing GDB routines for parsing the section table of klds in
the 'add-kld' command instead of doing it more by hand.

MFC after: 1 week

15 years agoAs a follow-on to r183323, correct another case where ip_output() was
Robert Watson [Thu, 25 Sep 2008 17:26:54 +0000 (17:26 +0000)]
As a follow-on to r183323, correct another case where ip_output() was
called without an inpcb pointer despite holding the tcbinfo global
lock, which lead to a deadlock or panic when ipfw tried to further
acquire it recursively.

Reported by:    Stefan Ehmann <shoesoft at gmx dot net>
MFC after:      3 days

15 years agoUse db_printsym to lookup and print the function pointers.
Andrew Thompson [Thu, 25 Sep 2008 16:46:36 +0000 (16:46 +0000)]
Use db_printsym to lookup and print the function pointers.

15 years ago- Don't do a WITNESS_SAVE() on the interlock if it is Giant in the condition
John Baldwin [Thu, 25 Sep 2008 13:42:19 +0000 (13:42 +0000)]
- Don't do a WITNESS_SAVE() on the interlock if it is Giant in the condition
  variable wait routines.  DROP_GIANT() already manages that state in the
  Giant interlock case.
- Assert that Giant is held when it is passed as a sleep interlock.

15 years agoSome people's 6to4 routers seem to have been blowing up because of
David Malone [Thu, 25 Sep 2008 12:35:01 +0000 (12:35 +0000)]
Some people's 6to4 routers seem to have been blowing up because of
the unlocked route caching in if_stf. Add a mutex that protects
access to cached route. This seemed to fix problems for Pekka Savola.

Nick Sayer had similar problems, and in his case completly disabling
the route cache seemed to help. Add a sysctl net.link.stf.route_cache
that can be used to turn off route caching in if_stf.

PR: 122283
MFC after: 2 weeks
Tested by: Pekka Savola, Nick Sayer.

15 years ago- Add libbsdxml and libsbuf required by bsdlabel.
Yoshihiro Takahashi [Thu, 25 Sep 2008 12:25:54 +0000 (12:25 +0000)]
- Add libbsdxml and libsbuf required by bsdlabel.
- Remove the mknod from pc98 fixit and also the ftp from pc98 small fixit
  to avoid disk full.

15 years agoTell umass to leave Huawei radio devices alone so ubsa(4) will
Poul-Henning Kamp [Thu, 25 Sep 2008 12:16:18 +0000 (12:16 +0000)]
Tell umass to leave Huawei radio devices alone so ubsa(4) will
be able to kick them into shape.

15 years agoMake the ubsa(4) work with Huawei Exxx (tested with E169) 3G radio devices:
Poul-Henning Kamp [Thu, 25 Sep 2008 12:00:56 +0000 (12:00 +0000)]
Make the ubsa(4) work with Huawei Exxx (tested with E169) 3G radio devices:

Kick the device into the right mode if it comes up as a flash-disk.

Set the buffers to a sensible 1024 bytes instead of a far too small
default.

Don't attempt to change speed, baud, parity and such, the device does
not understand it.

15 years agoAdd a flag, -T, that tells syslogd to always replace the timestamp on
David Malone [Thu, 25 Sep 2008 09:28:18 +0000 (09:28 +0000)]
Add a flag, -T, that tells syslogd to always replace the timestamp on
messages from the network. We already replace malformatted timestamps
and this option lets us replace timestamps that are correctly formatted
but wrong.

PR: 120891
Submitted by: Thomas Vogt <thomas@bsdunix.ch>
MFC after: 1 week

15 years agoAdd another hardware bug workaround for Yukon II controllers that
Pyun YongHyeon [Thu, 25 Sep 2008 07:31:45 +0000 (07:31 +0000)]
Add another hardware bug workaround for Yukon II controllers that
have hardware ram buffer. The silicon bug seem to be triggered by
pause frames if receive buffer is not aligned on FIFO word(8 bytes).
To workaround the issue, make sure to align Rx buffers on 8 bytes.
Unfortunately this workaround requires yet another Rx fixup for
strict alignment architecture machines to align IP header.

For newer hardwares that lacks ram buffer may not have this bug so
check number of available ram buffer size to see the existence of
ram buffer.

Reported by: Ian Freislich (ianf <at> clue dot co dot za), das
Tested by: Ian Freislich (ianf <at> clue dot co dot za)

15 years agoadd initial ipi definitions
Kip Macy [Thu, 25 Sep 2008 07:11:04 +0000 (07:11 +0000)]
add initial ipi definitions

MFC after: 1 month

15 years agoadd ipi mapping
Kip Macy [Thu, 25 Sep 2008 07:09:50 +0000 (07:09 +0000)]
add  ipi mapping

MFC after: 1 month

15 years agoadd NPGPTD_SHIFT for the nkpt calculation
Kip Macy [Thu, 25 Sep 2008 07:05:17 +0000 (07:05 +0000)]
add NPGPTD_SHIFT for the nkpt calculation

MFC after: 1 month

15 years agoMake nkpt dependent on the size of the initial memory allocation
Kip Macy [Thu, 25 Sep 2008 07:03:09 +0000 (07:03 +0000)]
Make nkpt dependent on the size of the initial memory allocation

MFC after: 1 month

15 years agoreflect header change in netfront
Kip Macy [Thu, 25 Sep 2008 07:02:00 +0000 (07:02 +0000)]
reflect header change in netfront

MFC after: 1 month

15 years agopartial update to interface headers to 3.2
Kip Macy [Thu, 25 Sep 2008 07:01:31 +0000 (07:01 +0000)]
partial update to interface headers to 3.2

MFC after: 1 month

15 years agofix insta-panic:
Kip Macy [Thu, 25 Sep 2008 06:46:28 +0000 (06:46 +0000)]
fix insta-panic:
- determine which ext_arg offsets to use based on the version number

Submitted by: Chelsio Inc.
MFC after: 1 day