]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoMerge the following from the English version:
den [Fri, 15 Apr 2005 12:03:46 +0000 (12:03 +0000)]
Merge the following from the English version:

   1.832 -> 1.843 relnotes/common/new.sgml

Obtained from: The FreeBSD Russian Documentation Project

19 years agoAdd missing links.
pjd [Fri, 15 Apr 2005 10:57:34 +0000 (10:57 +0000)]
Add missing links.

MFC after: 2 weeks

19 years agoMove the creation of ata_channel child devices to the channel code.
sos [Fri, 15 Apr 2005 10:20:52 +0000 (10:20 +0000)]
Move the creation of ata_channel child devices to the channel code.
This allows to attach to the children (ATA devices) even without a
driver being attached. This allows atapi-cam to do its work both
with and without the pure ATAPI driver being present.

ATA patches by /me
ATAPI-cam pathes by Thomas

19 years ago- Return error, if there was one.
glebius [Fri, 15 Apr 2005 10:14:00 +0000 (10:14 +0000)]
- Return error, if there was one.
- No need to initialize error here.

PR: kern/79884
Submitted by: Wojciech A. Koszek

19 years agoReally remove the last vestiges of mixed mode from all but amd64.
jhb [Fri, 15 Apr 2005 06:56:52 +0000 (06:56 +0000)]
Really remove the last vestiges of mixed mode from all but amd64.

19 years agoOops, remove last mention of mixed mode.
jhb [Fri, 15 Apr 2005 06:13:31 +0000 (06:13 +0000)]
Oops, remove last mention of mixed mode.

Prodded by: marks

19 years agoZero the ifr.ifr_name buffer in ifconf() in order to avoid
cperciva [Fri, 15 Apr 2005 01:52:40 +0000 (01:52 +0000)]
Zero the ifr.ifr_name buffer in ifconf() in order to avoid
accidental disclosure of kernel memory to userland.

Security: FreeBSD-SA-05:04.ifconf

19 years agoCentralized finding the protocol header in IP packets in preperation for
brooks [Fri, 15 Apr 2005 00:47:44 +0000 (00:47 +0000)]
Centralized finding the protocol header in IP packets in preperation for
IPv6 support.  The header in IPv6 is more complex then in IPv4 so we
want to handle skipping over it in one location.

Submitted by: Mariano Tortoriello and Raffaele De Lorenzo (via luigi)

19 years agoInitialize curthread before we save the APs MCA state. Saving the
marcel [Fri, 15 Apr 2005 00:21:23 +0000 (00:21 +0000)]
Initialize curthread before we save the APs MCA state. Saving the
MCA state requires a spin lock, which requires a valid curthread.
This change allows SMP kernels to boot into multi-user again.

While here, update the copyright notice and use __FBSDID for the
revision string.

19 years agoRemove dead code.
rees [Thu, 14 Apr 2005 20:27:30 +0000 (20:27 +0000)]
Remove dead code.

PR: bin/78125
Submitted by: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
Approved by: alfred

19 years agoFix for a TCP SACK bug where more than (win/2) bytes could have been
ps [Thu, 14 Apr 2005 20:09:52 +0000 (20:09 +0000)]
Fix for a TCP SACK bug where more than (win/2) bytes could have been
in flight in SACK recovery.

Found by: Noritoshi Demizu
Submitted by: Mohan Srinivasan <mohans at yahoo-inc dot com>
Noritoshi Demizu <demizu at dd dot ij4u dot or dot jp>
Raja Mukerji <raja at moselle dot com>

19 years agoAlso test \0 in the format string.
stefanf [Thu, 14 Apr 2005 18:33:14 +0000 (18:33 +0000)]
Also test \0 in the format string.

19 years agoClose a race I introduced in the spinlock_* changes. We need to finish
jhb [Thu, 14 Apr 2005 18:30:10 +0000 (18:30 +0000)]
Close a race I introduced in the spinlock_* changes.  We need to finish
disabling interrupts before updating the saved pil in the thread.  If we
save the value first then it can be clobbered if an interrupt comes in
and the interrupt handler tries to acquire a spin lock.

Submitted by: marius

19 years agoUpdate the bugs section, null characters in the format string are now handled.
stefanf [Thu, 14 Apr 2005 18:29:59 +0000 (18:29 +0000)]
Update the bugs section, null characters in the format string are now handled.

19 years agoTrust the settings programmed by the BIOS over what the $PIR says.
jhb [Thu, 14 Apr 2005 18:25:09 +0000 (18:25 +0000)]
Trust the settings programmed by the BIOS over what the $PIR says.
Specifically, if the BIOS has programmed an IRQ for a device that doesn't
match the list of valid IRQs for the link, use it anyway as some BIOSes
don't correctly list the valid IRQs in the $PIR.  Also, allow the user
to specify an IRQ that $PIR claims is invalid as an override, but emit a
warning in that case.

19 years agoRemove support for mixed mode altogether now that we no longer use IRQ 0
jhb [Thu, 14 Apr 2005 17:59:58 +0000 (17:59 +0000)]
Remove support for mixed mode altogether now that we no longer use IRQ 0
when using an APIC.  This simplifies the APIC code somewhat and also allows
us to be pedantically more compliant with ACPI which mandates no use of
mixed mode.

19 years agoCall pci_print_verbose() before pci_add_resources() so that the order of
jhb [Thu, 14 Apr 2005 17:52:55 +0000 (17:52 +0000)]
Call pci_print_verbose() before pci_add_resources() so that the order of
printf's during a verbose boot is more intuitive (the BAR listings and
interrupt routing info now comes after the config header dump rather than
just before it).

19 years agoHandle null characters in the format string. A \0 in the argument passed to %b
stefanf [Thu, 14 Apr 2005 17:02:34 +0000 (17:02 +0000)]
Handle null characters in the format string.  A \0 in the argument passed to %b
still results in trucation but this is be much harder to fix.

19 years agoImplement 32-bit compatable fsbase/gsbase methods so that we can run
peter [Thu, 14 Apr 2005 16:57:58 +0000 (16:57 +0000)]
Implement 32-bit compatable fsbase/gsbase methods so that we can run
(newer) unmodified static i386 binaries again.

19 years agoMove MAC check_vnode_mmap entry point out from being exclusive to
csjp [Thu, 14 Apr 2005 16:03:30 +0000 (16:03 +0000)]
Move MAC check_vnode_mmap entry point out from being exclusive to
MAP_SHARED so that the entry point gets executed un-conditionally.
This may be useful for security policies which want to perform access
control checks around run-time linking.

-add the mmap(2) flags argument to the check_vnode_mmap entry point
 so that we can make access control decisions based on the type of
 mapped object.
-update any dependent API around this parameter addition such as
 function prototype modifications, entry point parameter additions
 and the inclusion of sys/mman.h header file.
-Change the MLS, BIBA and LOMAC security policies so that subject
 domination routines are not executed unless the type of mapping is
 shared. This is done to maintain compatibility between the old
 vm_mmap_vnode(9) and these policies.

Reviewed by: rwatson
MFC after: 1 month

19 years agoIn ppsintr, we needed ppsdev to get to the softc and nothing else.
imp [Thu, 14 Apr 2005 15:56:10 +0000 (15:56 +0000)]
In ppsintr, we needed ppsdev to get to the softc and nothing else.
Save a memory dereference in the ISR by passing this in directly.
Calling pps_capture is MP safe for all other operations on struct
pps_state, so there's no need to aquire the lock before we do this,
even from a fast ISR.  Avoid dereferencing sc->ppbus until after
pps_capture is called as well.  These actions reduce somewhat the
cache effects that cause variance in interrupt times.  On an
especially slow test machine (300MHz Cyrix GXm), this reduces the
interrupt latency about about 10% (from 21us to 19us) and helps a
little with the variance (although most of the variance seems to be
caused by lots of interrupt masking).

This also happens fixes one or two of bde's style issues.

19 years agoNo reason to write \a and \v as octal escape sequences.
stefanf [Thu, 14 Apr 2005 15:32:21 +0000 (15:32 +0000)]
No reason to write \a and \v as octal escape sequences.

19 years ago- Add a THR column to the process listing, that shows the number of
keramida [Thu, 14 Apr 2005 15:02:03 +0000 (15:02 +0000)]
- Add a THR column to the process listing, that shows the number of
  threads a process has.  The THR column is disabled and disappears
  when 'H' is hit, because then every thread gets its own output line.
- Allow sorting processes by "threads".

Approved by: davidxu
Inspired by: Jiawei Ye <leafy7382@gmail.com>

19 years agoCorrect typo.
brueffer [Thu, 14 Apr 2005 14:40:09 +0000 (14:40 +0000)]
Correct typo.

Obtained from: OpenBSD

19 years agoUnbreak the vector_page == 0x00000000 case. Map the vector page L1PT into the
cognet [Thu, 14 Apr 2005 14:32:32 +0000 (14:32 +0000)]
Unbreak the vector_page == 0x00000000 case. Map the vector page L1PT into the
kernel domain for each pmap, as we don't update the page table when we're
switching to a kernel thread, but we do however update the DACR.

19 years agoMFi386: revision 1.612.
nyan [Thu, 14 Apr 2005 14:19:47 +0000 (14:19 +0000)]
MFi386: revision 1.612.

19 years agoMFi386: revision 1.20.
nyan [Thu, 14 Apr 2005 14:12:54 +0000 (14:12 +0000)]
MFi386: revision 1.20.

19 years agoMerge the following from the English version:
den [Thu, 14 Apr 2005 13:29:07 +0000 (13:29 +0000)]
Merge the following from the English version:

   1.30 -> 1.31 install.sgml
   1.9 -> 1.10 layout.sgml
   1.16 -> 1.17 trouble.sgml

Obtained from: The FreeBSD Russian Documentation Project

19 years agoremove needless res_init() call.
ume [Thu, 14 Apr 2005 11:44:43 +0000 (11:44 +0000)]
remove needless res_init() call.

Inspired by: NetBSD

19 years agoRemove dead code which would never execute.
gnn [Thu, 14 Apr 2005 11:41:23 +0000 (11:41 +0000)]
Remove dead code which would never execute.
    i.e. checking to see if a cluster was every less than 48 bytes,
    a rather unlikely case.

Check return value of m_dup_pkthdr() calls.

Found by: Coverity
Reviewed by: rwatson (mentor), Keiichi Shima (for Kame)
Approved by: rwatson (mentor)

19 years agoRead back the real taskfile register values when in 48BIT mode.
sos [Thu, 14 Apr 2005 08:48:45 +0000 (08:48 +0000)]
Read back the real taskfile register values when in 48BIT mode.

19 years agoPrintf(1) is WARNS 6 clean.
stefanf [Thu, 14 Apr 2005 08:43:36 +0000 (08:43 +0000)]
Printf(1) is WARNS 6 clean.

19 years ago- Move parts of the long main() function into a new function doformat().
stefanf [Thu, 14 Apr 2005 08:40:28 +0000 (08:40 +0000)]
- Move parts of the long main() function into a new function doformat().
- Rewrite the loop in main() to be more understandable.

19 years ago - cache_lookup() relocks the parent in the DOTDOT case for us.
jeff [Thu, 14 Apr 2005 07:08:34 +0000 (07:08 +0000)]
 - cache_lookup() relocks the parent in the DOTDOT case for us.

Spotted by: phk
Sponsored by: Isilon Systems, Inc.

19 years agoUse AcpiUtStrupr() instead of strupr() as the latter will disappear in
marks [Thu, 14 Apr 2005 06:50:13 +0000 (06:50 +0000)]
Use AcpiUtStrupr() instead of strupr() as the latter will disappear in
future versions of acpica.

MFC after: 2 weeks

19 years agoProbe PCI link devices early so that we turn them all off via _DIS before
jhb [Thu, 14 Apr 2005 06:45:24 +0000 (06:45 +0000)]
Probe PCI link devices early so that we turn them all off via _DIS before
we start turning any of them back on again.  This works around a bug in
some BIOSen that alias two different link devices for APIC vs ATPIC modes
onto the same physical hardware link.

Submitted by: njl
Tested by: Antoine Brodin antoine dot brodin at laposte dot net

19 years agoBah, add a missing cast.
jhb [Thu, 14 Apr 2005 06:33:23 +0000 (06:33 +0000)]
Bah, add a missing cast.

19 years agoClose a race between sleepq_broadcast() and sleepq_catch_signals().
jhb [Thu, 14 Apr 2005 06:30:32 +0000 (06:30 +0000)]
Close a race between sleepq_broadcast() and sleepq_catch_signals().
Specifically, sleepq_broadcast() uses td_slpq for its private pending
queue of threads that it is going to wake up after it takes them off the
sleep queue.  The problem is that if one of the threads is actually not
asleep yet, then we can end up with td_slpq being corrupted and/or the
thread being made runnable at the wrong time resulting in the td_sleepqueue
== NULL assertion failures occasionally reported under heavy load.

The fix is to stop being so fancy and ditch the whole pending queue bit.
Instead, sleepq_remove_thread() and sleepq_resume_thread() were merged
into one function that requires the caller to hold sched_lock.  This
fixes several places that unlocked sched_lock only to call a function
that then locked sched_lock, so even though sched_lock is now held
slightly longer, removing the extra lock acquires (1 pair instead of 3
in some cases) probably makes it an overall win if you don't include the
fact that it closes a race.  This is definitely a 5.4 candidate.

PR: kern/79693
Submitted by: Steven Sears stevenjsears at yahoo dot com
MFC after: 4 days

19 years agoAlways use the local APIC timer, even on UP machines.
jhb [Thu, 14 Apr 2005 05:56:17 +0000 (05:56 +0000)]
Always use the local APIC timer, even on UP machines.

19 years agoIf an I/O APIC returns 0xffffffff for its version register after we map it,
jhb [Thu, 14 Apr 2005 05:55:34 +0000 (05:55 +0000)]
If an I/O APIC returns 0xffffffff for its version register after we map it,
assume it is bogus and return NULL instead of trying to parse it as an
APIC.

Inspired by: linux bug reports via njl

19 years agorev 1.54 of i386/include/pcb.h depended on sys/proc.h. The prerequisite
peter [Thu, 14 Apr 2005 05:25:40 +0000 (05:25 +0000)]
rev 1.54 of i386/include/pcb.h depended on sys/proc.h.  The prerequisite
was satisified for the rest of the kernel on the i386 build except for
these two files.  Rather than adding a submarine include to pcb.h, I've
added proc.h here.

I forgot to include these with the original commit. Sorry folks.

19 years agoMake sure we look at the correct sub op codes when
mjacob [Thu, 14 Apr 2005 04:51:18 +0000 (04:51 +0000)]
Make sure we look at the correct sub op codes when
deciding whether it's an operation we can perform
via the control device.

PR: kern/72010
MFC after: 1 week

19 years agoTake constructive advice from njl && reformat
mjacob [Thu, 14 Apr 2005 04:46:46 +0000 (04:46 +0000)]
Take constructive advice from njl && reformat
previously added quirks slightly.

19 years agoQuirk for ZICPlay USB MP3 Player.
njl [Thu, 14 Apr 2005 04:31:48 +0000 (04:31 +0000)]
Quirk for ZICPlay USB MP3 Player.

PR: kern/75057
Submitted by: Aurelien Nephtali <aurelien.nephtali wanadoo.fr>

19 years agoIt seems I introduced a new prerequisite for <machine/pcb.h> on i386,
peter [Thu, 14 Apr 2005 04:13:27 +0000 (04:13 +0000)]
It seems I introduced a new prerequisite for <machine/pcb.h> on i386,
which is included from <sys/user.h>.  Add a bandaid for userland.

19 years agoApply quirk.
mjacob [Thu, 14 Apr 2005 04:12:45 +0000 (04:12 +0000)]
Apply quirk.

PR: 57469
Submitted by: walter@pelissero.de
MFC after: 1 week

19 years agoApplied conservative version of suggested quirk.
mjacob [Thu, 14 Apr 2005 04:05:00 +0000 (04:05 +0000)]
Applied conservative version of suggested quirk.

PR: 57468
Submitted by: walter@pelissero.de
MFC after: 1 week

19 years agoApply quirk suggested by submitter.
mjacob [Thu, 14 Apr 2005 03:59:48 +0000 (03:59 +0000)]
Apply quirk suggested by submitter.

PR: 75486
Submitted by: no_bs@web.de
MFC after: 1 week

19 years agoDo not remove logging sockets. This fixes an issue where logging
csjp [Thu, 14 Apr 2005 03:56:06 +0000 (03:56 +0000)]
Do not remove logging sockets. This fixes an issue where logging
sockets placed into prisons from the host environment get clobbered
by the prison's instance of cleanvar. (assuming /etc/rc is run in
the prison).

Discussed with: pjd, green, cperciva
MFC after: 1 week

19 years agoThe divide by zero panic must have been due to a bogus
mjacob [Thu, 14 Apr 2005 03:52:50 +0000 (03:52 +0000)]
The divide by zero panic must have been due to a bogus
period value. I suppose the BT adapter driver should be
fixed, but more importantly we should protect against
dividing by zero.

PR: kern/75603
MFC after: 1 week

19 years agoAllow user processes to completely empty out their LDT, now that user
peter [Thu, 14 Apr 2005 03:16:58 +0000 (03:16 +0000)]
Allow user processes to completely empty out their LDT, now that user
processes run from segment selectors that live in the GDT.  Doing this
used to be equivalent to committing suicide, but now this is a NOP.

19 years agoAdapt the libpthread patch for using i386_set_gsbase() to libthr.
peter [Thu, 14 Apr 2005 00:44:07 +0000 (00:44 +0000)]
Adapt the libpthread patch for using i386_set_gsbase() to libthr.

19 years agoUse the i386_set_gsbase() syscall if it is implemented in the kernel.
peter [Thu, 14 Apr 2005 00:13:20 +0000 (00:13 +0000)]
Use the i386_set_gsbase() syscall if it is implemented in the kernel.

This is a little hairy here because the allocation and usage of this
functionality is split into two places in libpthread.

19 years agoAttempt to use i386_set_gsbase(), and gracefully fall back to LDT methods
peter [Thu, 14 Apr 2005 00:04:50 +0000 (00:04 +0000)]
Attempt to use i386_set_gsbase(), and gracefully fall back to LDT methods
if the direct access methods are not implemented.

19 years agoAttempt i386_set_gsbase() before using the user_ldt code. Unimplemented
peter [Thu, 14 Apr 2005 00:02:37 +0000 (00:02 +0000)]
Attempt i386_set_gsbase() before using the user_ldt code.  Unimplemented
sysarch() calls return EINVAL, not SIGSYS.. so we can trivially adapt.

19 years agoAdd stubs for the %fs/%gs base management calls.
peter [Thu, 14 Apr 2005 00:01:35 +0000 (00:01 +0000)]
Add stubs for the %fs/%gs base management calls.

19 years ago - Remove a debugging printf that slipped in.
jeff [Wed, 13 Apr 2005 23:36:28 +0000 (23:36 +0000)]
 - Remove a debugging printf that slipped in.

Spotted by: Peter Wemm

19 years agoChange the segment limits to 4GB, we set the user accessible bit on all
peter [Wed, 13 Apr 2005 22:57:17 +0000 (22:57 +0000)]
Change the segment limits to 4GB, we set the user accessible bit on all
of the kernel address space already.  Intel recommend this anyway, because
using a non-4GB limit adds an additional clock cycle to address generation.
We were able to install 4GB segments into the LDT, so any limits we imposed
on %cs and %ds were academic anyway.  More importantly, this allows us to
make a page in the kernel readable to user applications, for holding things
like the signal trampoline and other fun things.

Move the user %cs/%ds segments from the LDT to the GDT.  There was no good
reason for them to be there anyway.  The old LDT entries are still there
but we can now relax the restriction that prevented users from emptying
the default LDT entries.

Putting user and kernel %cs and %ds together allows us to access the fast
sysenter/sysexit/syscall/sysret instructions.  syscall/sysret in particular
require that the user/kernel segments be laid out this way.  Reserve a slot
specifically for NDIS while here.

Create two user controllable slots in the GDT that are context switched
with the (kernel) thread.  This allows user applications to set two
user privilige selectors to arbitary values.  Create
i386_set_fsbase(void *base) and friends. (get/set, fs/gs).  For i386,
%gs is used by tls and the thread libraries and this means that user
processes no longer have to have the cost of having a custom LDT, and
we will no longer to do a ldt switch when activating a kthread/ithread in
the usual case any more.

In other words, we can now set the base address for %fs and %gs to arbitary
addresses without the pain of messing with ldt segments.

19 years agosort and expand the prunelist in a more or less generally sensibly
phk [Wed, 13 Apr 2005 21:22:20 +0000 (21:22 +0000)]
sort and expand the prunelist in a more or less generally sensibly
order.  Put some strategic comments in about how much storage is
necessary and a longer explanation on the top.

It is now pretty trivial to put nanoBSD on as little as a 64MB CF card.

Sponsored by: Soekris Engineering.

19 years agoIntroduce NANOBSD_PRUNE which can be used to zap out bits we don't
phk [Wed, 13 Apr 2005 21:20:16 +0000 (21:20 +0000)]
Introduce NANOBSD_PRUNE which can be used to zap out bits we don't
want to carry forward.

19 years agoUse df -i
phk [Wed, 13 Apr 2005 21:19:28 +0000 (21:19 +0000)]
Use df -i

19 years agoFix mss byte order, only affects synproxy code path.
glebius [Wed, 13 Apr 2005 21:05:55 +0000 (21:05 +0000)]
Fix mss byte order, only affects synproxy code path.

Submitted by: John L. Scarfone via OpenBSD
Reviewed by: mlaier
Obtained from: OpenBSD, rev. 1.483
MFC after: 2 days

19 years agoAdd a few regression tests for printf(1).
stefanf [Wed, 13 Apr 2005 20:08:17 +0000 (20:08 +0000)]
Add a few regression tests for printf(1).

19 years agoAssign 0.0 to the variable passed to getfloating() if the argument is missing.
stefanf [Wed, 13 Apr 2005 19:54:03 +0000 (19:54 +0000)]
Assign 0.0 to the variable passed to getfloating() if the argument is missing.

MFC after: 1 week

19 years agoFix compile error :-(.
imp [Wed, 13 Apr 2005 19:10:27 +0000 (19:10 +0000)]
Fix compile error :-(.

19 years agoFix an evil bug that appeared in September 2003. VM86 bios calls use two
peter [Wed, 13 Apr 2005 18:13:40 +0000 (18:13 +0000)]
Fix an evil bug that appeared in September 2003.  VM86 bios calls use two
of the __pcb_spare longs.  Except that fields were changed and one of the
spare values was used and the __pcb_spare field was reduced from two to one
long.  Now VM86 bios calls can trash the first 4 bytes of the next page
following the kernel stack/pcb.  This Is Bad(TM).  This bug has been
present in 5.2-release and onwards, and is still in RELENG_5.

Instead of tempting fate and trying to use "spare" fields, explicitly
reserve them.

19 years agoTest for NULL before use.
mdodd [Wed, 13 Apr 2005 17:39:43 +0000 (17:39 +0000)]
Test for NULL before use.

Submitted by: sam (Coverity)

19 years agoAdd KASSERT() to warn against NULL deref.
mdodd [Wed, 13 Apr 2005 17:36:18 +0000 (17:36 +0000)]
Add KASSERT() to warn against NULL deref.

Submitted by: sam (Coverity)

19 years agoUse pci_find_bsf() to retrieve the PCI device associated with
bms [Wed, 13 Apr 2005 17:34:38 +0000 (17:34 +0000)]
Use pci_find_bsf() to retrieve the PCI device associated with
a bus/device/function tuple.
This change enables pciconf(8) to work with CardBus devices.

Reviewed by: imp

19 years agoThe maximum allowable alloc is 16K not (16K-1).
julian [Wed, 13 Apr 2005 16:39:22 +0000 (16:39 +0000)]
The maximum allowable alloc is 16K not (16K-1).
This whole section is actually overly restrictive and
another patch is in the works.

19 years agoSince cbb implements the pcib_ interface, it must also implement the
imp [Wed, 13 Apr 2005 16:35:15 +0000 (16:35 +0000)]
Since cbb implements the pcib_ interface, it must also implement the
pcib_route_interrupt interface.  Since there's only one interrupt pin
in the CardBus form factor, everybody gets to share it.  Implement
cbb_route_interrupt to return the interrupt we have.

Suggested by: bms

19 years agoDefault to a interrupt router that returns an invalid interrupt.
imp [Wed, 13 Apr 2005 16:30:30 +0000 (16:30 +0000)]
Default to a interrupt router that returns an invalid interrupt.
Otherwise, busses that implement the pcib interface that forget to
implement pcib_route_interrupt would return EIO, which the caller
interprets as 'use interrupt 6'.  This is likely the cause of much of
the grief that we had when I enabled power modes for the cardbus
bridge, since the card needed to reroute the interrupt to it and it
was getting 6 which was d by the pccbb sanity checks.

19 years agopmap_update() is gone.
cognet [Wed, 13 Apr 2005 16:02:03 +0000 (16:02 +0000)]
pmap_update() is gone.

19 years agoNever hardcode /sys into these Makefiles. The proper way to spell it is $S.
imp [Wed, 13 Apr 2005 14:49:57 +0000 (14:49 +0000)]
Never hardcode /sys into these Makefiles.  The proper way to spell it is $S.

Also, move the -I stuff to the centralized kern.pre.mk.  However, it
might be better to add these flags to files.conf.  This is a short
term fix to fix the broken builds on my machine (I don't have a valid
/sys link).

19 years agoNG_MKRESPONSE() macro includes sizeof struct ng_mesg when doing allocation.
glebius [Wed, 13 Apr 2005 14:03:28 +0000 (14:03 +0000)]
NG_MKRESPONSE() macro includes sizeof struct ng_mesg when doing allocation.

PR: kern/79806
Submitted by: Wojciech A. Koszek

19 years agoAccording to the comment in struct tty, t_modem is optional; hence we should
avatar [Wed, 13 Apr 2005 13:56:17 +0000 (13:56 +0000)]
According to the comment in struct tty, t_modem is optional; hence we should
guard against NULL t_modem entry. Otherwise, driver doesn't have t_modem
callback implemented(such like sys/dev/usb/ucycom.c) would panic when
someone opens the driver's associated tty device.

Reviewed by: phk, sam (mentor)

19 years agoMerge two slice_type_name() functions.
nyan [Wed, 13 Apr 2005 13:42:38 +0000 (13:42 +0000)]
Merge two slice_type_name() functions.

19 years ago- Remove ifdef PC98.
nyan [Wed, 13 Apr 2005 13:26:48 +0000 (13:26 +0000)]
- Remove ifdef PC98.
- Reduce diffs from i386.

19 years agoRemove a meaningless include.
nyan [Wed, 13 Apr 2005 13:18:32 +0000 (13:18 +0000)]
Remove a meaningless include.

19 years agoMove pc98 specific parts to the pc98 specific file.
nyan [Wed, 13 Apr 2005 13:12:12 +0000 (13:12 +0000)]
Move pc98 specific parts to the pc98 specific file.

19 years agoRemove ifdef PC98.
nyan [Wed, 13 Apr 2005 13:02:58 +0000 (13:02 +0000)]
Remove ifdef PC98.

19 years agoSplit VarFind() into a series of functions tailored for the different sets
harti [Wed, 13 Apr 2005 11:40:44 +0000 (11:40 +0000)]
Split VarFind() into a series of functions tailored for the different sets
of flags originally passed to VarFind(). This eliminates the code by
removing a bunch of tests.

Patch: 7.173

Submitted by: Max Okumoto <okumoto@ucsd.edu>

19 years ago - Change all filesystems and vfs_cache to relock the dvp once the child is
jeff [Wed, 13 Apr 2005 10:59:09 +0000 (10:59 +0000)]
 - Change all filesystems and vfs_cache to relock the dvp once the child is
   locked in the ISDOTDOT case.  Se vfs_lookup.c r1.79 for details.

Sponsored by: Isilon Systems, Inc.

19 years ago - Change vop_lookup_post assertions to reflect recent vfs_lookup changes.
jeff [Wed, 13 Apr 2005 10:57:53 +0000 (10:57 +0000)]
 - Change vop_lookup_post assertions to reflect recent vfs_lookup changes.

Sponsored by: Isilon Systems, Inc.

19 years ago - Further simplify lookup; Force all filesystems to relock in the DOTDOT
jeff [Wed, 13 Apr 2005 10:57:13 +0000 (10:57 +0000)]
 - Further simplify lookup; Force all filesystems to relock in the DOTDOT
   case.  There are bugs in some which didn't unlock in the ISDOTDOT case
   to begin with that need to be addressed seperately.  This simplifies
   things anyway.
 - Fix relookup() to prevent it from vrele()'ing the dvp while the vp
   is locked.  Catch up to other lookup changes.

Sponsored by: Isilon Systems, Inc.
Reported by: Peter Wemm

19 years agoAdd NO_DICT handle. Saves almost 3.5 MB installed.
phk [Wed, 13 Apr 2005 10:02:58 +0000 (10:02 +0000)]
Add NO_DICT handle.  Saves almost 3.5 MB installed.

19 years agoAdd #defines for control fields and address bits.
mdodd [Wed, 13 Apr 2005 08:14:14 +0000 (08:14 +0000)]
Add #defines for control fields and address bits.

19 years agoSupport for the GTCO Digipad.
mdodd [Wed, 13 Apr 2005 07:25:45 +0000 (07:25 +0000)]
Support for the GTCO Digipad.

19 years agoAdd a ata_setmode method so we dont panic on setmode.
sos [Wed, 13 Apr 2005 07:14:17 +0000 (07:14 +0000)]
Add a ata_setmode method so we dont panic on setmode.
Note that the mode is only set on the device, we (mostly) have
no knowledge on how to set mode on the controller if at all possible.

19 years agoAdd the -S flag which produces the -s output without
mdodd [Wed, 13 Apr 2005 07:11:54 +0000 (07:11 +0000)]
Add the -S flag which produces the -s output without
mixing field separators.

19 years agoShow descriptions for type CTLTYPE_NODES.
mdodd [Wed, 13 Apr 2005 06:59:07 +0000 (06:59 +0000)]
Show descriptions for type CTLTYPE_NODES.

19 years agoZero buffers. Seatbelt against sysctl(3) returning non-NUL terminated
mdodd [Wed, 13 Apr 2005 06:56:31 +0000 (06:56 +0000)]
Zero buffers.  Seatbelt against sysctl(3) returning non-NUL terminated
string data.

19 years agoMake it clear that the statement following the conditional is a NOP.
mdodd [Wed, 13 Apr 2005 06:42:43 +0000 (06:42 +0000)]
Make it clear that the statement following the conditional is a NOP.

19 years ago Data is not information;
phk [Wed, 13 Apr 2005 06:11:49 +0000 (06:11 +0000)]
Data is not information;
Information is not knowledge;
Knowledge is not wisdom
-- Gary Flake

19 years agoFollow i386's suit and include AGP support in the generic kernel.
anholt [Wed, 13 Apr 2005 06:00:07 +0000 (06:00 +0000)]
Follow i386's suit and include AGP support in the generic kernel.

19 years agoAdd support for more than two datasets. Currently limited to 7 though
mdodd [Wed, 13 Apr 2005 05:50:56 +0000 (05:50 +0000)]
Add support for more than two datasets.  Currently limited to 7 though
the limit is only the number of meaningful graph symbols available.

Statistical comparison is performed between the first dataset and
any further datasets.

No objection by:  phk

19 years agoDefine additional commands.
mdodd [Wed, 13 Apr 2005 05:09:49 +0000 (05:09 +0000)]
Define additional commands.

Obtained from:  Linux

19 years agoWhitespace cleanup.
mdodd [Wed, 13 Apr 2005 05:06:57 +0000 (05:06 +0000)]
Whitespace cleanup.

19 years agoRemove unnecessary dpt_free().
mdodd [Wed, 13 Apr 2005 05:03:14 +0000 (05:03 +0000)]
Remove unnecessary dpt_free().

19 years ago o Code cleanup, eliminate private thread id map, directly
davidxu [Wed, 13 Apr 2005 04:57:38 +0000 (04:57 +0000)]
 o Code cleanup, eliminate private thread id map, directly
   use lwpid as thread id.
 o Export tls pointer.