]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoPer letter dated July 22, 1999 remove 3rd clause of Berkeley derived software
imp [Sat, 7 Aug 2004 04:28:56 +0000 (04:28 +0000)]
Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived software
(with permission of addtional copyright holders where appropriate)

20 years agoPer letter dated July 22, 1999, delete clause 3 from code directly
imp [Sat, 7 Aug 2004 04:19:37 +0000 (04:19 +0000)]
Per letter dated July 22, 1999, delete clause 3 from code directly
from Berkeley.

20 years agoSince we upgraded compilers, and the kernel build to match, we can't build
imp [Sat, 7 Aug 2004 04:17:03 +0000 (04:17 +0000)]
Since we upgraded compilers, and the kernel build to match, we can't build
new kernels on older userlands.  Document this fact in the entry that talked
about the system upgrade.

20 years agoCreate an EFI partition when the user wants auto defaults. There's
marcel [Sat, 7 Aug 2004 04:03:18 +0000 (04:03 +0000)]
Create an EFI partition when the user wants auto defaults. There's
some confusion as to how large the EFI system partition should be,
but 100MB seems to be either the maximum, the minimum or the default
size, so make the EFI partition 100MB.

20 years agoAdd "make distfile" capabilities to bsdtar, including informational
kientzle [Sat, 7 Aug 2004 03:24:49 +0000 (03:24 +0000)]
Add "make distfile" capabilities to bsdtar, including informational
COPYING file and some conditional compilation cleanups.

20 years agolibarchive now has two complete build systems. The usual "Makefile"
kientzle [Sat, 7 Aug 2004 03:09:28 +0000 (03:09 +0000)]
libarchive now has two complete build systems.  The usual "Makefile"
is present for FreeBSD.  If you "make distfile" on FreeBSD, you will
soon have a tar.gz file suitable for deploying to other systems
(complete with the expected "configure" script, etc).  This latter
relies (at least for now) on the GNU auto??? tools.  (I like autoconf
okay, but someday I hope to write a custom Makefile.in and dispense
with automake, which is somewhat odious.)

As part of this, I've cleaned up some of the conditional
compilation options, added make-foo to construct archive.h dynamically
(it now contains some version constants), and added some useful
informational files.

20 years agoPass the pointy hat, please: Don't blow away the high-order
kientzle [Sat, 7 Aug 2004 02:50:05 +0000 (02:50 +0000)]
Pass the pointy hat, please:  Don't blow away the high-order
mode bits when setting permissions from ACL data.
Thanks to: David Gilbert for first reporting this and
    Jimmy Olgeni for noticing that it only occurred on
    ACL-enabled filesystems.

20 years agoBeef up the "cannot archive this" error message with the
kientzle [Sat, 7 Aug 2004 02:24:20 +0000 (02:24 +0000)]
Beef up the "cannot archive this" error message with the
actual mode that failed, to help track down a bug.

20 years agoo Save pointers to the chunks for root, home, swap, usr, var and tmp in
marcel [Sat, 7 Aug 2004 01:19:54 +0000 (01:19 +0000)]
o  Save pointers to the chunks for root, home, swap, usr, var and tmp in
   global variables. On ia64, save a pointer to the efi chunk as well.
o  At the same time, change checkLabels() to define these globals instead
   of having the caller of checkLabels() pass addresses to variables for
   these. Change the two callers correspondingly.
o  Spent a bit more time adjusting try_auto_label() to prepate for having
   the EFI partition created on ia64.
o  Remove efi_mountpoint(). The EFI chunk is now available without having
   to iterate over the disks and chunks to find it every time we need it.
o  On ia64, now that the root chunk is globally available, set the
   vfs.root.mountfrom tunable in loader.conf. This avoids that one cannot
   boot into FreeBSD after an install. The kernel cannot find the root
   device without a little help...

20 years agoPickup Giant in ath_rx_proc and when handling a beacon miss in order to
sam [Sat, 7 Aug 2004 00:45:05 +0000 (00:45 +0000)]
Pickup Giant in ath_rx_proc and when handling a beacon miss in order to
satisfy the assertion in if_start.

20 years agoAlways isync after a mtmsr. While perhaps not strictly necessary for PSL_EE
grehan [Sat, 7 Aug 2004 00:20:00 +0000 (00:20 +0000)]
Always isync after a mtmsr. While perhaps not strictly necessary for PSL_EE
bit banging according to the OEA, it's better to be conservative than
having to continually audit uses of this inline.

20 years agoAs SLIP directly accesses the tty code from its if_start() routine,
rwatson [Fri, 6 Aug 2004 22:41:13 +0000 (22:41 +0000)]
As SLIP directly accesses the tty code from its if_start() routine,
mark if_sl as IFF_NEEDSGIANT.

20 years agoUse the new prototype for the zone constructor.
cognet [Fri, 6 Aug 2004 22:32:53 +0000 (22:32 +0000)]
Use the new prototype for the zone constructor.

20 years agoFlag a broad range of VFS operations as GIANT_REQUIRED in order to
rwatson [Fri, 6 Aug 2004 22:25:35 +0000 (22:25 +0000)]
Flag a broad range of VFS operations as GIANT_REQUIRED in order to
catch leaking into VFS without Giant.

Inch Giant a little lower in several file descriptor operations on
vnodes to cover only VFS operations that need it, rather than file
flag reading, etc.

20 years agoFix a panic in ata_generic_transaction(). The DMA pointer of the channel
njl [Fri, 6 Aug 2004 22:23:53 +0000 (22:23 +0000)]
Fix a panic in ata_generic_transaction().  The DMA pointer of the channel
was being unconditionally dereferenced but was NULL for PIO requests.
Check the request flags for a DMA transaction before dereferencing.

Reported by: ceri
Tested by: Radek Kozlowski <radek -at- raadradd.com>

20 years agoIn thread_exit(), include more information about the thread/process
rwatson [Fri, 6 Aug 2004 22:06:14 +0000 (22:06 +0000)]
In thread_exit(), include more information about the thread/process
context in the KTR trace record.  In particular, include the same
information as passed for mi_switch() and fork_exit() KTR trace
records.

20 years agoPush UIDINFO_UNLOCK() slightly earlier in chgsbize(), as it's not
rwatson [Fri, 6 Aug 2004 22:04:33 +0000 (22:04 +0000)]
Push UIDINFO_UNLOCK() slightly earlier in chgsbize(), as it's not
needed if we print the local variable version of the limit rather
than the shared version.

20 years agoAvoid acquiring Giant for some common light-weight or already MPSAFE
rwatson [Fri, 6 Aug 2004 22:00:55 +0000 (22:00 +0000)]
Avoid acquiring Giant for some common light-weight or already MPSAFE
fcntl() operations, including:

  F_DUPFD          dup() alias
  F_GETFD          retrieve close-on-exec flag
  F_SETFD          set close-on-exec flag
  F_GETFL          retrieve file descriptor flags

For the remaining fcntl() operations, do acquire Giant, especially
where we call into fo_ioctl() as a result.  We're not yet ready to
push Giant into fo_ioctl().  Once we do, this can all become quite a
bit prettier.

20 years agoGenerate KTR trace records for syscall enter and exit in i386 system
rwatson [Fri, 6 Aug 2004 21:56:26 +0000 (21:56 +0000)]
Generate KTR trace records for syscall enter and exit in i386 system
calls.  Note that the information included is a bit different from the
existing KTR traces generated on powerpc, as I'm primarily interested
in kernel context (thread, syscall #, proc, etc), not the user
arguments to the system call.  Some convergence would be useful here.

20 years agoGenerate KTR trace records for uma_zalloc_arg() and uma_zfree_arg().
rwatson [Fri, 6 Aug 2004 21:52:38 +0000 (21:52 +0000)]
Generate KTR trace records for uma_zalloc_arg() and uma_zfree_arg().
This doesn't trace every event of interest in UMA, but provides
enough basic information to explain lock traces and sleep patterns.

20 years agoCut a KTR record whenever a callout is invoked. Mark whether it runs
rwatson [Fri, 6 Aug 2004 21:49:00 +0000 (21:49 +0000)]
Cut a KTR record whenever a callout is invoked.  Mark whether it runs
with Giant or not, and include the function point so it can be looked
up against the kernel symbol table during trace analysis.

20 years agoAssign KTR flag constants for UMA events and callouts.
rwatson [Fri, 6 Aug 2004 21:46:51 +0000 (21:46 +0000)]
Assign KTR flag constants for UMA events and callouts.

20 years agoWhile we're revisiting old sins, try to clean up the code a little and
des [Fri, 6 Aug 2004 21:35:51 +0000 (21:35 +0000)]
While we're revisiting old sins, try to clean up the code a little and
make it more style(9)ish.

20 years agoMove the source code for these two modules out of src/sys/modules.
des [Fri, 6 Aug 2004 20:37:08 +0000 (20:37 +0000)]
Move the source code for these two modules out of src/sys/modules.

20 years agoI've had 'make release' problems on a large/fast dual processor machine
kensmith [Fri, 6 Aug 2004 20:08:38 +0000 (20:08 +0000)]
I've had 'make release' problems on a large/fast dual processor machine
with doFS.sh consistently dying here because the device didn't exist
in the namespace fast enough after doing the mdconfig.  But the device
did eventually show up.  There have been similar complaints on mailing
lists that might boil down to this being the problem too.

This is obviously a hack, if anyone knows what might cause a delay
between mdconfig running and when the name appears in the /dev namespace
(inside a chroot-ed environment if that matters) I'd be happy to back
this out.

20 years agoNow that make(1) passes variables that were given on the command line
marcel [Fri, 6 Aug 2004 17:07:40 +0000 (17:07 +0000)]
Now that make(1) passes variables that were given on the command line
to subordinate make(1) invocations through MAKEFLAGS, we cannot add
CFLAGS onto the make(1) command line. This will conflict with the
individual makefiles wanting to append to it, which is not respected
when CFLAGS is given on the command line. Hence build breakage.
So, put CFLAGS in the environment instead.

20 years agoFix an off-by-one bug that caused the first character of the buffer to
tjr [Fri, 6 Aug 2004 17:00:09 +0000 (17:00 +0000)]
Fix an off-by-one bug that caused the first character of the buffer to
be uninitialized.

20 years agoDamn, fix the SEE ALSO section.
trhodes [Fri, 6 Aug 2004 16:08:43 +0000 (16:08 +0000)]
Damn, fix the SEE ALSO section.

20 years agoAdd a manual page for the hfa driver.
trhodes [Fri, 6 Aug 2004 16:06:52 +0000 (16:06 +0000)]
Add a manual page for the hfa driver.

Reviewed by: harti

20 years agoDo not use hardware flow control for the moment. There are some issues
marcel [Fri, 6 Aug 2004 15:51:31 +0000 (15:51 +0000)]
Do not use hardware flow control for the moment. There are some issues
with it that need to be understood better before they can be resolved.
This takes time and time is already in short supply.

Reported & tested by: glebius@

20 years agoDon't scare users with a warning about preemption being off when it isn't
jhb [Fri, 6 Aug 2004 15:49:44 +0000 (15:49 +0000)]
Don't scare users with a warning about preemption being off when it isn't
yet safe to have on by default.

20 years agoBump the document date, since the content changed today.
roam [Fri, 6 Aug 2004 15:29:54 +0000 (15:29 +0000)]
Bump the document date, since the content changed today.

Discussed with: ru

20 years agoremove /boot/kernel from the default path.. There is already code that
jmg [Fri, 6 Aug 2004 15:06:06 +0000 (15:06 +0000)]
remove /boot/kernel from the default path..  There is already code that
will prepend the current kernel booting...  This prevents a problem of
loading /boot/kernel's modules when a different kernel has no modules,
but you left your module_load="YES" in loader.conf...

Reviewed by: dcs (minus the help part)

20 years agoFix a case of _SC_CLK_TCK being misspelled as _SC_CLOCK_TCK.
roam [Fri, 6 Aug 2004 14:49:11 +0000 (14:49 +0000)]
Fix a case of _SC_CLK_TCK being misspelled as _SC_CLOCK_TCK.

PR: 69428
Submitted by: Sascha Schneider <suntsu@suntsu.org>
MFC after: 2 weeks

20 years agoAdd the right CFLAGS to show that we have err.h, getaddrinfo and strlcpy.
harti [Fri, 6 Aug 2004 13:43:29 +0000 (13:43 +0000)]
Add the right CFLAGS to show that we have err.h, getaddrinfo and strlcpy.
Add support.c to the list of source files.

20 years agoList some more files to be excluded from the original distribution.
harti [Fri, 6 Aug 2004 13:41:55 +0000 (13:41 +0000)]
List some more files to be excluded from the original distribution.

20 years agoThis commit was generated by cvs2svn to compensate for changes in r133211,
harti [Fri, 6 Aug 2004 13:38:30 +0000 (13:38 +0000)]
This commit was generated by cvs2svn to compensate for changes in r133211,
which included commits to RCS files with non-trunk default branches.

20 years agoVirgin import of bsnmpd 1.7
harti [Fri, 6 Aug 2004 13:38:30 +0000 (13:38 +0000)]
Virgin import of bsnmpd 1.7

20 years agoSpell FTP correctly - in this case, it is used as the name of the protocol,
roam [Fri, 6 Aug 2004 12:56:39 +0000 (12:56 +0000)]
Spell FTP correctly - in this case, it is used as the name of the protocol,
not the program.  Also, bump the document date.

Reminded by: our resident mdoc guard (ru)

20 years agoCross-reference getnameinfo(3), getaddrinfo(3), getipnodebyname(3) and
roam [Fri, 6 Aug 2004 12:02:07 +0000 (12:02 +0000)]
Cross-reference getnameinfo(3), getaddrinfo(3), getipnodebyname(3) and
getipnodebyaddr(3).

PR: 54229
Submitted by: Samuel Tardieu <sam@inf.enst.fr>
MFC after: 2 weeks

20 years agoForced commit to note that the previous fix was actually from:
roam [Fri, 6 Aug 2004 11:39:35 +0000 (11:39 +0000)]
Forced commit to note that the previous fix was actually from:

PR: 68449

20 years agoFix a printf("%b", ..) example.
roam [Fri, 6 Aug 2004 11:24:37 +0000 (11:24 +0000)]
Fix a printf("%b", ..) example.

PR: 68849
Submitted by: Michel Lavondes <fox@vader.aacc.cc.md.us>
MFC after: 1 week

20 years agoAdd Giorgos's description of the ftp-chroot login.conf option.
roam [Fri, 6 Aug 2004 10:43:24 +0000 (10:43 +0000)]
Add Giorgos's description of the ftp-chroot login.conf option.

Reported by: Bill Moran <wmoran@potentialtech.com>
Submitted by: keramida
MFC after: 2 weeks

20 years agoAdd and document kern.geom.stripe.fast_failed sysctl, which shows how
pjd [Fri, 6 Aug 2004 10:19:34 +0000 (10:19 +0000)]
Add and document kern.geom.stripe.fast_failed sysctl, which shows how
many times "fast" mode failed.

20 years agoFields bio_caller[12] should be used by the consumer and fields
pjd [Fri, 6 Aug 2004 10:07:03 +0000 (10:07 +0000)]
Fields bio_caller[12] should be used by the consumer and fields
bio_driver[12] should be used by the provider!

20 years agoBump the document date.
ru [Fri, 6 Aug 2004 10:05:45 +0000 (10:05 +0000)]
Bump the document date.

20 years agoClean up after mechanical renumbering.
ru [Fri, 6 Aug 2004 10:04:06 +0000 (10:04 +0000)]
Clean up after mechanical renumbering.

20 years agoFix I/O leakage. We're cloning bios in g_stripe_start_fast(), but when
pjd [Fri, 6 Aug 2004 09:55:40 +0000 (09:55 +0000)]
Fix I/O leakage. We're cloning bios in g_stripe_start_fast(), but when
something goes wrong while running in "fast" mode, we free all bios and
falling back to "economic" mode. Freeing bios, doesn't mean decrease
bio_children, so bio_inbed couldn't be equal to bio_children and request
was never finished.
Decrease bio_children manually when destroying bios.

Reported by: Sam Lawrance <boris@brooknet.com.au>, simon

20 years agoDo not attempt to clean up data that has not been initialized yet.
roam [Fri, 6 Aug 2004 09:08:33 +0000 (09:08 +0000)]
Do not attempt to clean up data that has not been initialized yet.
This fixes two kernel panics on boot when the xl driver fails to
allocate bus/port/memory resources.

Reviewed by: silence on -net

20 years agoCrypto is now part of the "base" distribution, and the old "release.3"
cperciva [Fri, 6 Aug 2004 08:49:51 +0000 (08:49 +0000)]
Crypto is now part of the "base" distribution, and the old "release.3"
target no longer exists.  Renumber the old release.[4-9] targets to
release.[3-8].

Reminded by: ru

20 years agoCrypto is now part of the base distribution. Remove crypto-install.sh,
cperciva [Fri, 6 Aug 2004 08:42:05 +0000 (08:42 +0000)]
Crypto is now part of the base distribution.  Remove crypto-install.sh,
and add scrypto, skrb5, ssecure into src-install.sh

Reminded by: ru

20 years agoHook up the Hardware Notes to the build again, now that the doc build
simon [Fri, 6 Aug 2004 08:41:22 +0000 (08:41 +0000)]
Hook up the Hardware Notes to the build again, now that the doc build
script has been updated.

20 years agoJoin the 21st century: Cryptography is no longer an optional component
cperciva [Fri, 6 Aug 2004 07:27:08 +0000 (07:27 +0000)]
Join the 21st century: Cryptography is no longer an optional component
of releases.  The -DNOCRYPT build option still exists for anyone who
really wants to build non-cryptographic binaries, but the "crypto"
release distribution is now part of "base", and anyone installing from a
release will get cryptographic binaries.

Approved by: re (scottl), markm
Discussed on: freebsd-current, in late April 2004

20 years agoMFi386: Fix mem device. Grrr.
markm [Fri, 6 Aug 2004 07:22:36 +0000 (07:22 +0000)]
MFi386: Fix mem device. Grrr.

20 years agoMFi386: sort out the mem device. Grrrr.
markm [Fri, 6 Aug 2004 07:20:32 +0000 (07:20 +0000)]
MFi386: sort out the mem device. Grrrr.

20 years agoRefine updates to PCI irq routing. Check _STA and _CRS but only print a
njl [Fri, 6 Aug 2004 04:50:56 +0000 (04:50 +0000)]
Refine updates to PCI irq routing.  Check _STA and _CRS but only print a
message if they are incorrect.  Also, remove the hack of allowing the
initial irq setting to not be in _PRS.  As before, the old behavior can be
regained by defining ACPI_OLD_PCI_LINK.

20 years agoPass pcbinfo structures to in6_pcbnotify() rather than pcbhead
rwatson [Fri, 6 Aug 2004 03:45:45 +0000 (03:45 +0000)]
Pass pcbinfo structures to in6_pcbnotify() rather than pcbhead
structures, allowing in6_pcbnotify() to lock the pcbinfo and each
inpcb that it notifies of ICMPv6 events.  This prevents inpcb
assertions from firing when IPv6 generates and delievers event
notifications for inpcbs.

Reported by: kuriyama
Tested by: kuriyama

20 years agoIn ithread_schedule(), when we plan to go harvest some entropy as
rwatson [Fri, 6 Aug 2004 03:39:28 +0000 (03:39 +0000)]
In ithread_schedule(), when we plan to go harvest some entropy as
a result of scheduling an ithread, cut a KTR_INTR trace record so
that it's clear in tracing interrupt activity where and when the
entropy harvesting code is invoked.

20 years agoWhen reseting a pending callout, perform the deregistration in
cperciva [Fri, 6 Aug 2004 02:44:58 +0000 (02:44 +0000)]
When reseting a pending callout, perform the deregistration in
callout_reset rather than calling callout_stop.  This results in a few
lines of code duplication, but it provides a significant performance
improvement because it avoids recursing on callout_lock.

Requested by: rwatson

20 years agoWhen iterating the UDP inpcb list processing an inbound broadcast
rwatson [Fri, 6 Aug 2004 02:08:31 +0000 (02:08 +0000)]
When iterating the UDP inpcb list processing an inbound broadcast
or multicast packet, we don't need to acquire the inpcb mutex
unless we are actually using inpcb fields other than the bound port
and address.  Since we hold the pcbinfo lock already, these can't
change.  Defer acquiring the inpcb mutex until we have a high
chance of a match.  This avoids about 120 mutex operations per UDP
broadcast packet received on one of my work systems.

Reviewed by: sam

20 years agoAdd flags for _STA (status) methods and convenience macros for checking
njl [Fri, 6 Aug 2004 00:38:50 +0000 (00:38 +0000)]
Add flags for _STA (status) methods and convenience macros for checking
the presence of batteries and devices.

20 years agoNow that we have gcc 3.4, we can flip ia64 to using a dynamically linked
gordon [Fri, 6 Aug 2004 00:07:26 +0000 (00:07 +0000)]
Now that we have gcc 3.4, we can flip ia64 to using a dynamically linked
/bin and /sbin.

Reviewed by: marcel (via pluto1)

20 years agoJust because we have a serial console attached does not mean we don't
des [Thu, 5 Aug 2004 23:54:04 +0000 (23:54 +0000)]
Just because we have a serial console attached does not mean we don't
want a splash screen.

There seems to be some confusion in the syscons code as to the meaning of
the SC_KERNEL_CONSOLE flag.  Its absence is sometimes interpreted to mean
"I am not the system console", and sometimes to mean "I am not the only
VGA console" (see the font loading code for an example of the latter).
Someone with better syscons fu than myself should take a closer look.

20 years agoTurn on the new contigmalloc(9) by default. There should not actually
green [Thu, 5 Aug 2004 21:54:11 +0000 (21:54 +0000)]
Turn on the new contigmalloc(9) by default.  There should not actually
be a reason to use the old contigmalloc(9), but if desired, it the
vm.old_contigmalloc setting can be tuned/sysctld back to 0 for now.

20 years agoTry to narrow down the race window on HW that does not have ways to
sos [Thu, 5 Aug 2004 21:13:41 +0000 (21:13 +0000)]
Try to narrow down the race window on HW that does not have ways to
poll for which channel actually pulled the irq line.

20 years agoAdd firmware revision to probe printf.
sos [Thu, 5 Aug 2004 21:11:33 +0000 (21:11 +0000)]
Add firmware revision to probe printf.

20 years agoFix spelling.
pjd [Thu, 5 Aug 2004 21:01:27 +0000 (21:01 +0000)]
Fix spelling.

Pointed out by: mux, ru

20 years agoUse in_cksum_skip() to calculate in4_cksum instead of doing handrolled magic
mlaier [Thu, 5 Aug 2004 20:41:38 +0000 (20:41 +0000)]
Use in_cksum_skip() to calculate in4_cksum instead of doing handrolled magic
(that does not compile with !gcc). Moreover we get the benefit for all archs
that have a hand optimized in_cksum_skip().

Submitted by: yongari
Tested by: me (i386, extensivly), pf4freebsd ML (various)

20 years agoDo not check val-tags if the repository is read-only.
des [Thu, 5 Aug 2004 17:47:35 +0000 (17:47 +0000)]
Do not check val-tags if the repository is read-only.

Approved by: maintainer's silence
MFC after: 2 weeks

20 years agoDon't use type unknown for partitions that we don't care about because
marcel [Thu, 5 Aug 2004 17:44:07 +0000 (17:44 +0000)]
Don't use type unknown for partitions that we don't care about because
the chunk will never be added to the list in that case. Use type mbr
for GPT nested MBRs and use type part for any partition we don't know
or care about. Since the subtype is 0, this should not cause confusion.

20 years ago- One can use both BD_ADDR or name to specify address of the Bluetooth device.
emax [Thu, 5 Aug 2004 16:32:41 +0000 (16:32 +0000)]
- One can use both BD_ADDR or name to specify address of the Bluetooth device.
  Update man pages to document this fact.

- Update usage messages

- Change u_intXXX to uintXXX

20 years agoFix the code in rman that merges adjacent unallocated resources to use a
jhb [Thu, 5 Aug 2004 15:48:18 +0000 (15:48 +0000)]
Fix the code in rman that merges adjacent unallocated resources to use a
better check for 'adjacent'.  The old code assumed that if two resources
were adjacent in the linked list that they were also adjacent range wise.
This is not true when a resource manager has to manage disparate regions.
For example, the current interrupt code on i386/amd64 will instruct
irq_rman to manage two disjoint regions: 0-1 and 3-15 for the non-APIC
case.  If IRQs 1 and 3 were allocated and then released, the old code
would coalesce across the 1 to 3 boundary because the resources were
adjacent in the linked list thus adding 2 to the area of resources that
irq_rman managed as a side effect.  The fix adds extra checks so that
adjacent unallocated resources are only merged with the resource being
freed if the start and end values of the resources also match up.  The
patch also consolidates the checks for adjacent resources being allocated.

20 years agoAdd 'i' to the getopt string.
imp [Thu, 5 Aug 2004 15:44:26 +0000 (15:44 +0000)]
Add 'i' to the getopt string.

Noticed by: jhein

20 years agoBe a bit nicer for those who want to work on my code.
pjd [Thu, 5 Aug 2004 15:07:16 +0000 (15:07 +0000)]
Be a bit nicer for those who want to work on my code.

Dedicated to: mux, bosko

20 years agoOnly use rfs and wfs if ARM_HARD_FLOAT is defined, and use stubs if it is not,
cognet [Thu, 5 Aug 2004 14:07:24 +0000 (14:07 +0000)]
Only use rfs and wfs if ARM_HARD_FLOAT is defined, and use stubs if it is not,
in order to unbreak arm make world. The right way to do it with soft floats
will be figured out later.
Discussed with: das

20 years agoDon't use 'bp' after its destruction!
pjd [Thu, 5 Aug 2004 14:07:21 +0000 (14:07 +0000)]
Don't use 'bp' after its destruction!

20 years agoAdd myself as a maintainer of geom_mirror.
pjd [Thu, 5 Aug 2004 13:51:56 +0000 (13:51 +0000)]
Add myself as a maintainer of geom_mirror.

20 years agoIncrease the suggested minimum free space for release-building. It
cperciva [Thu, 5 Aug 2004 13:35:43 +0000 (13:35 +0000)]
Increase the suggested minimum free space for release-building.  It
needed slightly over 3GB when I built one yesterday.

20 years agoSimplify a bit - we could use 'sc' here as it was initialized properly.
pjd [Thu, 5 Aug 2004 13:22:17 +0000 (13:22 +0000)]
Simplify a bit - we could use 'sc' here as it was initialized properly.

20 years agoMFi386: revision 1.597.
nyan [Thu, 5 Aug 2004 13:01:29 +0000 (13:01 +0000)]
MFi386: revision 1.597.

20 years agoMFi386: revision 1.502.
nyan [Thu, 5 Aug 2004 13:00:11 +0000 (13:00 +0000)]
MFi386: revision 1.502.

20 years agoMFi386: revision 1.410.
nyan [Thu, 5 Aug 2004 12:58:52 +0000 (12:58 +0000)]
MFi386: revision 1.410.

20 years agoIn pmap_page_protect, clear the vm page's PG_WRITEABLE flag if
grehan [Thu, 5 Aug 2004 12:44:12 +0000 (12:44 +0000)]
In pmap_page_protect, clear the vm page's PG_WRITEABLE flag if
downgrading to read-only. Found by triggering the KASSERT in
vm_pageout_flush().

20 years agoBack out something I'm working on that crept in with the last commit.
harti [Thu, 5 Aug 2004 09:11:44 +0000 (09:11 +0000)]
Back out something I'm working on that crept in with the last commit.

Spotted by: ru

20 years agoRemove extra spaces. Remove double quotes around error messages -
harti [Thu, 5 Aug 2004 08:44:00 +0000 (08:44 +0000)]
Remove extra spaces. Remove double quotes around error messages -
they are not needed and will actually be printed.

Submitted by: ru

20 years agoSet ip_v field properly.
sobomax [Thu, 5 Aug 2004 08:12:46 +0000 (08:12 +0000)]
Set ip_v field properly.

PR: kern/69957

20 years agoThis file is not suppose be be all one big comment :-(
dfr [Thu, 5 Aug 2004 08:07:40 +0000 (08:07 +0000)]
This file is not suppose be be all one big comment :-(

Pointed out by: ssouhlal

20 years agoAdd another test that checks for a working '+' command flag.
harti [Thu, 5 Aug 2004 07:24:06 +0000 (07:24 +0000)]
Add another test that checks for a working '+' command flag.

20 years agoNow that mem(4) is a kernel module, we need to add a dependency on
mux [Thu, 5 Aug 2004 07:20:24 +0000 (07:20 +0000)]
Now that mem(4) is a kernel module, we need to add a dependency on
it in drm(4) for mem_range_attr_set().  This fixes loading a DRM
driver as a module.

Reviewed by: anholt

20 years agoFinish the PRISON_ROOT -> SUSER_ALLOWJAIL renaming by removing
cperciva [Thu, 5 Aug 2004 07:15:35 +0000 (07:15 +0000)]
Finish the PRISON_ROOT -> SUSER_ALLOWJAIL renaming by removing
the definition of the old name.

20 years agoRemove a product specific workaround for wrong modes when mmap(2)'ing
phk [Thu, 5 Aug 2004 07:04:33 +0000 (07:04 +0000)]
Remove a product specific workaround for wrong modes when mmap(2)'ing
devices.  They have had plenty of time to adjust now.

20 years agoWork around non-compliant BIOS PCI link devices. Some systems have the
njl [Thu, 5 Aug 2004 06:54:16 +0000 (06:54 +0000)]
Work around non-compliant BIOS PCI link devices.  Some systems have the
following behavior:

* Link devices return invalid status (_STA) values.  The results are very
  unreliable -- sometimes never present.  Just ignore the status and pick
  the best configuration from _PRS.

* Link devices return invalid current settings (_CRS).  Even after setting
  the link value, many systems still return a different setting for _CRS.
  When setting an IRQ, don't bother to check _CRS to see if we succeeded.
  Note that we still check _CRS before routing and this should be addressed
  as well.

Since this is a sensitive area, leave the old behavior accessible via
uncommenting the define for ACPI_OLD_PCI_LINK at the top of the file.  Once
this has been thoroughly tested, this option and the code it covers will
be removed.

Thanks to Len Brown at Intel for informing us of these issues as he worked
around them in Linux.

20 years agoRemove the attempt to cache the previous page mapped at our identity
njl [Thu, 5 Aug 2004 06:29:12 +0000 (06:29 +0000)]
Remove the attempt to cache the previous page mapped at our identity
location (for the wake code).  It should not be needed since we don't
map other pages at the same location and if there was an old mapping, it
would be restored by a fault.  The old code had serious problems, namely
that it was restoring the new page it had just removed (not opage) and
it could only guess at the right protection (since there's no
pmap_extract_protect function).  Thanks to Alan Cox for explaining much
of this to me.

Also, remove a commented-out initializecpu() call since it is not needed.
Restoring the cpu context is better than attempting to init from scratch.

Reviewed by: alc (earlier version)

20 years agoMove boot2 BSS zeroing into btx startup code out of boot1. boot1 does not
kan [Thu, 5 Aug 2004 06:00:05 +0000 (06:00 +0000)]
Move boot2 BSS zeroing into btx startup code out of boot1. boot1 does not
have clear idea on boot2 BSS size and leaves portion of it not zeroed out.
btxcsu.s is in much better position for this job.

Obtained from: DragonflyBSD (with minor adjustments)

20 years agoForced commit to acknowledge that
kientzle [Thu, 5 Aug 2004 05:48:12 +0000 (05:48 +0000)]
Forced commit to acknowledge that
the previous fix was due to: Stefan Farfeleder

20 years agoEnsure that there's always a space between the user name and
kientzle [Thu, 5 Aug 2004 05:46:22 +0000 (05:46 +0000)]
Ensure that there's always a space between the user name and
group name in -tv output format.

20 years agoFix the startup logic for sendmail. If sendmail_enable=yes, don't start
gshapiro [Thu, 5 Aug 2004 03:09:54 +0000 (03:09 +0000)]
Fix the startup logic for sendmail.  If sendmail_enable=yes, don't start
the submit and outbound daemon, else if sendmail_submit_enable=yes, don't
start the outbound daemon.  Only one daemon should be started.

Also, do not rebuild database maps at boot time.  The code didn't pay
attention to SENDMAIL_MAP_TYPE and assumed 'hash'.  Also, admins may
not want maps automatically rebuilt just because the back end database
has changed.  Finally, some maps are built with mode tools than just
makemap (e.g., using cidrexpand on the access text file before sending
it to makemap).

Noticed by: ache
Reviewed by: ache

20 years agoImplement TCP/UDP Transmit/Receive checksum offload.
yongari [Thu, 5 Aug 2004 02:52:33 +0000 (02:52 +0000)]
Implement TCP/UDP Transmit/Receive checksum offload.
Since HME doesn't compensate the checksum for UDP datagram which
can yield to 0x0, UDP transmit checksum offload is disabled by
default. The UDP Transmit checksum offload can be reactivated
by setting special link option link0 with ifconfig(8).

Approved by: jake (mentor)
Reviewed by: tmm
Tested by: Herve Boulouis <amon@sockar.homeip.net>

20 years agoDo a lockless read of the BPF interface structure descriptor list head
rwatson [Thu, 5 Aug 2004 02:37:36 +0000 (02:37 +0000)]
Do a lockless read of the BPF interface structure descriptor list head
before grabbing BPF locks to see if there are any entries in order to
avoid the cost of locking if there aren't any.  Avoids a mutex lock/
unlock for each packet received if there are no BPF listeners.

20 years agoReplace s_isnan.c and s_isnanf.c with the more compact s_isnan.c from
das [Thu, 5 Aug 2004 01:46:11 +0000 (01:46 +0000)]
Replace s_isnan.c and s_isnanf.c with the more compact s_isnan.c from
libc.  The externally-visible effect of this is to add __isnanl() to
libm, which means that libm.so.2 can once again link against libc.so.4
when LD_BIND_NOW is set.  This was broken by the addition of fdiml(),
which calls __isnanl().