]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoAdd a SIOCGIFINDEX ioctl, which returns the index of a named interface.
Jonathan Lemon [Wed, 17 Oct 2001 19:40:44 +0000 (19:40 +0000)]
Add a SIOCGIFINDEX ioctl, which returns the index of a named interface.
This will be used to more efficiently support if_nametoindex(3).

22 years agoCleanup ifunit(), so it uses the dev_named() function to map an interface
Jonathan Lemon [Wed, 17 Oct 2001 18:58:14 +0000 (18:58 +0000)]
Cleanup ifunit(), so it uses the dev_named() function to map an interface
name into a device.

22 years agoAdd dev_named(dev, name), which is similar in spirit to devtoname().
Jonathan Lemon [Wed, 17 Oct 2001 18:47:12 +0000 (18:47 +0000)]
Add dev_named(dev, name), which is similar in spirit to devtoname().
This function returns success if the device is known by either 'name'
or any of its aliases.

22 years agoWhen specifying an interface to ifconfig, first look up the interface
Jonathan Lemon [Wed, 17 Oct 2001 18:30:13 +0000 (18:30 +0000)]
When specifying an interface to ifconfig, first look up the interface
index, then retrieve statistics for that index, rather than retrieving
all interfaces and then looking for a matching name.  This allows the
user to refer to an interface via an alias name.

While I'm here, also perform a few assorted cleanups.

22 years agoPull post-4.4BSD change to sys/net/route.c from BSD/OS 4.2.
Ruslan Ermilov [Wed, 17 Oct 2001 18:07:05 +0000 (18:07 +0000)]
Pull post-4.4BSD change to sys/net/route.c from BSD/OS 4.2.

Have sys/net/route.c:rtrequest1(), which takes ``rt_addrinfo *''
as the argument.  Pass rt_addrinfo all the way down to rtrequest1
and ifa->ifa_rtrequest.  3rd argument of ifa->ifa_rtrequest is now
``rt_addrinfo *'' instead of ``sockaddr *'' (almost noone is
using it anyways).

Benefit: the following command now works.  Previously we needed
two route(8) invocations, "add" then "change".
# route add -inet6 default ::1 -ifp gif0

Remove unsafe typecast in rtrequest(), from ``rtentry *'' to
``sockaddr *''.  It was introduced by 4.3BSD-Reno and never
corrected.

Obtained from: BSD/OS, NetBSD
MFC after: 1 month
PR: kern/28360

22 years agoChange kern.bootfile when mv'ing the kernel
Brian Somers [Wed, 17 Oct 2001 18:04:13 +0000 (18:04 +0000)]
Change kern.bootfile when mv'ing the kernel

Not tested by: brian

22 years agoPull fix for memory leak in in6_losing() from netinet/in_pcb.c,v 1.85.
Ruslan Ermilov [Wed, 17 Oct 2001 17:42:23 +0000 (17:42 +0000)]
Pull fix for memory leak in in6_losing() from netinet/in_pcb.c,v 1.85.

MFC after: 1 week

22 years agocontigmalloc1() could cause the vm_page_zero_count to become incorrect.
Matthew Dillon [Wed, 17 Oct 2001 17:34:34 +0000 (17:34 +0000)]
contigmalloc1() could cause the vm_page_zero_count to become incorrect.
Properly track the count.

Submitted by: mark tinguely <tinguely@web.cs.ndsu.nodak.edu>

22 years agoRemove some EOL whitespace. Update usage() to current reality.
Mike Barcroft [Wed, 17 Oct 2001 16:28:12 +0000 (16:28 +0000)]
Remove some EOL whitespace.  Update usage() to current reality.

22 years agoUse whois.example.com rather than non-existent.host in an example.
Mike Barcroft [Wed, 17 Oct 2001 15:47:38 +0000 (15:47 +0000)]
Use whois.example.com rather than non-existent.host in an example.

22 years agoUse a array to convert from a attribute for AT to one for PC98.
Yoshihiro Takahashi [Wed, 17 Oct 2001 15:15:01 +0000 (15:15 +0000)]
Use a array to convert from a attribute for AT to one for PC98.
(merged from sys/pc98/pc98/scvtbpc98.c)

22 years ago"of the of the" -> "of the"
Tom Hukins [Wed, 17 Oct 2001 15:02:37 +0000 (15:02 +0000)]
"of the of the" -> "of the"

PR: docs/31336
Submitted by: Sameh Ghane <sw@shaolin.profile4u.com>
MFC after: 2 days

22 years agoMerged from sys/boot/i386/libi386/vidconsole.c revisions 1.16, 1.17 and 1.18.
Yoshihiro Takahashi [Wed, 17 Oct 2001 14:41:50 +0000 (14:41 +0000)]
Merged from sys/boot/i386/libi386/vidconsole.c revisions 1.16, 1.17 and 1.18.

22 years agoEnsure that /var/log/lastlog exists so that login doesn't complain.
Brian S. Dean [Wed, 17 Oct 2001 14:30:19 +0000 (14:30 +0000)]
Ensure that /var/log/lastlog exists so that login doesn't complain.

Submitted by: Harti Brandt <brandt@fokus.gmd.de>
MFC after: 2 weeks

22 years agofix style(9)
Yoshihiro Takahashi [Wed, 17 Oct 2001 14:17:11 +0000 (14:17 +0000)]
fix style(9)

22 years agoMerged from sys/boot/i386/loader/Makefile revision 1.54.
Yoshihiro Takahashi [Wed, 17 Oct 2001 14:13:36 +0000 (14:13 +0000)]
Merged from sys/boot/i386/loader/Makefile revision 1.54.

22 years agoChange kern.bootfile when mv'ing the kernel
Brian Somers [Wed, 17 Oct 2001 13:57:32 +0000 (13:57 +0000)]
Change kern.bootfile when mv'ing the kernel

22 years agoAdd www:www (80:80) for upcoming Apache changes
Andrey A. Chernov [Wed, 17 Oct 2001 13:21:53 +0000 (13:21 +0000)]
Add www:www (80:80) for upcoming Apache changes

22 years agoFixed to process a IPv6 packet when ah transport after esp tunnel
Hajimu UMEMOTO [Wed, 17 Oct 2001 13:03:37 +0000 (13:03 +0000)]
Fixed to process a IPv6 packet when ah transport after esp tunnel
should be applied.  the SA of AH transport could not be selected
from the SAD because of this bug.

Obtained from: KAME
MFC after: 1 week

22 years agoThe behavior of SPDUPDATE has been changed.
Hajimu UMEMOTO [Wed, 17 Oct 2001 13:01:39 +0000 (13:01 +0000)]
The behavior of SPDUPDATE has been changed.
SPDUPDATE doesn't depend on whether there is a SP or not.
This change makes `generate_policy on' of racoon work.

Obtained from: KAME
MFC after: 1 week

22 years agoBring in latest CSRG revisions to this file:
Ruslan Ermilov [Wed, 17 Oct 2001 11:23:59 +0000 (11:23 +0000)]
Bring in latest CSRG revisions to this file:

- Report destination address of a P2P link when servicing
  routing socket messages.

- Report interface name, address, and destination address
  of a P2P link when servicing NET_RT_{DUMP,FLAGS} sysctls.

Part of CSRG revision 8.6 coresponds to revision 1.12.
CSRG revision 8.7 corresponds to revision 1.15.

22 years ago64-bit fixes from CSRG.
Ruslan Ermilov [Wed, 17 Oct 2001 11:10:55 +0000 (11:10 +0000)]
64-bit fixes from CSRG.

22 years agoRevision 1.32 corresponded to CSRG revision 8.2.
Ruslan Ermilov [Wed, 17 Oct 2001 10:44:39 +0000 (10:44 +0000)]
Revision 1.32 corresponded to CSRG revision 8.2.

22 years agoRevision 1.13 corresponded to CSRG revision 8.4.
Ruslan Ermilov [Wed, 17 Oct 2001 10:41:00 +0000 (10:41 +0000)]
Revision 1.13 corresponded to CSRG revision 8.4.
Revision 1.59 corresponded to CSRG revision 8.5.

22 years agoRecord the fact that revision 1.39 corresponded to CSRG revision 8.4,
Ruslan Ermilov [Wed, 17 Oct 2001 10:18:42 +0000 (10:18 +0000)]
Record the fact that revision 1.39 corresponded to CSRG revision 8.4,
and first hunk of revision 1.76 corresponded to CSRG revision 8.3.

22 years agoBring in latest CSRG revisions to this file.
Ruslan Ermilov [Wed, 17 Oct 2001 09:11:23 +0000 (09:11 +0000)]
Bring in latest CSRG revisions to this file.

22 years agoPrint 4 per line. To do this, we test against i % 16 == 0 rather than i % 4
Warner Losh [Wed, 17 Oct 2001 05:33:51 +0000 (05:33 +0000)]
Print 4 per line.  To do this, we test against i % 16 == 0 rather than i % 4
since that's always true for this loop.

22 years agoToPIC fixes. scale back what we do for functional interrupts because
Warner Losh [Wed, 17 Oct 2001 05:20:56 +0000 (05:20 +0000)]
ToPIC fixes.  scale back what we do for functional interrupts because
it appears to break at least the ToPIC 100.

Submitted by: Mark Santcroos <marks@ripe.net>

22 years agoRemove a couple of errant tags.
Scott Long [Wed, 17 Oct 2001 05:10:58 +0000 (05:10 +0000)]
Remove a couple of errant tags.

22 years agoBack out previous revision. TCBHASHSIZE isn't an option, despite what I'd
Dag-Erling Smørgrav [Wed, 17 Oct 2001 04:30:04 +0000 (04:30 +0000)]
Back out previous revision.  TCBHASHSIZE isn't an option, despite what I'd
been misled to believe by unknown parties.  It probably *should* be an option,
but the runtime value is controlled by a tunable, which Ought To Be Enough.

22 years agoif_index is the highest interface index in the system, not the next
Bill Fenner [Wed, 17 Oct 2001 04:23:14 +0000 (04:23 +0000)]
if_index is the highest interface index in the system, not the next
 available index.

22 years agoThe interface index space may be sparsely populated (e.g. when an
Bill Fenner [Wed, 17 Oct 2001 04:12:29 +0000 (04:12 +0000)]
The interface index space may be sparsely populated (e.g. when an
 interface in the middle is if_detach()'d).  Return (and handle)
 ENOENT when the ifmib(4) is accessed for a nonexistent interface.

MFC after: 14 days

22 years agoIf the remote uptime is less than one minute, print the uptime in
Bill Fenner [Wed, 17 Oct 2001 01:44:34 +0000 (01:44 +0000)]
If the remote uptime is less than one minute, print the uptime in
 seconds instead of leaving the uptime field blank.

22 years agofix minor bug in kern.minvnodes sysctl. Use OID_AUTO.
Matthew Dillon [Tue, 16 Oct 2001 23:08:09 +0000 (23:08 +0000)]
fix minor bug in kern.minvnodes sysctl.  Use OID_AUTO.

22 years agoMake SCSI changer and SES devices standard in generic kernels.
Matt Jacob [Tue, 16 Oct 2001 22:22:58 +0000 (22:22 +0000)]
Make SCSI changer and SES devices standard in generic kernels.

Reviewed by: ken@kdm.org

22 years agoWhen nfsd was started with only UDP servers, the master nfsd would
Ian Dowse [Tue, 16 Oct 2001 21:55:53 +0000 (21:55 +0000)]
When nfsd was started with only UDP servers, the master nfsd would
spin in a loop eating CPU time. This bug has existed since the
TI-RPC import. The problem is that we should only enter the select
loop if at least one TCP server was started.  Fix this by having
the master nfsd become a UDP server itself if there are no TCP
servers.

Also improve/correct the code for cleaning up slave nfsd processes
and unregistering with rpcbind when the master nfsd exits.

One issue that remains open is that if a slave nfsd dies, then all
nfsds will shut down. This is because nfssvc() in the master nfsd
returns 0 when the master nfsd receives a SIGCHLD.

Submitted by: tmm

22 years agoDocument TCBHASHSIZE.
Dag-Erling Smørgrav [Tue, 16 Oct 2001 21:53:27 +0000 (21:53 +0000)]
Document TCBHASHSIZE.

22 years agoImprove the wording of my last commit.
Murray Stokely [Tue, 16 Oct 2001 18:32:33 +0000 (18:32 +0000)]
Improve the wording of my last commit.

Submitted by: sheldonh

22 years agoDeleted most of npxprobe(), and merged npxprobe1() back into npxprobe().
Bruce Evans [Tue, 16 Oct 2001 14:12:35 +0000 (14:12 +0000)]
Deleted most of npxprobe(), and merged npxprobe1() back into npxprobe().
Use the normal interrupt handler (npx_intr()) instead of a special
probe-time interrupt handler, although this causes problems due to
the bus_teardown_intr() not actually even tearing down the interrupt
(these problems were avoided by doing interrupt attachment for the
special interrupt handler directly).  Fixed minor bitrot in comments.

The reason for the npxprobe()/npxprobe1() split mostly went away at
about the same time it was made (in 1992 or 1993 just before the
beginning of history).  386BSD ran all probes with interrupts completely
masked, and I didn't want to disturb this when I added an irq probe
to npxprobe().  An irq (not necessarily npx) must be acked for at least
external npx's to take the cpu out of the wait state that it enters
when an npx error occurs, so the probe must be done with a suitable
irq unmasked.  npxprobe() went to great lengths to unmask precisely
the npx irq.

Running probes with all interrupts masked was never really needed in
FreeBSD, since FreeBSD always masked interrupts well enough using
splhigh(), but it wasn't until rev.1.48 (1995/12/12) of autoconf.c
that all probes were run with CPU interrupts enabled.  This permits
npxprobe() to probe its irq using normal interrupt resources.  Note
that most drivers still can't depend on this.  It depends on the
interrupt handler being fast and the irq not being shared.

22 years agoCommit my old fixes for cosmetic bugs in npxprobe() so that they aren't
Bruce Evans [Tue, 16 Oct 2001 12:55:38 +0000 (12:55 +0000)]
Commit my old fixes for cosmetic bugs in npxprobe() so that they aren't
lost when the buggy code goes away completely:
- don't assume that the npx irq number is >= 8.  Rev.1.73 only reversed
  part of the hard-coding of it to 13 in rev.1.66.
- backed out the part of rev.1.84 that added a highly confused comment
  about an enable_intr() being "highly bogus".  The whole reason for
  existence of npxprobe() (separate from the main probe, npxprobe1())
  is to handle the complications to make this enable_intr() safe.
- backed out the part of rev.1.94 that modified npxprobe().  It mainly
  broke the enable_intr() to restore_intr().  Restoring the interrupt
  state in a nested way is precisely what is not wanted here.  It was
  harmless in practice because npxprobe() is called with interrupts
  enabled, so restoring the interrupt state enables interrupts.  Most
  of npxprobe() is a no-op for the same reason...

22 years agoFixed spelling error in previous commit.
Bruce Evans [Tue, 16 Oct 2001 10:52:12 +0000 (10:52 +0000)]
Fixed spelling error in previous commit.

22 years agoUse strlcpy(3) instead of strcpy(3) to copy optarg into a fixed-size buffer.
Maxim Sobolev [Tue, 16 Oct 2001 09:21:09 +0000 (09:21 +0000)]
Use strlcpy(3) instead of strcpy(3) to copy optarg into a fixed-size buffer.

MFC after: 2 weeks

22 years agoFix bug introduced by the last commit, the caused some ATAPI
Søren Schmidt [Tue, 16 Oct 2001 08:07:36 +0000 (08:07 +0000)]
Fix bug introduced by the last commit, the caused some ATAPI
devices to fail to proberly initialize at boot..

22 years agoSize the number of pv_entries we use to bootstrap the pv_entry allocator
Doug Rabson [Tue, 16 Oct 2001 08:03:16 +0000 (08:03 +0000)]
Size the number of pv_entries we use to bootstrap the pv_entry allocator
based on the size of physical memory. This should eliminate the tweaking
needed for larger memory configurations.

22 years agoIncrease the number of packages that can be installed by an order of
David E. O'Brien [Tue, 16 Oct 2001 06:42:06 +0000 (06:42 +0000)]
Increase the number of packages that can be installed by an order of
magnitude.  Geez, this is Unix, what is with the arbitrary needless
constants.

22 years agoImplement linux_chown and linux_lchown. The fchown syscall maps
Marcel Moolenaar [Tue, 16 Oct 2001 06:15:36 +0000 (06:15 +0000)]
Implement linux_chown and linux_lchown. The fchown syscall maps
directly to the native syscall, because no filename handling
needs to be done.

Tested by: Martin Blapp <mb@imp.ch>

22 years agoo Change prototype of linux_lchown and linux_chown so that the
Marcel Moolenaar [Tue, 16 Oct 2001 06:11:11 +0000 (06:11 +0000)]
o  Change prototype of linux_lchown and linux_chown so that the
   argument names match those on Alpha.
o  Map the fchown directly to FreeBSD. Since the old version of
   fchown is also mapped to the native fchown, give the new one
   type NODEF.

Tested by: Martin Blapp <mb@imp.ch>

22 years agoFix "off by 1" error introduced in the previous commit by replacing strncpy(3)
Maxim Sobolev [Tue, 16 Oct 2001 03:04:15 +0000 (03:04 +0000)]
Fix "off by 1" error introduced in the previous commit by replacing strncpy(3)
with strlcpy(3).

MFC after: 2 weeks

22 years agoFix reference to aio_read, should be aio_write
Alfred Perlstein [Tue, 16 Oct 2001 00:49:19 +0000 (00:49 +0000)]
Fix reference to aio_read, should be aio_write

22 years agoDon't use an uninitialized field reserved for callers in the bio structure
Tor Egge [Mon, 15 Oct 2001 23:02:54 +0000 (23:02 +0000)]
Don't use an uninitialized field reserved for callers in the bio structure
passed to swap_pager_strategy().  Instead, use a field reserved for drivers
and initialize it before usage.

Reviewed by: dillon

22 years agoDocument the optimal block:fragment ratio, per discussion
Doug Barton [Mon, 15 Oct 2001 22:47:55 +0000 (22:47 +0000)]
Document the optimal block:fragment ratio, per discussion
on -arch and cvs-all.

Reviewed by: dillon

22 years agoTry to make Linux socket ioctls work. Up until now they've only *pretended*
Dag-Erling Smørgrav [Mon, 15 Oct 2001 20:52:17 +0000 (20:52 +0000)]
Try to make Linux socket ioctls work.  Up until now they've only *pretended*
to work, but haven't really due to subtle differences in structs etc.

This is still not perfect (some ioctls are still known not to work, while
others haven't been tested at all), but it's enough to get Debian's ifconfig
to produce relatively sane output.

More work will be needed to get all ioctls (or at least a reasonable subset)
working, and to support the Cisco Aironet config tool mentioned in the PR.

PR: 26546
Submitted by: Doug Ambrisko <ambrisko@ambrisko.com>

22 years agoAllow reboot during runcom.
Dag-Erling Smørgrav [Mon, 15 Oct 2001 20:34:43 +0000 (20:34 +0000)]
Allow reboot during runcom.

PR: bin/28116
Submitted by: Valentin Nechayev <netch@netch.kiev.ua>
MFC in: 1 week

22 years agoExplicitly initialize the fpu when SSE is enabled since this no
Tor Egge [Mon, 15 Oct 2001 20:18:06 +0000 (20:18 +0000)]
Explicitly initialize the fpu when SSE is enabled since this no
longer happens as a side effect of calling npxsave.

Reviewed by: peter, bde

22 years agoIn FreeBSD's ifreq, ifr_ifru.ifru_flags is an array of two chars, while Linux
Dag-Erling Smørgrav [Mon, 15 Oct 2001 20:06:34 +0000 (20:06 +0000)]
In FreeBSD's ifreq, ifr_ifru.ifru_flags is an array of two chars, while Linux
defines it as a short.  Change that to an array of one short so that FreeBSD's
ifr_flags macro will work (it evaluates to ifr_ifru.ifru_flags[0]).

22 years agoSet the interface speed back to zero, after ether_ifattach() set it
Bill Fenner [Mon, 15 Oct 2001 19:21:01 +0000 (19:21 +0000)]
Set the interface speed back to zero, after ether_ifattach() set it
to 10Mbps.  RFC 2863 says: "For a sub-layer which has no concept
of bandwidth, [ifSpeed] should be zero."

22 years agoAdd ia64 support. Various adjustments were made to existing targets to
Doug Rabson [Mon, 15 Oct 2001 18:48:42 +0000 (18:48 +0000)]
Add ia64 support. Various adjustments were made to existing targets to
cope with a few interface changes required by the ia64. In particular,
function pointers on ia64 need special treatment in rtld.

22 years agoUse strncpy(3) instead of strcpy(3) to copy optarg into a fixed-sized buffer.
Maxim Sobolev [Mon, 15 Oct 2001 18:21:08 +0000 (18:21 +0000)]
Use strncpy(3) instead of strcpy(3) to copy optarg into a fixed-sized buffer.

Prompted by: dd
MFC after: 2 weeks

22 years agoPort 139 (NetBIOS session management) is a tcp socket, not udp.
Brian Somers [Mon, 15 Oct 2001 16:08:40 +0000 (16:08 +0000)]
Port 139 (NetBIOS session management) is a tcp socket, not udp.

PR: 31215
Submitted by: Stephane Marzloff <secrer@le-bar.org>
MFC after: 1 week

22 years agoAdd a prototype for OF_alloc_phys.
Robert Drehmel [Mon, 15 Oct 2001 14:43:38 +0000 (14:43 +0000)]
Add a prototype for OF_alloc_phys.

22 years agoFix some warnings.
Robert Drehmel [Mon, 15 Oct 2001 14:40:36 +0000 (14:40 +0000)]
Fix some warnings.

22 years agoAdd the FreeBSD/sparc64 boot loader source files.
Robert Drehmel [Mon, 15 Oct 2001 14:35:39 +0000 (14:35 +0000)]
Add the FreeBSD/sparc64 boot loader source files.

22 years agoMake this Makefile suitable for sparc64.
Robert Drehmel [Mon, 15 Oct 2001 14:27:37 +0000 (14:27 +0000)]
Make this Makefile suitable for sparc64.

22 years agocatch forwarded ipv6 packets with pfil_hooks for outbound things too
Darren Reed [Mon, 15 Oct 2001 14:16:18 +0000 (14:16 +0000)]
catch forwarded ipv6 packets with pfil_hooks for outbound things too

22 years agoDefine the types iaddr_t and saddr_t for sparc64.
Robert Drehmel [Mon, 15 Oct 2001 13:50:47 +0000 (13:50 +0000)]
Define the types iaddr_t and saddr_t for sparc64.

22 years agoThe user wants to ensure, not insure, that the package isn't going to
Dima Dorfman [Mon, 15 Oct 2001 13:49:51 +0000 (13:49 +0000)]
The user wants to ensure, not insure, that the package isn't going to
damage their system.

22 years agoMatch parenthesis and don't give names to return values.
Dima Dorfman [Mon, 15 Oct 2001 13:34:43 +0000 (13:34 +0000)]
Match parenthesis and don't give names to return values.

PR: 31214

22 years agosysctl -w -> sysctl, remove second person pronouns, and fix some other
Dima Dorfman [Mon, 15 Oct 2001 13:30:52 +0000 (13:30 +0000)]
sysctl -w -> sysctl, remove second person pronouns, and fix some other
minor bugs.

PR: 30772
Submitted by: Peter Avalos <pavalos@theshell.com>

22 years agoAdd a hack to get around the fact that egcs 1.1.2 (which I'm using to build
Benno Rice [Mon, 15 Oct 2001 13:30:04 +0000 (13:30 +0000)]
Add a hack to get around the fact that egcs 1.1.2 (which I'm using to build
my powerpc kernels on NetBSD/macppc 1.5) doesn't know of the __func__ macro.

22 years agoFlesh out cpu_fork() and cpu_set_fork_handler(). This is a work in progress.
Benno Rice [Mon, 15 Oct 2001 12:24:43 +0000 (12:24 +0000)]
Flesh out cpu_fork() and cpu_set_fork_handler().  This is a work in progress.

22 years ago- Correct the type of the argument to delay() so as to not conflict with
Benno Rice [Mon, 15 Oct 2001 12:23:10 +0000 (12:23 +0000)]
- Correct the type of the argument to delay() so as to not conflict with
  sys/boot/common/bootstrap.h.
- Add a prototype for fork_trampoline().

22 years agoMake the ofw_reg structure and ofw_alloc_heap 64-bit save.
Robert Drehmel [Mon, 15 Oct 2001 12:16:20 +0000 (12:16 +0000)]
Make the ofw_reg structure and ofw_alloc_heap 64-bit save.

22 years agoAdd a Makefile for the sparc64 boot loader.
Robert Drehmel [Mon, 15 Oct 2001 10:36:35 +0000 (10:36 +0000)]
Add a Makefile for the sparc64 boot loader.

22 years agoDo not include openfirm.h; it is now included by libofw.h.
Robert Drehmel [Mon, 15 Oct 2001 09:52:38 +0000 (09:52 +0000)]
Do not include openfirm.h; it is now included by libofw.h.

22 years ago - Use the cell_t type definition for Open Firmware arguments in
Robert Drehmel [Mon, 15 Oct 2001 09:51:09 +0000 (09:51 +0000)]
 - Use the cell_t type definition for Open Firmware arguments in
   combination with requisite casts as this avoids fatal side
   effects on 64-bit architectures.
 - Add the OF_alloc_phys function.

22 years agoDon't even attempt to clone host routes.
Ruslan Ermilov [Mon, 15 Oct 2001 09:46:48 +0000 (09:46 +0000)]
Don't even attempt to clone host routes.

MFC after: 1 week

22 years ago - Fill dummy functions with code to read from disk using Open
Robert Drehmel [Mon, 15 Oct 2001 09:35:40 +0000 (09:35 +0000)]
 - Fill dummy functions with code to read from disk using Open
   Firmware.
 - Add a temporary disklabel header to boot off a NetBSD/sparc64
   partition.  This file can be deleted when we have got a FCode
   bootblock.

The disklabel header was obtained from NetBSD.

22 years ago - Include openfirm.h for phandle_t.
Robert Drehmel [Mon, 15 Oct 2001 09:28:07 +0000 (09:28 +0000)]
 - Include openfirm.h for phandle_t.
 - Add some necessary members to the ofwdisk structure.
 - Add a prototype for ofw_parseofwdev.

22 years agoAdd a function for parsing an Open Firmware boot path into the
Robert Drehmel [Mon, 15 Oct 2001 09:25:30 +0000 (09:25 +0000)]
Add a function for parsing an Open Firmware boot path into the
ofw_devdesc structure.

22 years ago - Add an ifdef guard.
Robert Drehmel [Mon, 15 Oct 2001 09:02:03 +0000 (09:02 +0000)]
 - Add an ifdef guard.
 - Use unsigned types for the (32-bit) Open Firmware device handles
   to avoid sign extension on 64-bit architectures.
 - Add a standard type definition for Open Firmware arguments.

22 years agoWhen compiling with SKI support, create the fake memory regions
Marcel Moolenaar [Mon, 15 Oct 2001 07:58:27 +0000 (07:58 +0000)]
When compiling with SKI support, create the fake memory regions
when either the memory descriptor in the bootinfo is NULL or
the descriptor count is 0.

22 years agoAdd EFI GPT (238, 0xEE) and EFI System Parition (239, 0xEF)
Peter Wemm [Mon, 15 Oct 2001 07:25:29 +0000 (07:25 +0000)]
Add EFI GPT (238, 0xEE) and EFI System Parition (239, 0xEF)

22 years agoAdd 0xEE (EFI GPT) and 0xEF (EFI System Partition)
Peter Wemm [Mon, 15 Oct 2001 07:21:32 +0000 (07:21 +0000)]
Add 0xEE (EFI GPT) and 0xEF (EFI System Partition)

22 years agoWhack on this soon to be deprecated driver.
Matt Jacob [Mon, 15 Oct 2001 06:59:41 +0000 (06:59 +0000)]
Whack on this soon to be deprecated driver.
What the heck, the OpenBSD version will benefit.

1. Add wx_txint_delay as a tunable (defaults to 5000 now, or ~5ms) and switch
to using delayed TXDW interrupts. Since the chip continues to reload the
TIDV with this value for each descriptor written back, this allows continued
deferral of the actual interrupt until the last packet completes (assuming
that 5ms between multiple packets transmitting is reasonable).

2. Add two other SYSCTL entities:

hw.wx.dump_stats
hw.wx.clear_stats

to be used, hackey hackey, to get the watchdog routine to dump/clear
the current softc statistics.

Usage would be:

sysctl -w hw.wx.dump_stats=UNIT

to cause the current stats to be dumped for UNIT.

3. Attempt to clean up wx_detach routine so we don't panic. Well, things
still panic, but given that the code is just like other NIC drivers,
I suspect it's actually something elsewhere, like e1000phy, that's actually
blowing up.

4. Skip the entire test for runt packets- after doing somet thinking
and experimenting, I believe that the chip only doesn't like it if
the whole frame to xmit is < 16 bytes- each TFD can be some fragment
of that. This should improve performance a chunk because of all of the
(14 byte ETHERHEADER + DATA) mbuf chains.

5. Keep track of total frame length. Try not to xmit an odd byte frame-
this is supposed to get around some dumb Cisco switch problems.

6. On the last packet, also set Interrupt Delay && Report Packet Sent
(see #1 above)

7. Attempt to do xmit garbage collection *first* in order to avoid setting
IFF_OACTIVE if at all possible.

MFC after: 1 week

22 years agoFixed style bugs in previous commit.
Bruce Evans [Mon, 15 Oct 2001 04:29:06 +0000 (04:29 +0000)]
Fixed style bugs in previous commit.

22 years agoAdd a manual page for the Maestro3 sound driver. This documents it's
Scott Long [Mon, 15 Oct 2001 04:23:38 +0000 (04:23 +0000)]
Add a manual page for the Maestro3 sound driver.  This documents it's
special nature under the GPL and a boot hint that can affect operation.

MFC after: 3 days

22 years agoWe don't use the IA-64 psABI ELF_DYNAMIC_INTERPRETER, so remove it.
David E. O'Brien [Mon, 15 Oct 2001 03:10:48 +0000 (03:10 +0000)]
We don't use the IA-64 psABI ELF_DYNAMIC_INTERPRETER, so remove it.

22 years agoAdd back DEC_EB64PLUS and DEC_AXPPCI_33 support as we've gained a little bit
David E. O'Brien [Mon, 15 Oct 2001 02:50:18 +0000 (02:50 +0000)]
Add back DEC_EB64PLUS and DEC_AXPPCI_33 support as we've gained a little bit
more room on the install floppies now that modules can be on a 3rd floppy.

22 years ago+ Use `ee' in lue of `vi' as it is smaller.
David E. O'Brien [Mon, 15 Oct 2001 02:49:15 +0000 (02:49 +0000)]
+ Use `ee' in lue of `vi' as it is smaller.
+ Remove 'sleep' (not sure why it is so important in fix-it mode).
+ Remove ability to mount MSDOSFS as that is not a typical filesystem on an
  alpha; and thus does not really add to the fix-it mix.
+ Sync style with i386.

22 years agoForced commit to fix the Submitted by: line.
Scott Long [Mon, 15 Oct 2001 02:18:57 +0000 (02:18 +0000)]
Forced commit to fix the Submitted by: line.

Submitted by: ken, Randy Bush <randy@psg.com>

22 years agoClean this up.
David E. O'Brien [Mon, 15 Oct 2001 02:14:08 +0000 (02:14 +0000)]
Clean this up.

22 years agoBinutils 2.11.2 build framework for the FreeBSD/IA-64 target.
David E. O'Brien [Mon, 15 Oct 2001 02:13:26 +0000 (02:13 +0000)]
Binutils 2.11.2 build framework for the FreeBSD/IA-64 target.

22 years agoAdd a quirk entry so that the Maxtor 3000LE USB drive will work.
Scott Long [Mon, 15 Oct 2001 02:05:06 +0000 (02:05 +0000)]
Add a quirk entry so that the Maxtor 3000LE USB drive will work.

Submitted by: merry, Randy Bush <randy@psg.com>
MFC after: 3 days

22 years agoWe don't support GDB for IA-64, PowerPC, or sparc64 yet.
David E. O'Brien [Mon, 15 Oct 2001 01:57:13 +0000 (01:57 +0000)]
We don't support GDB for IA-64, PowerPC, or sparc64 yet.

22 years agoWe can easily share obj-format.h and targ-env.h files across all FreeBSD
David E. O'Brien [Mon, 15 Oct 2001 01:43:23 +0000 (01:43 +0000)]
We can easily share obj-format.h and targ-env.h files across all FreeBSD
platforms, which reduces the upgrade effort.
Also tidy up the Makefiles.

22 years agoReinstate VINUMDEBUG. Removing it also removes some diagnostic commands.
Greg Lehey [Mon, 15 Oct 2001 01:32:48 +0000 (01:32 +0000)]
Reinstate VINUMDEBUG.  Removing it also removes some diagnostic commands.
I should reconsider whether I just leave them in without #ifdef VINUMDEBUG.

22 years agoMore cleaning.
David E. O'Brien [Mon, 15 Oct 2001 01:18:51 +0000 (01:18 +0000)]
More cleaning.

22 years agoFix typo.
Mark Peek [Mon, 15 Oct 2001 01:04:49 +0000 (01:04 +0000)]
Fix typo.

22 years agoSave WIP. Partial rewrite of cpu_switch() and savectx(). This makes it closer
Mark Peek [Mon, 15 Oct 2001 00:37:45 +0000 (00:37 +0000)]
Save WIP. Partial rewrite of cpu_switch() and savectx(). This makes it closer
to working but still needs some work to properly switch the full context
(such as saving the fpu registers, switch stacks, etc.).  Also, remove some
dead code that was mixed in.

22 years agoSlightly improve wording in the opening paragraph.
Dima Dorfman [Sun, 14 Oct 2001 23:13:01 +0000 (23:13 +0000)]
Slightly improve wording in the opening paragraph.

PR: 31202
Submitted by: Jasmin Blanchette <jasmin@troll.no>