]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoChange the script a bit to allow the creation of 'brouted' bridges.
julian [Fri, 12 Apr 2002 04:44:53 +0000 (04:44 +0000)]
Change the script a bit to allow the creation of 'brouted' bridges.
To do this you need to have each top-end connected as well.
IP can be routed and other protocols get bridged..
Also useful when bridgeing two networks while merging them as
machines will work with both old and new netmasks. (well mostly).

22 years agoDocument the new size parameter.
davidc [Fri, 12 Apr 2002 04:26:15 +0000 (04:26 +0000)]
Document the new size parameter.

22 years agoDocument the new flags parameter.
davidc [Fri, 12 Apr 2002 04:23:22 +0000 (04:23 +0000)]
Document the new flags parameter.
Add vget(9) to the SEE ALSO list.
Minor formatting change.

22 years agoUpdate the .Fn line for SX_SYSINIT to include the parameter types.
davidc [Fri, 12 Apr 2002 03:55:43 +0000 (03:55 +0000)]
Update the .Fn line for SX_SYSINIT to include the parameter types.

22 years agoUpdate the .Fn line for MTX_SYSINIT to include the parameter types.
davidc [Fri, 12 Apr 2002 03:54:44 +0000 (03:54 +0000)]
Update the .Fn line for MTX_SYSINIT to include the parameter types.

22 years agoReplace the original host WEP implementation with the one in OpenBSD
imp [Fri, 12 Apr 2002 03:42:37 +0000 (03:42 +0000)]
Replace the original host WEP implementation with the one in OpenBSD
(apparently by markus@, at least committed by him).  This has the
advantage of not using the bad IV's from Fluhrer/Mantin/Shamir as well
as bringing the drivers a little closer together.

Also use a few constants in place of magic numbers in one place.

Obtained from: OpenBSD 1.25, 1.28, 1.36, 1.38, 1.42

22 years agoFix corner case where m_len was not being initialized.
hsu [Fri, 12 Apr 2002 00:01:50 +0000 (00:01 +0000)]
Fix corner case where m_len was not being initialized.

Submitted by: Maksim Yevmenkin <myevmenk@digisle.net>
MFC after: 1 week

22 years agoUpdated release note: OpenPAM Cinchona.
bmah [Thu, 11 Apr 2002 23:26:22 +0000 (23:26 +0000)]
Updated release note:  OpenPAM Cinchona.

Deleted release note:  NetBSD sort.

MFCs noted:  New ephemeral port range, ISC DHCP client update.

22 years agoNew release note: sendmail startup script/options.
bmah [Thu, 11 Apr 2002 23:16:58 +0000 (23:16 +0000)]
New release note:  sendmail startup script/options.

Reviewed by: gshapiro

22 years agoCosmetic changes to the previous commit, bringing it closer to what I
des [Thu, 11 Apr 2002 22:06:27 +0000 (22:06 +0000)]
Cosmetic changes to the previous commit, bringing it closer to what I
already had in my tree but didn't want to commit.

22 years agoKnowledgeable persons assure me that RSA is preferable to DSA and that we
des [Thu, 11 Apr 2002 22:04:40 +0000 (22:04 +0000)]
Knowledgeable persons assure me that RSA is preferable to DSA and that we
should transition away from DSA.

22 years agoAdd ActionTec HWC01170 and Linksys IWN2
imp [Thu, 11 Apr 2002 21:21:14 +0000 (21:21 +0000)]
Add ActionTec HWC01170 and Linksys IWN2

Obtained from: OpenBSD

22 years agoCatchup to 1.32
imp [Thu, 11 Apr 2002 21:19:04 +0000 (21:19 +0000)]
Catchup to 1.32

22 years agoAdd ACTIONTEC HWC01170 from OpenBSD
imp [Thu, 11 Apr 2002 21:18:17 +0000 (21:18 +0000)]
Add ACTIONTEC HWC01170 from OpenBSD

22 years agoUse the proc lock to protect p_ucred while we read a few items from it.
jhb [Thu, 11 Apr 2002 21:17:45 +0000 (21:17 +0000)]
Use the proc lock to protect p_ucred while we read a few items from it.

22 years agoMake this compile again when UMASS_DEBUG isn't defined.
jhb [Thu, 11 Apr 2002 21:09:41 +0000 (21:09 +0000)]
Make this compile again when UMASS_DEBUG isn't defined.

22 years ago- Set the base priority of an ithread that has no handlers when we set its
jhb [Thu, 11 Apr 2002 21:03:35 +0000 (21:03 +0000)]
- Set the base priority of an ithread that has no handlers when we set its
  normal priority.
- Lock sched_lock while we dink with the priorities.
- Remove a few extra blank lines.

22 years agoCommented out locking that would be used in the ps command if locks were
jhb [Thu, 11 Apr 2002 21:01:34 +0000 (21:01 +0000)]
Commented out locking that would be used in the ps command if locks were
used in ddb.

22 years agoUse proc lock to protect p_ucred pointer while we deference it to read a
jhb [Thu, 11 Apr 2002 21:00:38 +0000 (21:00 +0000)]
Use proc lock to protect p_ucred pointer while we deference it to read a
few values.

22 years agoUse td_ucred in a few spots.
jhb [Thu, 11 Apr 2002 21:00:05 +0000 (21:00 +0000)]
Use td_ucred in a few spots.

22 years agoUse PTRACE_ARG3_TYPE of caddr_t.
obrien [Thu, 11 Apr 2002 20:42:13 +0000 (20:42 +0000)]
Use PTRACE_ARG3_TYPE of caddr_t.

Obtained from: gdb 5.2

22 years agoIn the cross case we need to provide TARGET_MACHINE.
obrien [Thu, 11 Apr 2002 18:40:37 +0000 (18:40 +0000)]
In the cross case we need to provide TARGET_MACHINE.

22 years agoRegen
alc [Thu, 11 Apr 2002 17:35:53 +0000 (17:35 +0000)]
Regen

22 years agoRemove the requirement that Giant be held around osigreturn(). All platform-
alc [Thu, 11 Apr 2002 17:34:38 +0000 (17:34 +0000)]
Remove the requirement that Giant be held around osigreturn().  All platform-
specific implementations are MPSAFE.

22 years agoAdd an IPv6 sample line for tftpd.
ume [Thu, 11 Apr 2002 17:17:28 +0000 (17:17 +0000)]
Add an IPv6 sample line for tftpd.

MFC after: 2 weeks

22 years agoIPv6 support for tftp/tftpd.
ume [Thu, 11 Apr 2002 17:14:22 +0000 (17:14 +0000)]
IPv6 support for tftp/tftpd.

Obtained from: KAME
MFC after: 2 weeks

22 years agoAdd a comment that osigreturn() is MPSAFE.
alc [Thu, 11 Apr 2002 17:13:08 +0000 (17:13 +0000)]
Add a comment that osigreturn() is MPSAFE.

22 years agoSwitch to using cdboot for booting i386 CD's by default.
jhb [Thu, 11 Apr 2002 16:39:13 +0000 (16:39 +0000)]
Switch to using cdboot for booting i386 CD's by default.

Approved by: murray

22 years agoPrefer DSA to RSA if both are available.
des [Thu, 11 Apr 2002 16:08:48 +0000 (16:08 +0000)]
Prefer DSA to RSA if both are available.

22 years agoDo not attempt to load an ssh2 RSA host key by default.
des [Thu, 11 Apr 2002 16:08:02 +0000 (16:08 +0000)]
Do not attempt to load an ssh2 RSA host key by default.

22 years agoMFC noted: I18N additions/enhancements.
bmah [Thu, 11 Apr 2002 15:58:27 +0000 (15:58 +0000)]
MFC noted:  I18N additions/enhancements.

Pointed out by: phantom

22 years agoAdd Dynalink IS64PPH+ to ISDN interfaces, fix an apparent typo.
bmah [Thu, 11 Apr 2002 15:47:52 +0000 (15:47 +0000)]
Add Dynalink IS64PPH+ to ISDN interfaces, fix an apparent typo.

Submitted by: znerd

22 years agoAdd Netgear MA401 to wi(4)-supported devices.
bmah [Thu, 11 Apr 2002 15:44:17 +0000 (15:44 +0000)]
Add Netgear MA401 to wi(4)-supported devices.

Submitted by: Michael Sierchio <kudzu@tenebras.com>

22 years agoFix a warning due to the code assuming sizeof(int) == sizeof(void *) which
jhb [Thu, 11 Apr 2002 15:31:01 +0000 (15:31 +0000)]
Fix a warning due to the code assuming sizeof(int) == sizeof(void *) which
is not true on the alpha.  I think that other parts of this code also make
this implicit assumption as well.

22 years agoI now don't seem to be able to reproduce the -DNOCLEAN buildworld
ru [Thu, 11 Apr 2002 14:49:32 +0000 (14:49 +0000)]
I now don't seem to be able to reproduce the -DNOCLEAN buildworld
breakage with ioctl.c.  The .depend file should track dependencies
just fine, and the worst we can have is to miss new ioctls.

But I still think it's a good idea to have -DNOCLEAN build produce
the same ioctl.c as it would without -DNOCLEAN.

Prodded for a long time by: bde

22 years agoDon't special case i386/pc98, replace it with the smarter logic
ru [Thu, 11 Apr 2002 13:43:50 +0000 (13:43 +0000)]
Don't special case i386/pc98, replace it with the smarter logic
of setting ${TARGET} -- make it default to ${MACHINE} if we are
not cross-building, and ${TARGET_ARCH} otherwise.

Set MAKEOBJDIREPREFIX based on ${TARGET}, not on ${TARGET_ARCH}.
This is useful if you want to cross-build pc98 worlds on i386.

22 years agoLCA based systems can't handle more than 16 devices on pci bus 0.
ticso [Thu, 11 Apr 2002 13:24:20 +0000 (13:24 +0000)]
LCA based systems can't handle more than 16 devices on pci bus 0.

Reviewed by: gallatin
Approved by: gallatin

22 years agoStop "make depend" from attempting to delete non-existent .depend.
ru [Thu, 11 Apr 2002 12:30:20 +0000 (12:30 +0000)]
Stop "make depend" from attempting to delete non-existent .depend.

22 years agoReimplement the hack to put pam_static.o into .depend with some magic.
ru [Thu, 11 Apr 2002 12:21:16 +0000 (12:21 +0000)]
Reimplement the hack to put pam_static.o into .depend with some magic.

22 years agoRevert the last change and mark the program as PROG_CXX.
ru [Thu, 11 Apr 2002 11:06:06 +0000 (11:06 +0000)]
Revert the last change and mark the program as PROG_CXX.

22 years agoAdd yet another chip ID for a Promise TX2 chip.
sos [Thu, 11 Apr 2002 11:04:23 +0000 (11:04 +0000)]
Add yet another chip ID for a Promise TX2 chip.

22 years agoUse the new PROG_CXX knob.
ru [Thu, 11 Apr 2002 11:02:41 +0000 (11:02 +0000)]
Use the new PROG_CXX knob.

22 years agoImplement PROG_CXX for <bsd.prog.mk>.
ru [Thu, 11 Apr 2002 10:44:30 +0000 (10:44 +0000)]
Implement PROG_CXX for <bsd.prog.mk>.

Obtained from: NetBSD (with some mods)
Reviewed by: peter

22 years agoDelay umass_cam_rescan by 200 ms to make sure attach is finished by the
n_hibma [Thu, 11 Apr 2002 10:34:15 +0000 (10:34 +0000)]
Delay umass_cam_rescan by 200 ms to make sure attach is finished by the
time we tell CAM to rescan the bus. Together with the previous patch
this should avoid the problem where the devices would wedge because they
got spoken to over two different pipes.

Tested by: Tomas Pluskal <plusik@pohoda.cz>

22 years agoBandaid for a buffer overrun in the module searching code. When breaking
peter [Thu, 11 Apr 2002 10:00:44 +0000 (10:00 +0000)]
Bandaid for a buffer overrun in the module searching code.  When breaking
up the module_path string, we would walk one past the end of the buffer.
This hurting ia64 originally, but it was probably also happening on i386
occasionally as well.  The effects were usually harmless, it would add
bogus "binary" search directories to the places it actually looked for
files.

22 years agoFinally fix loader completely for IA64. efifs_stat() wasn't setting
peter [Thu, 11 Apr 2002 09:50:11 +0000 (09:50 +0000)]
Finally fix loader completely for IA64.  efifs_stat() wasn't setting
the S_IFREG bit for regular files.  This caused the path search code to
skip it when it finally did find the kernel (after the common/module.c
buffer overrun bug was fixed)

22 years agoMFi386: revision 1.517.
kato [Thu, 11 Apr 2002 09:45:41 +0000 (09:45 +0000)]
MFi386: revision 1.517.

22 years agoMake kldxref work for Elf64 (which has 32 bit hash tables)
peter [Thu, 11 Apr 2002 09:30:15 +0000 (09:30 +0000)]
Make kldxref work for Elf64 (which has 32 bit hash tables)

22 years agoFix the I/O performance issues with the ciss driver where CAM was limiting
ps [Thu, 11 Apr 2002 09:28:09 +0000 (09:28 +0000)]
Fix the I/O performance issues with the ciss driver where CAM was limiting
the number of transactions the device could handle to 1.

Obtained from: msmith

22 years agoCode cleanup, no functional change.
pb [Thu, 11 Apr 2002 09:21:10 +0000 (09:21 +0000)]
Code cleanup, no functional change.
Patch adapted from PR.

PR: i386/36015
Submitted by: thomas@cuivre.fr.eu.org
MFC after: 1 week

22 years agoReally finish the removal of ${LDDESTDIR} in bsd.lib.mk,v 1.55.
ru [Thu, 11 Apr 2002 08:54:21 +0000 (08:54 +0000)]
Really finish the removal of ${LDDESTDIR} in bsd.lib.mk,v 1.55.
bsd.lib.mk,v 1.101 only did that partly.

22 years agoOnly calculate Promise magic if a device is there for info.
sos [Thu, 11 Apr 2002 08:52:32 +0000 (08:52 +0000)]
Only calculate Promise magic if a device is there for info.

22 years agoBack out /etc/rc.d addition. I'd like to see something come of what has
peter [Thu, 11 Apr 2002 08:48:52 +0000 (08:48 +0000)]
Back out /etc/rc.d addition.  I'd like to see something come of what has
already been imported.  It would have been nice to get it out there
in DP1, but that is too late now.

22 years agoIntegrate the hostap stuff that Thomas Skibo <skibo@packbell.net>
imp [Thu, 11 Apr 2002 07:21:16 +0000 (07:21 +0000)]
Integrate the hostap stuff that Thomas Skibo <skibo@packbell.net>
wrote.  This code was for 4.5-release, so I've ported it to -current
and made a few minor tweaks.  The biggest non-style tweak was to not
make access point the default.

More changes will be needed to get this actually working, but I wanted
to get a relatively pure baseline.  This doesn't seem to break what
works now.

22 years agoWhen binding to transports if getnetconfigent() fails then actually
alfred [Thu, 11 Apr 2002 07:19:30 +0000 (07:19 +0000)]
When binding to transports if getnetconfigent() fails then actually
print out the correct transport it failed on rather than always
spitting out 'udp', also call nc_sperror() to give a more verbose
error message detailing the problem.

22 years agoRemove bogus include of <machine/ansi.h>.
mike [Thu, 11 Apr 2002 06:53:40 +0000 (06:53 +0000)]
Remove bogus include of <machine/ansi.h>.

22 years agoNortel Networks sells a RealTek 8139-based NIC that's basically
wpaul [Thu, 11 Apr 2002 06:12:51 +0000 (06:12 +0000)]
Nortel Networks sells a RealTek 8139-based NIC that's basically
the same thing as the SMC 1211, but with their own vendor ID.
Update the device list to support this NIC. (Discovered these
cards lying around the lab at work.)

22 years agoUpdate to note my dropping the strong lock on this file.
imp [Thu, 11 Apr 2002 05:45:17 +0000 (05:45 +0000)]
Update to note my dropping the strong lock on this file.

Clarify what my last note about USERCONFIG really means and how to
know if it is fixed.

22 years agoAdd two more IEEE80211 defines for status.
imp [Thu, 11 Apr 2002 05:43:10 +0000 (05:43 +0000)]
Add two more IEEE80211 defines for status.

22 years agobetter init
imp [Thu, 11 Apr 2002 03:31:45 +0000 (03:31 +0000)]
better init

22 years agoinitialize local variable explicitly
suz [Thu, 11 Apr 2002 02:14:21 +0000 (02:14 +0000)]
initialize local variable explicitly
Reviewed by: ume
Obtained from: Fujitsu guys
MFC after: 1 week

22 years agoNote date of USERCONFIG's real death
imp [Thu, 11 Apr 2002 01:39:16 +0000 (01:39 +0000)]
Note date of USERCONFIG's real death

22 years ago<peril sensitive sunglasses on>
peter [Wed, 10 Apr 2002 22:42:27 +0000 (22:42 +0000)]
<peril sensitive sunglasses on>
Add /etc/rc.d to the startup dirs list.  It is a convenient place to put
custom startup scripts instead of hacking a shared rc.local.  eg: ftpd in
listener mode, or maybe even sendmail or another mailer, etc.
<peril sensitive sunglasses off>

22 years agoSince sshd expects /etc/ssh/ssh_host_rsa_key to exist, we had better
peter [Wed, 10 Apr 2002 22:30:54 +0000 (22:30 +0000)]
Since sshd expects /etc/ssh/ssh_host_rsa_key to exist, we had better
create it.  Also specify protocol v1/v2 in case people wonder why we
generate two RSA keys.

22 years agoRemove some ISN generation code which has been unused since the
silby [Wed, 10 Apr 2002 22:12:01 +0000 (22:12 +0000)]
Remove some ISN generation code which has been unused since the
syncache went in.

MFC after: 3 days

22 years agoOnly remove the '\n' at the end of a line if there is one.
dwmalone [Wed, 10 Apr 2002 22:01:37 +0000 (22:01 +0000)]
Only remove the '\n' at the end of a line if there is one.
I missed this as part of the fix to the PR below.

PR: 31265
Submitted by: Matthew D. Fuller <fullermd@over-yonder.net>
MFC after: 1 week

22 years agoMove do_cpuid into the correct place in this file and make
dwmalone [Wed, 10 Apr 2002 21:18:46 +0000 (21:18 +0000)]
Move do_cpuid into the correct place in this file and make
the indentation more like the other multi-line assembley in
this file.

Someone who understands gcc constraints could update the
constraints for do_cpuid.

22 years agoSwap a bzero for an M_ZERO. Borris approved this ages ago, but
dwmalone [Wed, 10 Apr 2002 21:08:33 +0000 (21:08 +0000)]
Swap a bzero for an M_ZERO. Borris approved this ages ago, but
the hard drive with the patch on it went south before I committed
it.

Approved by: bp

22 years agoscanf.3 has an obsolete ``this release''.
trhodes [Wed, 10 Apr 2002 20:52:49 +0000 (20:52 +0000)]
scanf.3 has an obsolete ``this release''.

PR: 35610
MFC after: 2 days

22 years ago o In osigreturn(), restore all of the registers in one place.
alc [Wed, 10 Apr 2002 20:08:07 +0000 (20:08 +0000)]
 o In osigreturn(), restore all of the registers in one place.
 o Recent changes to osigreturn() and sigreturn() have made them MPSAFE.  Add
   a comment to this effect.

Submitted by: bde (bullet #1)
Reviewed by: jhb (bullet #2)

22 years agoUpdate documentation relating to sysctls in a post-syncache
silby [Wed, 10 Apr 2002 19:52:21 +0000 (19:52 +0000)]
Update documentation relating to sysctls in a post-syncache
world.  Goodbye tcp.tcp_lq_overflow and tcp.strict_rfc1948,
hello tcp.syncookies.

MFC after: 3 days

22 years agoAdd IA32 option for emulation of i386 binaries on the ia64 platform.
dfr [Wed, 10 Apr 2002 19:35:50 +0000 (19:35 +0000)]
Add IA32 option for emulation of i386 binaries on the ia64 platform.

22 years agoInitial support for executing IA-32 binaries. This will not compile
dfr [Wed, 10 Apr 2002 19:34:51 +0000 (19:34 +0000)]
Initial support for executing IA-32 binaries. This will not compile
without a few patches for the rest of the kernel to allow the image
activator to override exec_copyout_strings and setregs.

None of the syscall argument translation has been done. Possibly, this
translation layer can be shared with any platform that wants to support
running ILP32 binaries on an LP64 host (e.g. sparc32 binaries?)

22 years agoTotally nuke IPPORT_USERRESERVED, it is no longer used anywhere, update
silby [Wed, 10 Apr 2002 19:30:58 +0000 (19:30 +0000)]
Totally nuke IPPORT_USERRESERVED, it is no longer used anywhere, update
remaining comments to reflect new ephemeral port range.

Reminded by: Maxim Konovalov <maxim@macomnet.ru>
MFC after: 3 days

22 years agoSave and restore the IA-32 state in cpu_switch(). Probably should only do
dfr [Wed, 10 Apr 2002 19:27:50 +0000 (19:27 +0000)]
Save and restore the IA-32 state in cpu_switch(). Probably should only do
this if the thread has been executing IA-32 code.

22 years agoAdd suhword() and fuhword() for accessing 32-bit values ("half words") in
dfr [Wed, 10 Apr 2002 19:26:49 +0000 (19:26 +0000)]
Add suhword() and fuhword() for accessing 32-bit values ("half words") in
userland. All these functions should be renamed to be explicit about the
size of value being read or written.

22 years agoAdd exception and syscall support for executing IA-32 binaries.
dfr [Wed, 10 Apr 2002 19:24:59 +0000 (19:24 +0000)]
Add exception and syscall support for executing IA-32 binaries.

22 years agoAdd ucode values for SIGFPE etc. Copied from i386/include/signal.h.
dfr [Wed, 10 Apr 2002 19:24:08 +0000 (19:24 +0000)]
Add ucode values for SIGFPE etc. Copied from i386/include/signal.h.

22 years agoAdd fields for saving/restoring the IA-32 state.
dfr [Wed, 10 Apr 2002 19:23:21 +0000 (19:23 +0000)]
Add fields for saving/restoring the IA-32 state.

22 years agoAdd definitions for IA-32 exceptions, interrupts and intercepts.
dfr [Wed, 10 Apr 2002 19:22:45 +0000 (19:22 +0000)]
Add definitions for IA-32 exceptions, interrupts and intercepts.

22 years agoMoved SHLIB_NAME definition into one place.
ru [Wed, 10 Apr 2002 18:07:05 +0000 (18:07 +0000)]
Moved SHLIB_NAME definition into one place.

Approved by: des

22 years agoFixed broken "make depend; make clean; make all" sequence.
ru [Wed, 10 Apr 2002 18:00:32 +0000 (18:00 +0000)]
Fixed broken "make depend; make clean; make all" sequence.

I've looked for this example for a long time, to demonstrate
some people why it's a really BAD idea to use ${.OBJDIR}
instead of ".".  I hope these people are reading this.  :-)

Approved by: des

22 years agoFix broken `checkdpadd'.
ru [Wed, 10 Apr 2002 17:53:43 +0000 (17:53 +0000)]
Fix broken `checkdpadd'.

-lroken is an installable library, there's no need to give an
explicit path to it.  In any case, -L paths should be specified
in LDFLAGS if needed.

Approved by: des

22 years agoDon't override standard _EXTRADEPEND actions, add to them.
ru [Wed, 10 Apr 2002 17:46:59 +0000 (17:46 +0000)]
Don't override standard _EXTRADEPEND actions, add to them.
Fix CLEANFILES.
Collapse openpam_static_modules.o generation.

22 years agoDon't suggest that the digi firmware modules are normally loaded
brian [Wed, 10 Apr 2002 17:27:52 +0000 (17:27 +0000)]
Don't suggest that the digi firmware modules are normally loaded
dynamically, as this will only happen if you kldload digi after the
machine has booted or explicitly mention them in loader.conf.

22 years agoDon't build manuals at inappropriate time.
ru [Wed, 10 Apr 2002 17:01:55 +0000 (17:01 +0000)]
Don't build manuals at inappropriate time.
Collapse generation of md[245].3 manpages.

22 years agofind.1 does not encourage users to DTRT when piping to xargs(1)
trhodes [Wed, 10 Apr 2002 16:39:22 +0000 (16:39 +0000)]
find.1 does not encourage users to DTRT when piping to xargs(1)

PR: 36602
Submitted by: Joshua Goodall <joshua@roughtrade.net>
No objections from: ru
MFC after: 2 days

22 years agoCall ast() from the syscall exit path as well as for full exception
dfr [Wed, 10 Apr 2002 16:35:44 +0000 (16:35 +0000)]
Call ast() from the syscall exit path as well as for full exception
restores.

22 years agoInitialise PCPU_GET(current_pmap) in pmap_bootstrap - cpu_switch needs
dfr [Wed, 10 Apr 2002 16:34:52 +0000 (16:34 +0000)]
Initialise PCPU_GET(current_pmap) in pmap_bootstrap - cpu_switch needs
to be sure that it is always correct and this was not true for the first
call to cpu_switch. When thread0 resumed later, it ended up calling
pmap_install with a null pmap, which is bad.

22 years agoRemove the hack for segsz_t from <sys/types.h>; use the normal
mike [Wed, 10 Apr 2002 15:58:13 +0000 (15:58 +0000)]
Remove the hack for segsz_t from <sys/types.h>; use the normal
_BSD_FOO_T_ method for defining segsz_t.

22 years agoAdd manifest constants: _LITTLE_ENDIAN, _BIG_ENDIAN, _PDP_ENDIAN, and
mike [Wed, 10 Apr 2002 14:39:14 +0000 (14:39 +0000)]
Add manifest constants: _LITTLE_ENDIAN, _BIG_ENDIAN, _PDP_ENDIAN, and
_BYTE_ORDER.  These are far more useful than their non-underscored
equivalents as these can be used in restricted namespace environments.
Mark the non-underscored variants as deprecated.

22 years agoYet another adjustment of digi_delay(). The delay is now consistent
brian [Wed, 10 Apr 2002 14:32:55 +0000 (14:32 +0000)]
Yet another adjustment of digi_delay().  The delay is now consistent
irrespective of whether tsleep() or DELAY() is used.

22 years agoo Fix an arguments number check in -n case.
maxim [Wed, 10 Apr 2002 13:38:09 +0000 (13:38 +0000)]
o Fix an arguments number check in -n case.
o Remove duplicated prio check, donice() makes it for us.

Spotted by: David Schultz <dschultz@uclink.Berkeley.EDU>
MFC after: 1 week

22 years agoPostpone I/O to the device until attach has finished. This fixes
n_hibma [Wed, 10 Apr 2002 13:22:12 +0000 (13:22 +0000)]
Postpone I/O to the device until attach has finished. This fixes
attachment after boot in some cases where the device gets confused if
spoken to over two different pipes simultaneously (resulting in TIMEOUT
errors on requesting INQUIRY data).

This solution is far from perfect, as after umass_attach has returned
the USB stack fetches the string descriptors in order for creating the
event that is sent to userland. It just makes the chances of collisions
less likely.

Tested by:  Tomas Pluskal <plusik@pohoda.cz>

22 years agoChange more uses of tsleep() to digi_delay() and make the loop counts more
brian [Wed, 10 Apr 2002 12:03:36 +0000 (12:03 +0000)]
Change more uses of tsleep() to digi_delay() and make the loop counts more
sane.

22 years agoUnconditionalize the definition of INET_ADDRSTRLEN and
mike [Wed, 10 Apr 2002 11:59:02 +0000 (11:59 +0000)]
Unconditionalize the definition of INET_ADDRSTRLEN and
INET6_ADDRSTRLEN.  Doing this helps expose bogus redefinitions in 3rd
party software.

22 years agoFix the FreeBSD native ATA RAID code a bit.
sos [Wed, 10 Apr 2002 11:18:07 +0000 (11:18 +0000)]
Fix the FreeBSD native ATA RAID code a bit.

22 years agoImplement POSIX -n option, cleanup an arguments parsing a bit.
maxim [Wed, 10 Apr 2002 11:09:46 +0000 (11:09 +0000)]
Implement POSIX -n option, cleanup an arguments parsing a bit.

PR: bin/34076, bin/35929
Reviewed by: bde
Obtained from: NetBSD
MFC after: 1 week

22 years agostyle(9) cleanup.
maxim [Wed, 10 Apr 2002 10:59:19 +0000 (10:59 +0000)]
style(9) cleanup.

Reviewed by: bde
MFC after: 1 week

22 years agoBe more strict about exposing BSD-specific functions when a standard
mike [Wed, 10 Apr 2002 10:51:53 +0000 (10:51 +0000)]
Be more strict about exposing BSD-specific functions when a standard
has been requested.

Unconditionalize the definition of INET_ADDRSTRLEN and
INET6_ADDRSTRLEN.  Doing this helps expose bogus redefinitions in 3rd
party software.