]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoAdd a -0 option for interoperability with xargs -0.
des [Wed, 7 Dec 2005 12:22:46 +0000 (12:22 +0000)]
Add a -0 option for interoperability with xargs -0.

PR: bin/56558
Submitted by: Eugene Grosbein <eugen@grosbein.pp.ru>
MFC after: 2 weeks

18 years agoAdd -r option for GNU compatibility.
des [Wed, 7 Dec 2005 12:20:08 +0000 (12:20 +0000)]
Add -r option for GNU compatibility.

MFC after: 2 weeks

18 years agoUse __DEVOLATILE to cast conspeed.
imp [Wed, 7 Dec 2005 07:23:53 +0000 (07:23 +0000)]
Use __DEVOLATILE to cast conspeed.

18 years agostyle(9) nits
obrien [Wed, 7 Dec 2005 03:41:12 +0000 (03:41 +0000)]
style(9) nits

18 years agoAdd Sparc TLS relocation definitions.
obrien [Wed, 7 Dec 2005 03:39:37 +0000 (03:39 +0000)]
Add Sparc TLS relocation definitions.

18 years agoChanges imported from XFS for FreeBSD project:
rodrigc [Wed, 7 Dec 2005 03:39:08 +0000 (03:39 +0000)]
Changes imported from XFS for FreeBSD project:
- add fields to struct buf (needed by XFS)
    - 3 private fields: b_fsprivate1, b_fsprivate2, b_fsprivate3
    - b_pin_count, count of pinned buffer

- add new B_MANAGED flag
- add breada() function to initiate asynchronous I/O on read-ahead blocks.
- add bufdone_finish(), bpin(), bunpin_wait() functions

Patches provided by: kan
Reviewed by: phk
Silence on: arch@

18 years ago- The geom(8) utility only uses three types of arguments: string (char *),
pjd [Wed, 7 Dec 2005 01:38:27 +0000 (01:38 +0000)]
- The geom(8) utility only uses three types of arguments: string (char *),
  value (intmax_t) and boolean (int).
  Based on that provide three functions:
        - gctl_get_ascii()
        - gctl_get_int()
        - gctl_get_intmax()
- Hide gctl_get_param() function, as it is only used internally in
  subr.c.
- Allow to provide argument name as (fmt, ...).
- Assert geom(8) bugs (missing argument is a geom(8) bug).

- Clean-up and simplify the code by using new functions and assumtions
  (no more checking for missing argument).

Tested by: regression tests

18 years agoConvert gstripe(8) regression tests to the new framework.
pjd [Wed, 7 Dec 2005 01:30:44 +0000 (01:30 +0000)]
Convert gstripe(8) regression tests to the new framework.

18 years agoConvert gshsec(8) regression tests to the new framework.
pjd [Wed, 7 Dec 2005 01:29:50 +0000 (01:29 +0000)]
Convert gshsec(8) regression tests to the new framework.

18 years agoConvert graid3(8) regression tests to the new framework.
pjd [Wed, 7 Dec 2005 01:28:59 +0000 (01:28 +0000)]
Convert graid3(8) regression tests to the new framework.

18 years ago- Make use of geom_subr.sh to improve regression tests.
pjd [Wed, 7 Dec 2005 01:27:23 +0000 (01:27 +0000)]
- Make use of geom_subr.sh to improve regression tests.
- Keep class-specific data in conf.sh file.

18 years agoFinish conversion of gconcat(8) regression tests to the new framework.
pjd [Wed, 7 Dec 2005 01:24:25 +0000 (01:24 +0000)]
Finish conversion of gconcat(8) regression tests to the new framework.

18 years agoAdd file with helper functions for geom tools regression tests.
pjd [Wed, 7 Dec 2005 01:20:18 +0000 (01:20 +0000)]
Add file with helper functions for geom tools regression tests.

18 years agoConvert gnop(8) regression tests to the new framework.
pjd [Wed, 7 Dec 2005 00:37:14 +0000 (00:37 +0000)]
Convert gnop(8) regression tests to the new framework.

18 years agoConvert gmirror(8) regression tests to the new framework.
pjd [Wed, 7 Dec 2005 00:34:27 +0000 (00:34 +0000)]
Convert gmirror(8) regression tests to the new framework.

18 years agoBack out my sh -> ${SHELL} change, since it will be a few days before
imp [Tue, 6 Dec 2005 23:37:11 +0000 (23:37 +0000)]
Back out my sh -> ${SHELL} change, since it will be a few days before
I can fix it better.

Requested by: ru@

18 years agoCatch up to the system siginfo changes. Use a union for the ia32 layout
peter [Tue, 6 Dec 2005 23:06:29 +0000 (23:06 +0000)]
Catch up to the system siginfo changes.  Use a union for the ia32 layout
of siginfo just like the system one.  There are now two fields to copy
instead of one.

18 years ago- Cleanup whitespace and extra ()s in vtophys() macros.
jhb [Tue, 6 Dec 2005 21:09:01 +0000 (21:09 +0000)]
- Cleanup whitespace and extra ()s in vtophys() macros.
- Move vtophys() macros next to vtopte() where vtopte() exists to match
  comments above vtopte().
- Remove references to the alternate address space in the comment above
  vtopte().  amd64 never had the alternate address space, and i386 lost it
  prior to PAE support being added.
- s/entires/entries/ in comments.

Reviewed by: alc

18 years ago"Create" ldexpf for non-i386 architectures.
obrien [Tue, 6 Dec 2005 20:12:38 +0000 (20:12 +0000)]
"Create" ldexpf for non-i386 architectures.

Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu>

18 years agoFix ZERO_EDX() macro from the previous commit. It was emitting
jkim [Tue, 6 Dec 2005 20:11:07 +0000 (20:11 +0000)]
Fix ZERO_EDX() macro from the previous commit.  It was emitting
`xor %ecx, %ecx', not `xor %edx, %edx'.

18 years agoTeach sdpd(8) to check peer's credentials before accepting request to
emax [Tue, 6 Dec 2005 17:56:36 +0000 (17:56 +0000)]
Teach sdpd(8) to check peer's credentials before accepting request to
register, remove or change services in the local database. For now only
accept the request if the peer has effective user ID the same as 'root'
user ID.

MFC after: 1 week

18 years agoUse <sys/ktr.h> directly in .S files instead of exporting the
marius [Tue, 6 Dec 2005 16:38:08 +0000 (16:38 +0000)]
Use <sys/ktr.h> directly in .S files instead of exporting the
KTR_* class macros via genassym.c. Together with sys/sys/ktr.h
rev. 1.34 this has the desired side-effect of providing a default
value for KTR_COMPILE. Thus this fixes warnings from -Wundef
regarding KTR_COMPILE not being defined for .S files.

Requested by: ru
Reviewed by: ru

18 years agoExtend the scope of #ifndef LOCORE to also cover the prototype of
marius [Tue, 6 Dec 2005 16:37:01 +0000 (16:37 +0000)]
Extend the scope of #ifndef LOCORE to also cover the prototype of
ktr_tracepoint() and the macros using it. This allows this header
to be included in .S files for obtaining the KTR_* class macros
directly and providing a default value for KTR_COMPILE in case it's
not specified in the kernel config file including defining it to 0
when not using 'options KTR' at all.

Requested by: ru
Reviewed by: ru

18 years agoWhen compiling with the kernel, detect if INET6 support should be disabled.
ru [Tue, 6 Dec 2005 14:55:46 +0000 (14:55 +0000)]
When compiling with the kernel, detect if INET6 support should be disabled.

18 years agoRevert two changes I was testing regarding polling delay.
njl [Tue, 6 Dec 2005 14:51:55 +0000 (14:51 +0000)]
Revert two changes I was testing regarding polling delay.

18 years agoAdd KTR support and move some performance debugging variables in the EC
njl [Tue, 6 Dec 2005 14:47:28 +0000 (14:47 +0000)]
Add KTR support and move some performance debugging variables in the EC
to KTR.  We're reusing the KTR_DEV level.

18 years agoFix -r flag to actually work. "now" comes after "then", not vice versa.
njl [Tue, 6 Dec 2005 14:13:39 +0000 (14:13 +0000)]
Fix -r flag to actually work.  "now" comes after "then", not vice versa.

MFC after: 1 day

18 years agoAdd a MACHINE_CPU entry for "ev67".
ru [Tue, 6 Dec 2005 13:47:23 +0000 (13:47 +0000)]
Add a MACHINE_CPU entry for "ev67".

18 years agoDrop _MACHINE_ARCH and _MACHINE defines (not to be confused with
ru [Tue, 6 Dec 2005 13:27:21 +0000 (13:27 +0000)]
Drop _MACHINE_ARCH and _MACHINE defines (not to be confused with
MACHINE_ARCH and MACHINE).  Their purpose was to be able to test
in cpp(1), but cpp(1) only understands integer type expressions.
Using such unsupported expressions introduced a number of subtle
bugs, which were discovered by compiling with -Wundef.

18 years agocpp(1) only understand integer arithmetical expressions, so
ru [Tue, 6 Dec 2005 13:22:14 +0000 (13:22 +0000)]
cpp(1) only understand integer arithmetical expressions, so
_MACHINE == i386 test always succeeds, even on non-i386 (both
sides of expressions become 0).  Remove the comment since
_MACHINE and _MACHINE_ARCH are going away.

18 years agoMFi386: Add BPF Just-In-Time compiler.
nyan [Tue, 6 Dec 2005 12:26:24 +0000 (12:26 +0000)]
MFi386: Add BPF Just-In-Time compiler.

18 years agoFix -Wundef warnings from compiling GENERIC and LINT kernels of
ru [Tue, 6 Dec 2005 11:19:37 +0000 (11:19 +0000)]
Fix -Wundef warnings from compiling GENERIC and LINT kernels of
all architectures.

18 years agoWhen we drop packet due to no space in output interface output queue, also
glebius [Tue, 6 Dec 2005 11:16:11 +0000 (11:16 +0000)]
When we drop packet due to no space in output interface output queue, also
increase the ifp->if_snd.ifq_drops.

PR: 72440
Submitted by: ikob

18 years ago Optimize parallel processing of ipfw(4) rulesets eliminating the locking
glebius [Tue, 6 Dec 2005 10:45:49 +0000 (10:45 +0000)]
  Optimize parallel processing of ipfw(4) rulesets eliminating the locking
of the radix lookup tables. Since several rnh_lookup() can run in
parallel on the same table, we can piggyback on the shared locking
provided by ipfw(4).
  However, the single entry cache in the ip_fw_table can't be used lockless,
so it is removed. This pessimizes two cases: processing of bursts of similar
packets and matching one packet against the same table several times during
one ipfw_chk() lookup. To optimize the processing of similar packet bursts
administrator should use stateful firewall. To optimize the second problem
a solution will be provided soon.

Details:
  o Since we piggyback on the ipfw(4) locking, and the latter is per-chain,
    the tables are moved from the global declaration to the
    struct ip_fw_chain.
  o The struct ip_fw_table is shrunk to one entry and thus vanished.
  o All table manipulating functions are extended to accept the struct
    ip_fw_chain * argument.
  o All table modifing functions use IPFW_WLOCK_ASSERT().

18 years ago- Mention also the COMPAT_FREEBSD5 option along with COMPAT_FREEBSD4.
glebius [Tue, 6 Dec 2005 10:39:14 +0000 (10:39 +0000)]
- Mention also the COMPAT_FREEBSD5 option along with COMPAT_FREEBSD4.
- Notice that 20050227 entry is also applicable to packages, not only
  to world.

In collaboration with: osa, phk

18 years agoFix markeup.
davidxu [Tue, 6 Dec 2005 09:52:54 +0000 (09:52 +0000)]
Fix markeup.

Submitted by: ru

18 years agoSync with signal.h.
davidxu [Tue, 6 Dec 2005 07:54:10 +0000 (07:54 +0000)]
Sync with signal.h.

18 years agoReduce the scope of the page queues lock in exec_map_first_page(). The vm
alc [Tue, 6 Dec 2005 07:39:36 +0000 (07:39 +0000)]
Reduce the scope of the page queues lock in exec_map_first_page().  The vm
object lock is sufficient for reading a page's PG_BUSY and busy flags.

MFC after: 1 week

18 years agos/M_WAITOK/M_NOWAIT/ while mutex is held.
jkim [Tue, 6 Dec 2005 07:22:01 +0000 (07:22 +0000)]
s/M_WAITOK/M_NOWAIT/ while mutex is held.

Pointed out by: csjp

18 years ago- Micro-optimize `mov $0, %edx' -> `xor %edx, %edx'.
jkim [Tue, 6 Dec 2005 06:45:39 +0000 (06:45 +0000)]
- Micro-optimize `mov $0, %edx' -> `xor %edx, %edx'.
- Correct amd64 macro style (no functional change).

18 years agoo Turn on MPSAFE flag for mqueuefs.
davidxu [Tue, 6 Dec 2005 06:22:12 +0000 (06:22 +0000)]
o Turn on MPSAFE flag for mqueuefs.
o Reuse si_mqd field in siginfo_t, this also gives userland
  information about which descriptor is notified.

18 years agoo Add some pad fields into struct sigevent for future extension.
davidxu [Tue, 6 Dec 2005 06:02:35 +0000 (06:02 +0000)]
o Add some pad fields into struct sigevent for future extension.
  (suggested by alfred@)
o Reuse si_band field in struct __siginfo, add a mqd member which will
  be used by mqueue.
o Add code SI_KERNEL to indicate a signal is queued by kernel.

18 years agoFix a lock leak in childproc_continued().
davidxu [Tue, 6 Dec 2005 05:30:13 +0000 (05:30 +0000)]
Fix a lock leak in childproc_continued().

18 years agoSince rc.subr is a library of functions, it should not use exit
yar [Tue, 6 Dec 2005 05:27:11 +0000 (05:27 +0000)]
Since rc.subr is a library of functions, it should not use exit
every now and then.  It is up to the caller to choose a proper
action upon an error condition.  Therefore, use return, not exit,
except for some special cases.

Consistently return 1 to indicate an error.

Submitted by: sem (initially)
Reviewed by: freebsd-rc (silence)
MFC after: 2 weeks

18 years agoAdd experimental BPF Just-In-Time compiler for amd64 and i386.
jkim [Tue, 6 Dec 2005 02:58:12 +0000 (02:58 +0000)]
Add experimental BPF Just-In-Time compiler for amd64 and i386.

Use the following kernel configuration option to enable:

options BPF_JITTER

If you want to use bpf_filter() instead (e. g., debugging), do:

sysctl net.bpf.jitter.enable=0

to turn it off.

Currently BIOCSETWF and bpf_mtap2() are unsupported, and bpf_mtap() is
partially supported because 1) no need, 2) avoid expensive m_copydata(9).

Obtained from: WinPcap 3.1 (for i386)

18 years agoFix ypwhich -m. This should be MFC'ed back at least as far as RELENG_5.
peter [Tue, 6 Dec 2005 02:01:06 +0000 (02:01 +0000)]
Fix ypwhich -m.  This should be MFC'ed back at least as far as RELENG_5.

Submitted by: Gil Kloepfer <gil@arlut.utexas.edu>
PR: 64445

18 years agoThe Oxford 16C950 based CardBus Serial device that I was given some
imp [Mon, 5 Dec 2005 23:30:28 +0000 (23:30 +0000)]
The Oxford 16C950 based CardBus Serial device that I was given some
time ago appears to be based not on the typical 1.8432MHz clock, or
the other more typical multiple of 8 of this (14.7456MHz), but instead
it appears to be 1/2 the PCI clock rate or 16.50000MHz.  I'm not 100%
sure that this is right, but since I did the original entry, I'm going
to go ahead and modify it.  With the 14.7456MHz value, I was getting
bits that were ~7.3us instead of ~8.6us like they are supposed to be.

My measuring gear for today is a stupid handheld scope with two
signficant digits.  So I don't know if it is 33.000000/2 MHz or some
other value close to 16.5MHz, but 16.5MHz works well enough for me to
use a couple of different devices at 115200 baud, and is a nice even
multiple of a well known clock frequency...

18 years agoMore review and adjustment for reality that should have happened 3 years
scottl [Mon, 5 Dec 2005 23:25:59 +0000 (23:25 +0000)]
More review and adjustment for reality that should have happened 3 years
ago.  Document the real behavior of bus_dma_tag_create, bus_dmamap_load,
and other functions.  Also document their arguments and return values.

MFC After: 3 days

18 years agoChange the i386 code to pass the interrupt vector as a separate argument
jhb [Mon, 5 Dec 2005 22:39:09 +0000 (22:39 +0000)]
Change the i386 code to pass the interrupt vector as a separate argument
rather than embedding it in the intrframe as if_vec.  This reduces diffs
with amd64 somewhat.
- Remove cf_vec from clockframe (it wasn't used anyway) and stop pushing
  dummy vector arguments for ipi_bitmap_handler() and lapic_handle_timer()
  since clockframe == trapframe now.
- Fix ddb to handle stack traces across interrupt entry points that just
  have a trapframe on their stack and not a trapframe + vector.
- Change intr_execute_handlers() to take a trapframe rather than an
  intrframe pointer.
- Change lapic_handle_intr() and atpic_handle_intr() to take a vector and
  trapframe rather than an intrframe.
- GC struct intrframe now that nothing uses it anymore.
- GC CLOCK_TO_TRAPFRAME() and INTR_TO_TRAPFRAME().

Reviewed by: bde
Requested by: peter

18 years agoFreeBSD has had endian conversion macros for a long time. Axe the custom
scottl [Mon, 5 Dec 2005 22:37:37 +0000 (22:37 +0000)]
FreeBSD has had endian conversion macros for a long time.  Axe the custom
macros in this driver.

MFC After: 3 days

18 years agoDont use the BUS_DMA_ALLOCNOW flag. Instead use BUS_DMA_NOWAIT and return
sos [Mon, 5 Dec 2005 22:31:55 +0000 (22:31 +0000)]
Dont use the BUS_DMA_ALLOCNOW flag. Instead use BUS_DMA_NOWAIT and return
ENOMEM to the upper layers if we run out of memory.

This solves part of the trouble with running on >4GB memory systems.

18 years ago- Move the code to deal with handling an IPI_STOP IPI out of
jhb [Mon, 5 Dec 2005 22:25:41 +0000 (22:25 +0000)]
- Move the code to deal with handling an IPI_STOP IPI out of
  ipi_nmi_handler() and into a new cpustop_handler() function.  Change
  the Xcpustop IPI_STOP handler to call this function instead of
  duplicating all the same logic in assembly.
- EOI the local APIC for the lapic timer interrupt in C rather than
  assembly.
- Bump the lazypmap IPI counter if COUNT_IPIS is defined in C rather than
  assembly.

18 years agoRemove unused local variable misssed in previous commit.
jhb [Mon, 5 Dec 2005 22:20:23 +0000 (22:20 +0000)]
Remove unused local variable misssed in previous commit.

18 years agocorrect handling of dtim for periods > 1
sam [Mon, 5 Dec 2005 22:14:13 +0000 (22:14 +0000)]
correct handling of dtim for periods > 1

Obtained from: madwifi

18 years agoDon't panic if IRQ 13 doesn't exist. On some machines (see previous
jhb [Mon, 5 Dec 2005 22:11:44 +0000 (22:11 +0000)]
Don't panic if IRQ 13 doesn't exist.  On some machines (see previous
commit to atpic.c) there may not be an IRQ 13.  Instead, just keep going.
If the INT16 interface doesn't work then we will eventually panic anyway.

FWIW: We could probably just axe the support for IRQ 13 altogether at this
point.  The only thing we'd lose support for are 486sx systems with
external 487 FPUs.

MFC after: 1 week

18 years agoFix a couple typos.
jcamou [Mon, 5 Dec 2005 22:10:09 +0000 (22:10 +0000)]
Fix a couple typos.

PR: docs/89881
Submitted by: Seán Farley <sean-freebsd@farley.org>
Approved by: trhodes (mentor)
MFC after: 3 days

18 years agoReally slam the door on mixed mode now that we don't depend on it for a
jhb [Mon, 5 Dec 2005 22:09:30 +0000 (22:09 +0000)]
Really slam the door on mixed mode now that we don't depend on it for a
working IRQ0 with APIC anymore.  Previously, it was possible to have
some other ATPIC IRQS "leak" through in a few edge cases.  For example, on
my x86 test machine, ACPI re-routes the SCI (IRQ 9) to intpin 13 on the
first I/O APIC.  This leaves a hole for IRQ 13 (since the APIC doesn't
provide a source for IRQ 13 in that case) with the result that the ATPIC
IRQ13 source was registered instead.  This changes the 8259A drivers to
only register their interrupt sources if none of the 16 ISA IRQs have an
interrupt source already installed.

MFC after: 1 week

18 years ago- Move PUSH_FRAME and POP_FRAME into machine/asmacros.h.
jhb [Mon, 5 Dec 2005 21:44:47 +0000 (21:44 +0000)]
- Move PUSH_FRAME and POP_FRAME into machine/asmacros.h.
- Add a new SET_KERNEL_SREGS macro that sets up %ds and %es to point to
  kernel data and %fs to point to per-CPU data and use the new macro
  in several kernel entry points including trap and interrupt handlers.
- Convert the IPI_STOP handler Xcpustop to push a standard trap frame
  rather than an application frame.
- Make the TRAP() macro private to exception.s since it is only used
  there.
- Move the PCPU_*() macros in asmacros.h out of the middle of the
  profiling macros.

Reviewed by: bde
Requested by: bde (4, 5)

18 years ago- Don't make the driver lock recursive, it shouldn't be recursively
jhb [Mon, 5 Dec 2005 20:49:45 +0000 (20:49 +0000)]
- Don't make the driver lock recursive, it shouldn't be recursively
  acquired anywhere in the driver now.
- Axe the spin mutex used for the nve_oslock*() routines.  The driver lock
  already provides sufficient synchronization.
- Don't mess around with IFF_UP when the link state changes.  IFF_UP is
  an administrative flag, not a link status indicator.

MFC after: 1 week

18 years agoTweak witness handling of lock object to shave 2 pointers off of each
jhb [Mon, 5 Dec 2005 20:45:24 +0000 (20:45 +0000)]
Tweak witness handling of lock object to shave 2 pointers off of each
lock object (and thus off of each mutex and sx lock):
- Rename the all_locks list to pending_locks and only put locks initialized
  before SI_SUB_WITNESS on the list so that the SI_SUB_WITNESS can add them
  to witness once it starts up.
- Now that pending_locks is only used during early startup, change it from
  a TAILQ to an STAILQ.  This removes a pointer from the STAILQ_ENTRY in
  struct lock_object.
- Since the pending_locks list is only used during the single-threaded
  early boot it no longer needs to be protected by a mutex, so remove
  all_mtx.
- Since the lo_list member of struct lock_object is now only used during
  early boot before witness is running, collapse lo_list and lo_witness
  into a union.  This shaves the second pointer off of struct lock_object.
- Axe lock_cur_cnt and lock_max_cnt.

With these changes, struct mtx shrinks from 36 to 28 bytes on 32-bit
platforms and from 72 to 56 bytes on 64-bit platforms.  Note that this
commit will completely and utterly destroy the kernel ABI, so no MFC.

Tested on: alpha, amd64, i386, sparc64

18 years agoIf pci_link has been disabled via the acpi_disable tunable, then bail
jhb [Mon, 5 Dec 2005 19:50:00 +0000 (19:50 +0000)]
If pci_link has been disabled via the acpi_disable tunable, then bail
immediately from acpi_pci_link_route_interrupt() since we aren't going
to have a valid pci_link device to talk to try to route interrupts.  This
fixes a page fault if you disable just pci_link.  Note that trying to use
ACPI without pci_link is probably not advised however.

MFC after: 1 week
Tested by: Eugene Grosbein eugen at kuzbass dot ru

18 years agoRecent nmount(2) adoption in mount_smbfs(8) did not flag the "long" option
avatar [Mon, 5 Dec 2005 19:05:06 +0000 (19:05 +0000)]
Recent nmount(2) adoption in mount_smbfs(8) did not flag the "long" option
since mount_smbfs(8) assumed long name mounting by default unless "-n long"
was explicitly specified.

Rather than supplying a "long" option in mount_smbfs(8), this commit brings
back the original behaviour by associating SMBFS_MOUNT_NO_LONG with the
"nolong" option.  This should fix the broken long file names on smbfs people
observed recently.

Reported by: Vladimir Grebenschikov <vova at fbsd dot ru>
Reviewed by: phk
Tested by: Slawa Olhovchenkov <slw at zxy dot spb dot ru>

18 years agoDocument Intel MatrixRAID write support.
brueffer [Mon, 5 Dec 2005 18:11:36 +0000 (18:11 +0000)]
Document Intel MatrixRAID write support.

18 years agoSwitch off debugging that was left on in last commit.
sos [Mon, 5 Dec 2005 17:58:11 +0000 (17:58 +0000)]
Switch off debugging that was left on in last commit.

18 years agoAdd support for writing Intel MatrixRAID arrays.
sos [Mon, 5 Dec 2005 17:33:57 +0000 (17:33 +0000)]
Add support for writing Intel MatrixRAID arrays.
Do a little better on handling volumes as well, however we cant create
multiple volumes from FreeBSD yet.

HW sponsored by:        Mullet Scandinavia AB

18 years agoDocument the public targets and make variables supported by the
jkoshy [Mon, 5 Dec 2005 16:59:45 +0000 (16:59 +0000)]
Document the public targets and make variables supported by the
build system.

Reviewed by: ru (multiple passes)

18 years agoPrepare for MACHINE and hw.machine switching to "pc98" on FreeBSD/pc98.
ru [Mon, 5 Dec 2005 14:22:12 +0000 (14:22 +0000)]
Prepare for MACHINE and hw.machine switching to "pc98" on FreeBSD/pc98.

Reviewed by: nyan

18 years agoAdd a simple KVM tool to dump the kernel state of UMA, including walking
rwatson [Mon, 5 Dec 2005 13:04:00 +0000 (13:04 +0000)]
Add a simple KVM tool to dump the kernel state of UMA, including walking
the keg/zone lists, summarizing cache state, and walking bucket lists in
each zone.  I seem to get inconsistent results on SMP, possibly due to
local header problems, but it seems to work quite well on UP.  This tool
requires sufficient privilege to read /dev/mem (or a core dump), and is
for debugging purposes rather than administrative monitoring purposes
(use vmstat instead).

18 years agoTry to use contigmalloc() even if M_NOWAIT has been specified.
cognet [Mon, 5 Dec 2005 12:58:44 +0000 (12:58 +0000)]
Try to use contigmalloc() even if M_NOWAIT has been specified.

18 years agoTeach the elf trampoline how to deal with gzipped kernels.
cognet [Mon, 5 Dec 2005 12:55:46 +0000 (12:55 +0000)]
Teach the elf trampoline how to deal with gzipped kernels.

18 years ago- Rev. 1.175 fixed compilation on sparc64 but also backed out zeroing of
marius [Mon, 5 Dec 2005 12:32:20 +0000 (12:32 +0000)]
- Rev. 1.175 fixed compilation on sparc64 but also backed out zeroing of
  the eaddr array (introduced in rev. 1.174) prior to writing to it. As
  dc_read_eeprom() is told to write only 3 16-bit words to eaddr but eaddr
  in fact is somewhat larger removal of the zeroing defeated the check
  whether the MAC address is all zero as there can be some random garbage
  in eaddr past the 3 words written to it and the check verifys all bits
  in eaddr. Solve this by changing the check to verify only the 3 words
  (happenning to be ETHER_ADDR_LEN bytes) written to eaddr.
- While here change the notation of "FCode" in a nearby comment to the
  official way.

Ok'ed by: marcel, ru

18 years agoFix -Wundef warnings found when compiling i386 LINT, GENERIC and
ru [Mon, 5 Dec 2005 11:58:35 +0000 (11:58 +0000)]
Fix -Wundef warnings found when compiling i386 LINT, GENERIC and
custom kernels.

18 years agoFix markup.
davidxu [Mon, 5 Dec 2005 09:31:49 +0000 (09:31 +0000)]
Fix markup.

Submitted by: ru

18 years agoFix markup.
davidxu [Mon, 5 Dec 2005 09:31:23 +0000 (09:31 +0000)]
Fix markup.

18 years agoBump __FreeBSD_version to reflect removal of MNT_NODEV mount option.
rodrigc [Mon, 5 Dec 2005 09:13:35 +0000 (09:13 +0000)]
Bump __FreeBSD_version to reflect removal of MNT_NODEV mount option.

Requested by: marcus

18 years agoAdd an MLINKS entry for times.1.
stefanf [Mon, 5 Dec 2005 08:01:10 +0000 (08:01 +0000)]
Add an MLINKS entry for times.1.

Noticed by: ru

18 years agoChange how *.sh scripts are handled. If the script is in /etc/rc.d,
dougb [Mon, 5 Dec 2005 07:04:15 +0000 (07:04 +0000)]
Change how *.sh scripts are handled. If the script is in /etc/rc.d,
source it into the shell. If not, handle it in a subshell the same
way that "real" rc.d-style scripts are handled. This will dramatically
ease the "process local scripts in the base rcorder" transition.

Add *.bak to the list of files in */rc.d that we ignore.

18 years agoCanonify, correct, and add citations related to Douglas Adams' work.
dougb [Mon, 5 Dec 2005 06:47:23 +0000 (06:47 +0000)]
Canonify, correct, and add citations related to Douglas Adams' work.
Correct a quotation from Hitchhiker's.

18 years agoAdd document about mqueuefs.
davidxu [Mon, 5 Dec 2005 05:18:23 +0000 (05:18 +0000)]
Add document about mqueuefs.

18 years agoDocument SIGEV_NONE and SIGEV_SIGNAL.
davidxu [Mon, 5 Dec 2005 04:44:39 +0000 (04:44 +0000)]
Document SIGEV_NONE and SIGEV_SIGNAL.

18 years agoAfter reading some documents, I realized SIGEV_NONE != NULL, also
davidxu [Mon, 5 Dec 2005 04:41:32 +0000 (04:41 +0000)]
After reading some documents, I realized SIGEV_NONE != NULL, also
fix code in mqueue_send_notification to handle SIGEV_NONE.

18 years agoHandle SIGEV_NONE, if notification is SIGEV_NONE, error status and
davidxu [Mon, 5 Dec 2005 03:23:27 +0000 (03:23 +0000)]
Handle SIGEV_NONE, if notification is SIGEV_NONE, error status and
return status will be set, but no notification will be registered.
Increase hard limit of maxmsg to 100, so posixtestsuite ports can run.

18 years ago- Add Product IDs for iPod 3G and iPod Video.
flz [Mon, 5 Dec 2005 01:51:28 +0000 (01:51 +0000)]
- Add Product IDs for iPod 3G and iPod Video.
- Add an USB quirk for iPods, da(4) devices are now successfully created.

Approved by: ssouhlal
MFC after: 1 week

18 years agoSimplify vmspace_dofree().
alc [Sun, 4 Dec 2005 22:55:41 +0000 (22:55 +0000)]
Simplify vmspace_dofree().

18 years agoSort.
stefanf [Sun, 4 Dec 2005 20:01:48 +0000 (20:01 +0000)]
Sort.

18 years agoRemove a few commented out builtins from the original ash. The files
stefanf [Sun, 4 Dec 2005 19:37:07 +0000 (19:37 +0000)]
Remove a few commented out builtins from the original ash.  The files
implementing them were never part of FreeBSD.

18 years agoAdd the times builtin.
stefanf [Sun, 4 Dec 2005 18:59:34 +0000 (18:59 +0000)]
Add the times builtin.

18 years agoAdd the times builtin. It reports the user and system time for the shell
stefanf [Sun, 4 Dec 2005 18:44:21 +0000 (18:44 +0000)]
Add the times builtin.  It reports the user and system time for the shell
itself and its children.  Instead of calling times() (as implied by POSIX) this
implementation directly calls getrusage() to get the times because this is more
convenient.

18 years agoCatch up with 64bit time_t on sparc64. The rstat packet expects a 32bit
philip [Sun, 4 Dec 2005 18:25:26 +0000 (18:25 +0000)]
Catch up with 64bit time_t on sparc64.  The rstat packet expects a 32bit
time_t and times will look incorrect on machines with 64bit time_t.

PR: 88788
Submitted by: Keith White <Keith.White -at- site.uottawa.ca>
MFC after: 1 week

18 years agoAdd Sony TJ37 to the uvisor manpage.
bmah [Sun, 4 Dec 2005 15:44:54 +0000 (15:44 +0000)]
Add Sony TJ37 to the uvisor manpage.

Prompted by: simon
MFC after: 1 week

18 years agoFixed the approximation to pio4. pio4_hi must be pio2_hi/2 since it
bde [Sun, 4 Dec 2005 13:52:46 +0000 (13:52 +0000)]
Fixed the approximation to pio4.  pio4_hi must be pio2_hi/2 since it
shares its low half with pio2_hi.  pio2_hi is rounded down although
rounding to nearest would be a tiny bit better, so pio4_hi must be
rounded down too.  It was rounded to nearest, which happens to be
different in float precision but the same in double precision.

This fixes about 13.5 million errors of more than 1 ulp in asinf().
The largest error was 2.81 ulps on amd64 and 2.57 ulps on i386 -O1.
Now the largest error is 0.93 ulps on amd65 and 0.67 ulps on i386 -O1.

18 years agoUse compile-time detection of 64-bit addressing.
ru [Sun, 4 Dec 2005 12:37:19 +0000 (12:37 +0000)]
Use compile-time detection of 64-bit addressing.

18 years agoFor log1pf(), fixed the approximations to sqrt(2), sqrt(2)-1 and
bde [Sun, 4 Dec 2005 12:30:44 +0000 (12:30 +0000)]
For log1pf(), fixed the approximations to sqrt(2), sqrt(2)-1 and
sqrt(2)/2-1.  For log1p(), fixed the approximation to sqrt(2)/2-1.

The end result is to fix an error of 1.293 ulps in
    log1pf(0.41421395540 (hex 0x3ed413da))
and an error of 1.783 ulps in
    log1p(-0.292893409729003961761) (hex 0x12bec4 00000001)).
The former was the only error of > 1 ulp for log1pf() and the latter
is the only such error that I know of for log1p().

The approximations don't need to be very accurate, but the last 2 need
to be related to the first and be rounded up a little (even more than
1 ulp for sqrt(2)/2-1) for the following implementation-detail reason:
when the arg (x) is not between (the approximations to) sqrt(2)/2-1
and sqrt(2)-1, we commit to using a correction term, but we only
actually use it if 1+x is between sqrt(2)/2 and sqrt(2) according to
the first approximation. Thus we must ensure that
!(sqrt(2)/2-1 < x < sqrt(2)-1) implies !(sqrt(2)/2 < x+1 < sqrt(2)),
where all the sqrt(2)'s are really slightly different approximations
to sqrt(2) and some of the "<"'s are really "<="'s.  This was not done.

In log1pf(), the last 2 approximations were rounded up by about 6 ulps
more than needed relative to a good approximation to sqrt(2), but the
actual approximation to sqrt(2) was off by 3 ulps.  The approximation
to sqrt(2)-1 ended up being 4 ulps too small, so the algoritm was
broken in 4 cases.  The result happened to be broken in 1 case.  This
is fixed by using a natural approximation to sqrt(2) and derived
approximations for the others.

In logf(), all the approximations made sense, but the approximation
to sqrt(2)/2-1 was 2 ulps too small (a tiny amount, since we compare
with a granularity of 2**32 ulps), so the algorithm was broken in 2
cases.  The result was broken in 1 case.  This is fixed by rounding
up the approximation to sqrt(2)/2-1 by 2**32 ulps, so 2**32 cases are
now handled a little differently (still correctly according to my
assertion that the approximations don't need to be very accurate, but
this has not been checked).

18 years agoUse a compile-time detection of 64-bit addressing so that this
ru [Sun, 4 Dec 2005 12:30:34 +0000 (12:30 +0000)]
Use a compile-time detection of 64-bit addressing so that this
compiles on 32-bit machines.

Reported by: ale

18 years agoFix -Wundef from compiling the amd64 LINT.
ru [Sun, 4 Dec 2005 10:06:06 +0000 (10:06 +0000)]
Fix -Wundef from compiling the amd64 LINT.

18 years agoFix -Wunder and make the sbus code really compile only on sparc64.
ru [Sun, 4 Dec 2005 10:03:00 +0000 (10:03 +0000)]
Fix -Wunder and make the sbus code really compile only on sparc64.

18 years agoFix -Wundef warnings and properly check the size of long, FWIW.
ru [Sun, 4 Dec 2005 10:01:44 +0000 (10:01 +0000)]
Fix -Wundef warnings and properly check the size of long, FWIW.

18 years agoOops, the bug is still here, but reimplement the cpp(1) conditional properly.
ru [Sun, 4 Dec 2005 09:57:09 +0000 (09:57 +0000)]
Oops, the bug is still here, but reimplement the cpp(1) conditional properly.

18 years agoThere no longer seems to be this bug in gcc(1). Remove the
ru [Sun, 4 Dec 2005 09:47:20 +0000 (09:47 +0000)]
There no longer seems to be this bug in gcc(1).  Remove the
badly implemented workaround that caused a workaround to be
applied to all architectures, not only amd64.

18 years agoMerge NetBSD's revision 1.27. This bug can be observed eg. when browsing
stefanf [Sun, 4 Dec 2005 09:34:56 +0000 (09:34 +0000)]
Merge NetBSD's revision 1.27.  This bug can be observed eg. when browsing
through the history in sh.

| Refresh bug reported by Julien Torres:
|
| going from:
|     activate -verbose
| to:
|     reset -activation
| results in:
|     reset -activationverbose"
| instead of:
|     reset -activation
|
| This is because we choose to insert "reset -" before the current line,
| and the delete "e -" and insert "ion" in the appropriate place. The
| cleareol code did not handle this case properly; we now cleareol to
| the maximum number of characters of the first difference, the second
| difference and the difference in line length.