]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoAdd a link to the hubs article, at the part that talks about setting
keramida [Mon, 25 Feb 2002 19:51:34 +0000 (19:51 +0000)]
Add a link to the hubs article, at the part that talks about setting
up FreeBSD mirrors.

Reviewed by: bmah

22 years agoAdd myself.
jmallett [Mon, 25 Feb 2002 19:48:04 +0000 (19:48 +0000)]
Add myself.

Reviewed by: mike
Approved by: mike

22 years agoImplement a nested window state. This avoids attempting to spill a user
jake [Mon, 25 Feb 2002 18:37:17 +0000 (18:37 +0000)]
Implement a nested window state.  This avoids attempting to spill a user
window to the user stack while in a nested kernel trap.  We do this for
entry to the kernel from user mode, but if we get an interrupt in kernel
mode while there are still user windows in the cpu, and we attempt to spill
to the user stack, we may take too many nested traps and overflow the trap
stack, causing a red state exception.  This is needed by upcoming changes
to allow the user tsb to not be locked in the tlb.

Reviewed by: tmm

22 years agoPer POSIX <grp.h> doesn't require <sys/types.h>.
sobomax [Mon, 25 Feb 2002 17:20:40 +0000 (17:20 +0000)]
Per POSIX <grp.h> doesn't require <sys/types.h>.

Submitted by: ache

22 years agoRewrite the part of the conversation function that allocates the reply array;
des [Mon, 25 Feb 2002 16:39:34 +0000 (16:39 +0000)]
Rewrite the part of the conversation function that allocates the reply array;
it was inelegant and neglected to check the return value from malloc(3).

Sponsored by: DARPA, NAI Labs

22 years agoBackout rev.1.5 - it seems that it's posixly correct that the program
sobomax [Mon, 25 Feb 2002 13:55:47 +0000 (13:55 +0000)]
Backout rev.1.5 - it seems that it's posixly correct that the program
needs to include <sys/types.h> before <grp.h>.

Submitted by: fjoe, sheldonh
David Malone <dwmalone@maths.tcd.ie>

22 years agoIn rev.1.4 type of (group)->gr_gid was changes from (int) to (gid_t),
sobomax [Mon, 25 Feb 2002 13:24:02 +0000 (13:24 +0000)]
In rev.1.4 type of (group)->gr_gid was changes from (int) to (gid_t),
so that <sys/types.h> is now required. Add it, otherwise it breaks
some ports.

Submitted by: Joe Marcus Clarke <marcus@marcuscom.com>

22 years ago#include <time.h> for the definition of time functions instead of
bde [Mon, 25 Feb 2002 12:02:03 +0000 (12:02 +0000)]
#include <time.h> for the definition of time functions instead of
depending on namespace pollution 2 layers deep in <sys/stat.h>.

Sorted includes.

22 years agoAdd a few missing commas.
murray [Mon, 25 Feb 2002 10:27:51 +0000 (10:27 +0000)]
Add a few missing commas.

22 years agoAdd a new test_counter() function which tries to determine the width of
phk [Mon, 25 Feb 2002 09:51:17 +0000 (09:51 +0000)]
Add a new test_counter() function which tries to determine the width of
the inter-value histogram for 2000 samples.  If the width is 3 or less
for 10 consequtive samples, we trust the counter to be good, otherwise
we use the *_safe() method.

This method may be too strict, but the worst which can happen is that
we take the performance hit of the *_safe() method when we should not.

Make the *_safe() method more discriminating by mandating that the three
samples do not span more than 15 ticks on the counter.

Disable the PCI-ident based probing as a means to recognize good
counters.

Inspiration from: dillon and msmith

22 years agoDocument what inpcb->inp_vflag is for.
alfred [Mon, 25 Feb 2002 09:41:43 +0000 (09:41 +0000)]
Document what inpcb->inp_vflag is for.

Submitted by: Marco Molteni <molter@tin.it>

22 years agoFix a bug introduced in rev.1.23 - for some reason mkdir("/", ...) system
sobomax [Mon, 25 Feb 2002 09:17:44 +0000 (09:17 +0000)]
Fix a bug introduced in rev.1.23 - for some reason mkdir("/", ...) system
call returns `EISDIR', not `EEXIST', so that be prepared for that. This should
fix number of ports, that often call `mkdir -p //usr/local/foobar'. This
is just a quick workaround, the real fix would be either to avoid calling
mkdir("/", ...) or fix VFS code to return consistent errno for this case.

22 years agoThe TCP code did not do sufficient checks on whether incoming packets
cjc [Mon, 25 Feb 2002 08:29:21 +0000 (08:29 +0000)]
The TCP code did not do sufficient checks on whether incoming packets
were destined for a broadcast IP address. All TCP packets with a
broadcast destination must be ignored. The system only ignored packets
that were _link-layer_ broadcasts or multicast. We need to check the
IP address too since it is quite possible for a broadcast IP address
to come in with a unicast link-layer address.

Note that the check existed prior to CSRG revision 7.35, but was
removed. This commit effectively backs out that nine-year-old change.

PR: misc/35022

22 years ago#include <time.h> for the definition of time functions instead of
bde [Mon, 25 Feb 2002 07:39:34 +0000 (07:39 +0000)]
#include <time.h> for the definition of time functions instead of
depending on namespace pollution 2 layers deep in <sys/stat.h>.

Removed unused include of <sys/stat.h>.  Only its pollution was used.

22 years agoAdd some basic FreeBSD/sparc64 Hardware Notes.
murray [Mon, 25 Feb 2002 07:25:38 +0000 (07:25 +0000)]
Add some basic FreeBSD/sparc64 Hardware Notes.

Reviewed by: jake, tmm

22 years agoTypo fix: missing ;.
matusita [Mon, 25 Feb 2002 05:35:39 +0000 (05:35 +0000)]
Typo fix: missing ;.

Pointed out by: Manfred Antar <null@pozo.com>
Pointy hat to: matusita

22 years ago#include <time.h> for the definition of time functions instead of
bde [Mon, 25 Feb 2002 05:31:49 +0000 (05:31 +0000)]
#include <time.h> for the definition of time functions instead of
depending on namespace pollution 2 layers deep in <sys/stat.h>.

22 years ago#include <sys/time.h> instead of depending on namespace pollution in
bde [Mon, 25 Feb 2002 05:23:59 +0000 (05:23 +0000)]
#include <sys/time.h> instead of depending on namespace pollution in
<sys/stat.h> for the declaration of struct timeval.

22 years ago#include <sys/time.h> instead of depending on namespace pollution in
bde [Mon, 25 Feb 2002 05:16:22 +0000 (05:16 +0000)]
#include <sys/time.h> instead of depending on namespace pollution in
<sys/stat.h> for the declaration of struct timeval.  Intentionally
don't follow the local style of polluting the local headers.

22 years agoUnremoved used includes. <sys/time.h> is needed if <sys/stat.h> isn't
bde [Mon, 25 Feb 2002 05:09:12 +0000 (05:09 +0000)]
Unremoved used includes.  <sys/time.h> is needed if <sys/stat.h> isn't
polluted, and <sys/types.h> is strictly a prerequisite for <sys/stat.h>
untiil we drop support for pre-2001 versions of POSIX.

22 years ago#include <sys/time.h> instead of depending on namespace pollution in
bde [Mon, 25 Feb 2002 05:00:39 +0000 (05:00 +0000)]
#include <sys/time.h> instead of depending on namespace pollution in
<sys/stat.h> for the declaration of struct timeval.

Removed unused includes (<time.h> doesn't declare anything of interest;
only <sys/time.h> does).

Sorted includes a bit.

22 years agoModify the tte format to not include the tlb context number and to store the
jake [Mon, 25 Feb 2002 04:56:50 +0000 (04:56 +0000)]
Modify the tte format to not include the tlb context number and to store the
virtual page number in a much more convenient way; all in one piece.  This
greatly simplifies the comparison for a matching tte, and allows the fault
handlers to be much simpler due to not having to load wierd masks.
Rewrite the tlb fault handlers to account for the new format.  These are also
written to allow faults on the user tsb inside of the fault handlers; the
kernel fault handler must be aware of this and not clobber the other's
registers.  The faults do not yet occur due to other support that is needed
(and still under my desk).

Bug fixes from: tmm

22 years agoImprove grep'ing for variables in make.conf and rc.conf*.
dougb [Mon, 25 Feb 2002 04:52:56 +0000 (04:52 +0000)]
Improve grep'ing for variables in make.conf and rc.conf*.
Thanks to cjc for the idea.

22 years agoUse the default 'ld' emulation rather than hard coding it.
obrien [Mon, 25 Feb 2002 04:49:17 +0000 (04:49 +0000)]
Use the default 'ld' emulation rather than hard coding it.
For FreeBSD, 'ld' 2.12.0 uses a different emulation than in the past.
So this change makes the upgrade easier.

22 years ago#include <sys/time.h> instead of depending on namespace pollution in
bde [Mon, 25 Feb 2002 04:47:39 +0000 (04:47 +0000)]
#include <sys/time.h> instead of depending on namespace pollution in
<sys/stat.h> for the declaration of struct timeval (sys/stat.h> only
needs timespecs even when its POSIX support is not turned on, so it
shouldn't declare timevals).

Fixed some #include messes.

22 years agoDeclare time(not3) instead of depending on namespace pollution 3 layers
bde [Mon, 25 Feb 2002 04:31:25 +0000 (04:31 +0000)]
Declare time(not3) instead of depending on namespace pollution 3 layers
deep in <stand.h> to eventually include <time.h> to declare the user
version.

This is not quite the right place to declare it, but <stand.h> would
be worse because time() is very MD so it isn't in libstand.

Many places in the boot sources still get the user version using only
1 layer of pollution (#include <sys/time.h>.  Some pollute themselves
directly (#include <time.h>).  But the boot Makefiles are too broken
to enable warnings for redeclarations.

22 years agoRemoved mounds of unused variables.
bde [Mon, 25 Feb 2002 03:45:09 +0000 (03:45 +0000)]
Removed mounds of unused variables.

22 years ago#include <sys/time.h> instead of depending on namespace pollution in
bde [Mon, 25 Feb 2002 03:36:06 +0000 (03:36 +0000)]
#include <sys/time.h> instead of depending on namespace pollution in
<sys/stat.h> for its prerequisite <sys/time.h>.

#include <sys/param.h> in the correct place instead of bogusly including
<sys/types.h>.

22 years ago#include <sys/time.h> instead of depending on namespace pollution in
bde [Mon, 25 Feb 2002 02:30:04 +0000 (02:30 +0000)]
#include <sys/time.h> instead of depending on namespace pollution in
<sys/stat.h> for its prerequisite <sys/time.h>.

Removed a duplicated include.  Sorted includes.

22 years agoThe thermal thread needs to take Giant before it does anything with the
msmith [Mon, 25 Feb 2002 02:21:22 +0000 (02:21 +0000)]
The thermal thread needs to take Giant before it does anything with the
interpreter.

Submitted by: Magnus B{ckstr|m <b@etek.chalmers.se>

22 years agoRemoved unused include of <sys/resource.h> instead of depending on
bde [Mon, 25 Feb 2002 02:18:36 +0000 (02:18 +0000)]
Removed unused include of <sys/resource.h> instead of depending on
namespace pollution only 1 layer deep in <sys/stat.h> for its
prerequisite <sys/time.h>

Removed other unused includes.

22 years ago#include <time.h> for the definition of time functions instead of
bde [Mon, 25 Feb 2002 01:50:43 +0000 (01:50 +0000)]
#include <time.h> for the definition of time functions instead of
depending on namespace pollution 2 layers deep in <sys/stat.h>.

Sorted includes.  Removed some unused includes.

22 years ago#include <time.h> for the definition of time functions instead of
bde [Mon, 25 Feb 2002 01:36:59 +0000 (01:36 +0000)]
#include <time.h> for the definition of time functions instead of
depending on namespace pollution 2 layers deep in <sys/stat.h>.

Removed unused includes.

22 years ago#include <stddef.h> for the definition of NULL instead of depending on
bde [Mon, 25 Feb 2002 01:25:30 +0000 (01:25 +0000)]
#include <stddef.h> for the definition of NULL instead of depending on
namespace pollution 2 layers deep in <sys/stat.h>.

Sorted includes.

22 years agoSockets passed into uipc_abort() have been allocated by sonewconn()
iedowse [Mon, 25 Feb 2002 00:03:34 +0000 (00:03 +0000)]
Sockets passed into uipc_abort() have been allocated by sonewconn()
but never accept'ed, so they must be destroyed. Originally, unp_drop()
detected this situation by checking if so->so_head is non-NULL.
However, since revision 1.54 of uipc_socket.c (Feb 1999), so->so_head
is set to NULL before calling soabort(), so any unix-domain sockets
waiting to be accept'ed are leaked if the server socket is closed.

Resolve this by moving the socket destruction code into uipc_abort()
itself, and making it unconditional (the other caller of unp_drop()
never needs the socket to be destroyed). Use unp_detach() to avoid
the original code duplication when destroying the socket.

PR: kern/17895
Reviewed by: dwmalone (an earlier version of the patch)
MFC after: 1 week

22 years agoCorrect name spelling for one of the people who share my birthday.
grog [Sun, 24 Feb 2002 23:59:57 +0000 (23:59 +0000)]
Correct name spelling for one of the people who share my birthday.

PR: docs/35274
Submitted by: nivit@libero.it (Nicola Vitale)

22 years agoMFen (1.283 --> 2.286).
kuriyama [Sun, 24 Feb 2002 23:54:59 +0000 (23:54 +0000)]
MFen (1.283 --> 2.286).

22 years agoMake atomic_cmpset_32 correctly return 0 on failure.
benno [Sun, 24 Feb 2002 23:31:49 +0000 (23:31 +0000)]
Make atomic_cmpset_32 correctly return 0 on failure.

22 years agoFix style bugs:
alfred [Sun, 24 Feb 2002 23:24:01 +0000 (23:24 +0000)]
Fix style bugs:
Missing `const' qualifier.
Initialization in declaration.

Submitted by: mike

22 years agoTests by numerous people have shown that many chipsets do not properly
dillon [Sun, 24 Feb 2002 22:58:15 +0000 (22:58 +0000)]
Tests by numerous people have shown that many chipsets do not properly
latch the acpi timer, resulting in weird deltas.  The problem is severe
enough to adversely effect the timecounter code.

Default to the 'safe' version of the get-timecount function.  The probe
will override it if a known-good chipset is found.  This is temporary
until a more complete solution is found.

Reviewed by: phk

22 years agobump __FreeBSD_version for usb structure rename.
alfred [Sun, 24 Feb 2002 22:45:33 +0000 (22:45 +0000)]
bump __FreeBSD_version for usb structure rename.

22 years agoGive a little more information as to why pnp configuration of a device
alfred [Sun, 24 Feb 2002 22:27:54 +0000 (22:27 +0000)]
Give a little more information as to why pnp configuration of a device
may have failed.

Submitted by: Terry Lambert <tlambert2@mindspring.com>

22 years agoRevert revision 1.11. FreeBSD/alpha has suppport for T/TCP.
mike [Sun, 24 Feb 2002 22:24:57 +0000 (22:24 +0000)]
Revert revision 1.11.  FreeBSD/alpha has suppport for T/TCP.

MFC after: 1 week

22 years agoAdd a generation number to timecounters and spin if it changes under
phk [Sun, 24 Feb 2002 20:04:07 +0000 (20:04 +0000)]
Add a generation number to timecounters and spin if it changes under
our feet when we look inside timecounter structures.

Make the "sync_other" code more robust by never overwriting the
tc_next field.

Add counters for the bin[up]time functions.

Call tc_windup() in tc_init() and switch_timecounter() to make sure
we all the fields set right.

22 years agoFix a typo (?) in previous commit told ttyprintf() to print the integer
phk [Sun, 24 Feb 2002 19:56:41 +0000 (19:56 +0000)]
Fix a typo (?) in previous commit told ttyprintf() to print the integer
part of the user-time as a 64bit quantity.  This resulted in weird
output from SIGINFO.

22 years agoSync with the Alpha's GENERIC configuration.
obrien [Sun, 24 Feb 2002 18:49:38 +0000 (18:49 +0000)]
Sync with the Alpha's GENERIC configuration.
Most of the contents are commented out as they are as-yet untested.
However, I wanted the contents to match our other arches, so that when
people make changes to {i386,alpha,ia64}, they will also make the same
changes here.

22 years agoAdd a definition for mode page 0x2a "CD capabilities and mechanical
joerg [Sun, 24 Feb 2002 13:27:57 +0000 (13:27 +0000)]
Add a definition for mode page 0x2a "CD capabilities and mechanical
status page".

22 years agoFinish phk's previous removal of BIO_ORDERED, all code that
sos [Sun, 24 Feb 2002 12:28:24 +0000 (12:28 +0000)]
Finish phk's previous removal of BIO_ORDERED, all code that
depended on ATA_FLUSHCACHE_ON is now useless.

22 years ago* Add a feature to do a "pre {build|install}world" check of (so far)
dougb [Sun, 24 Feb 2002 10:22:14 +0000 (10:22 +0000)]
* Add a feature to do a "pre {build|install}world" check of (so far)
master.passwd, group, and make.conf
* Add a feature to check variables in rc.conf[.local] to their
counterparts in /etc/defaults/rc.conf after a run
* Twiddle whitespace a little
* Change some "[ -f file ] && rm file" to "rm -f file"

22 years agoMove some debugger-only symbols around; this patch didn't make it into
msmith [Sun, 24 Feb 2002 07:51:46 +0000 (07:51 +0000)]
Move some debugger-only symbols around; this patch didn't make it into
the commit resolution for some reason.  Fixes ACPI_DEBUG.

22 years agoUse libgcc_p.a when -pg is in effect.
obrien [Sun, 24 Feb 2002 06:05:22 +0000 (06:05 +0000)]
Use libgcc_p.a when -pg is in effect.

I am committing this here rather than in gcc/config/freebsd.h because the
profiled libgcc only exists with the native system compiler.  It is not
created by a stock FSF build and we will never be able to get these bits
committed to the FSF CVS repo.  Thus this is very much a FreeBSD "native"
issue.

22 years agoctags would create a corrupt tags file if the source C file used '//' style
gshapiro [Sun, 24 Feb 2002 03:02:52 +0000 (03:02 +0000)]
ctags would create a corrupt tags file if the source C file used '//' style
comments such as:

// The main() function

Teach ctags about this style of commenting.

Submitted by: Eric Allman <eric@Sendmail.ORG>
MFC after: 1 week

22 years agoMake sure we don't remove /etc/mail/sendmail.cf on make clean since this
gshapiro [Sun, 24 Feb 2002 02:38:23 +0000 (02:38 +0000)]
Make sure we don't remove /etc/mail/sendmail.cf on make clean since this
will break a running system during a buildworld.

Noticed by: Alexandr Listopad <laa@laa.zp.ua>
MFC after: 1 week

22 years agoAdd a sysctl, sysctl hw.snd.report_soft_formats, that controls whether the
des [Sun, 24 Feb 2002 00:49:43 +0000 (00:49 +0000)]
Add a sysctl, sysctl hw.snd.report_soft_formats, that controls whether the
AIOGCAP ioctl reports software-emulated formats.  It defaults to on.  People
who use performance-sensitive audio software and do not want it to pick a
software-emulated audio format instead of one supported by their hardware
should turn it off.

This unbreaks isdnphone(1) on systems with PCM-only sound cards.

Approved by: cg

22 years agoAdding infrastructure for translation for alpha dir
gioria [Sat, 23 Feb 2002 23:03:20 +0000 (23:03 +0000)]
Adding infrastructure for  translation for alpha dir

22 years agoFix LINT breakage by adding a missing include.
tmm [Sat, 23 Feb 2002 22:55:47 +0000 (22:55 +0000)]
Fix LINT breakage by adding a missing include.

22 years agoAdd PMAP_STATS option so pmap.c compiles.
jake [Sat, 23 Feb 2002 22:35:57 +0000 (22:35 +0000)]
Add PMAP_STATS option so pmap.c compiles.

22 years agoAdd SIIG Cyber Serial Dual PCI 16C550 to the list of puc(4)-supported
bmah [Sat, 23 Feb 2002 22:28:17 +0000 (22:28 +0000)]
Add SIIG Cyber Serial Dual PCI 16C550 to the list of puc(4)-supported
cards.

22 years agoMake use of the ranged tlb demap operations where ever possible. Use
jake [Sat, 23 Feb 2002 22:18:15 +0000 (22:18 +0000)]
Make use of the ranged tlb demap operations where ever possible.  Use
pmap_qenter and pmap_qremove in preference to pmap_kenter/pmap_kremove.
The former maps in multiple pages at a time, and so can do a ranged
flush.  Don't assume that pmap_kenter and pmap_kremove will flush the tlb,
even though they still do.  It will not once the MI code is updated to use
pmap_qenter and pmap_qremove.

22 years agoAdd needed include of ucontext.h.
jake [Sat, 23 Feb 2002 22:03:25 +0000 (22:03 +0000)]
Add needed include of ucontext.h.

22 years agoInitialize the libc user trap handlers before passing control non-startup
tmm [Sat, 23 Feb 2002 21:47:20 +0000 (21:47 +0000)]
Initialize the libc user trap handlers before passing control non-startup
code, so that the userland fp emulator will work.

22 years agoAdd userland floating point emulator code for sparc64. This is a port
tmm [Sat, 23 Feb 2002 21:37:18 +0000 (21:37 +0000)]
Add userland floating point emulator code for sparc64. This is a port
of the (never committed) in-kernel version (with some optimizations and
cleanups), which in turn was ported from NetBSD.

22 years agoFix namespace pollution introduced in previous commit.
des [Sat, 23 Feb 2002 21:14:43 +0000 (21:14 +0000)]
Fix namespace pollution introduced in previous commit.

22 years agoAdd inlines for demapping a range of pages from the itlb and dtlb. This
jake [Sat, 23 Feb 2002 21:10:06 +0000 (21:10 +0000)]
Add inlines for demapping a range of pages from the itlb and dtlb.  This
will be used to reduce the number of tlb shootdown ipis in an smp system
by sending one ipi for a whole range of pages, instead of one per page.
Munge the context demap operations slightly to support demapping a non-primary
context.

22 years agoFixed unsorting.
bde [Sat, 23 Feb 2002 21:00:14 +0000 (21:00 +0000)]
Fixed unsorting.

22 years agoUse intr_disable/intr_restore instead of TLB_ATOMIC_START/END.
jake [Sat, 23 Feb 2002 20:59:35 +0000 (20:59 +0000)]
Use intr_disable/intr_restore instead of TLB_ATOMIC_START/END.

Submitted by: tmm

22 years agoUse PCB_REG instead of loading the pcb from curthread. This fixes a bug
jake [Sat, 23 Feb 2002 20:54:01 +0000 (20:54 +0000)]
Use PCB_REG instead of loading the pcb from curthread.  This fixes a bug
where %g6 could be inconsistent for 1 instruction.

22 years agoAdapt the tsb_foreach interface to take a source and a destination pmap so
jake [Sat, 23 Feb 2002 20:25:20 +0000 (20:25 +0000)]
Adapt the tsb_foreach interface to take a source and a destination pmap so
that it can be used for pmap_copy.  Other consumers ignore the second pmap.
Add statistics gathering for tsb_foreach.
Implement pmap_copy.

22 years agoAdd statistic gathering for various tsb operations.
jake [Sat, 23 Feb 2002 20:11:11 +0000 (20:11 +0000)]
Add statistic gathering for various tsb operations.

Submitted by: tmm

22 years agoRemove debug code.
jake [Sat, 23 Feb 2002 20:08:06 +0000 (20:08 +0000)]
Remove debug code.

22 years agoAdd statistic gathering for various pmap operations.
jake [Sat, 23 Feb 2002 20:06:19 +0000 (20:06 +0000)]
Add statistic gathering for various pmap operations.

Submitted by: tmm

22 years agoRemove CADDR1 and CADDR2 which are no longer used. On other architectures
jake [Sat, 23 Feb 2002 20:00:33 +0000 (20:00 +0000)]
Remove CADDR1 and CADDR2 which are no longer used.  On other architectures
these are used for copy and zeroing physical pages; we use physical addresses
directly.

22 years agoAdd macros to extract the UPA module id from the UPA config register.
jake [Sat, 23 Feb 2002 19:54:34 +0000 (19:54 +0000)]
Add macros to extract the UPA module id from the UPA config register.
This is the hardware cpuid.

22 years agoSync this up to recent changes to our (userland) thread structure.
deischen [Sat, 23 Feb 2002 19:28:01 +0000 (19:28 +0000)]
Sync this up to recent changes to our (userland) thread structure.

22 years agoAdd ifdefs for sparc64.
jake [Sat, 23 Feb 2002 19:05:26 +0000 (19:05 +0000)]
Add ifdefs for sparc64.

22 years agoFix wrong offsets. Add offsets for %fsr and %tstate.
jake [Sat, 23 Feb 2002 19:01:22 +0000 (19:01 +0000)]
Fix wrong offsets.  Add offsets for %fsr and %tstate.

Submitted by: tmm

22 years agoAdd space for %fsr and %tstate to utrapframe. Save them in the generic
jake [Sat, 23 Feb 2002 19:00:30 +0000 (19:00 +0000)]
Add space for %fsr and %tstate to utrapframe.  Save them in the generic
user trap entry code.  Restore %asi and %ccr from the saved %tstate before
returning to the trapping user code.

Submitted by: tmm

22 years ago1. Setup the user stack pointer before returning to a user trap handler.
jake [Sat, 23 Feb 2002 18:55:21 +0000 (18:55 +0000)]
1. Setup the user stack pointer before returning to a user trap handler.
   If we don't do this here there's a 1 instruction race where an interrupt
   could come in and crash the user process due to having no stack.
2. Pass %fsr to the user trap handler in %l4.  Since %fsr can only be loaded
   from or stored to memory, we need to do some contortions and temporarily
   save it to the alternate global stack.
3. Reload the pcb and pcpu registers for traps in kernel mode, for sanity.

Submitted by: tmm (1, 2)

22 years agoInclude intr_machdep.h only for !LOCORE.
jake [Sat, 23 Feb 2002 18:41:34 +0000 (18:41 +0000)]
Include intr_machdep.h only for !LOCORE.

22 years agoAdd needed include of ucontext.h. Fix braino setting curpcb.
jake [Sat, 23 Feb 2002 18:39:09 +0000 (18:39 +0000)]
Add needed include of ucontext.h.  Fix braino setting curpcb.

22 years agoAdd metadata types for dtlb and itlb data, and number of slots used.
jake [Sat, 23 Feb 2002 17:43:44 +0000 (17:43 +0000)]
Add metadata types for dtlb and itlb data, and number of slots used.

22 years agoFixed some style bugs in revs 1.1 and 1.4.
bde [Sat, 23 Feb 2002 17:05:32 +0000 (17:05 +0000)]
Fixed some style bugs in revs 1.1 and 1.4.

22 years agoUse the regular expression form to solve the ambiguous card parameters
iwasaki [Sat, 23 Feb 2002 16:38:45 +0000 (16:38 +0000)]
Use the regular expression form to solve the ambiguous card parameters
which have tailing spaces.
Some card entries had problem because of incorrect number of spaces.

Approved by: imp
MFC after: 1 week

22 years agoLong overdue whitespace cleanup. To give yourself an idea of how
cjc [Sat, 23 Feb 2002 11:59:42 +0000 (11:59 +0000)]
Long overdue whitespace cleanup. To give yourself an idea of how
ugly it was,

  $ awk '/[[:space:]]$/ { sub(/$/,"\$"); print; }' /etc/services

On the previous revision. And that's only the trailing whitespace.

22 years agoLock struct pgrp, session and sigio.
tanimura [Sat, 23 Feb 2002 11:12:57 +0000 (11:12 +0000)]
Lock struct pgrp, session and sigio.

New locks are:

- pgrpsess_lock which locks the whole pgrps and sessions,
- pg_mtx which protects the pgrp members, and
- s_mtx which protects the session members.

Please refer to sys/proc.h for the coverage of these locks.

Changes on the pgrp/session interface:

- pgfind() needs the pgrpsess_lock held.

- The caller of enterpgrp() is responsible to allocate a new pgrp and
  session.

- Call enterthispgrp() in order to enter an existing pgrp.

- pgsignal() requires a pgrp lock held.

Reviewed by: jhb, alfred
Tested on: cvsup.jp.FreeBSD.org
(which is a quad-CPU machine running -current)

22 years agoKeep track of the ttes used to map the kernel and pass them to it as loader
jake [Sat, 23 Feb 2002 11:06:37 +0000 (11:06 +0000)]
Keep track of the ttes used to map the kernel and pass them to it as loader
metadata.  Modify tlb handling functions to take a tte, instead of virtual
address, physical address and flags.

22 years agoBDECFLAGS
billf [Sat, 23 Feb 2002 10:44:04 +0000 (10:44 +0000)]
BDECFLAGS

Reviewed by: md5(1)

22 years agoKNF -> ANSI function declarations
billf [Sat, 23 Feb 2002 10:35:25 +0000 (10:35 +0000)]
KNF -> ANSI function declarations

Reviewed by: md5(1)

22 years agoKNF to ANSI function declaration, silence a warning
billf [Sat, 23 Feb 2002 10:21:19 +0000 (10:21 +0000)]
KNF to ANSI function declaration, silence a warning

22 years agowarning fixes, mostly type matching
billf [Sat, 23 Feb 2002 09:59:45 +0000 (09:59 +0000)]
warning fixes, mostly type matching

22 years agoconvert from KNR to ANSI function declarations
billf [Sat, 23 Feb 2002 09:53:27 +0000 (09:53 +0000)]
convert from KNR to ANSI function declarations

Reviewed by: md5(1)

22 years agoGrrr. Got the wrong date on the last ACPI update. Fix this before
bmah [Sat, 23 Feb 2002 06:00:56 +0000 (06:00 +0000)]
Grrr.  Got the wrong date on the last ACPI update.  Fix this before
someone else notices.

22 years agoUpdated release note: ACPI 20020207. While I'm here, correct an
bmah [Sat, 23 Feb 2002 05:58:52 +0000 (05:58 +0000)]
Updated release note:  ACPI 20020207.  While I'm here, correct an
awkward wording.

22 years agoDon't call critical_enter()/critical_exit() around calls to pmap_pvo_enter()
benno [Sat, 23 Feb 2002 05:55:51 +0000 (05:55 +0000)]
Don't call critical_enter()/critical_exit() around calls to pmap_pvo_enter()
as it does it's own handling of critical sections.

22 years agoAcpiOsPrintf and AcpiOsVprintf now return void.
msmith [Sat, 23 Feb 2002 05:32:51 +0000 (05:32 +0000)]
AcpiOsPrintf and AcpiOsVprintf now return void.

22 years agoAcpiOsCallocate is no longer required.
msmith [Sat, 23 Feb 2002 05:32:10 +0000 (05:32 +0000)]
AcpiOsCallocate is no longer required.

22 years agoMatch namespace cleanup changes in ACPI CA 20020217 update.
msmith [Sat, 23 Feb 2002 05:31:38 +0000 (05:31 +0000)]
Match namespace cleanup changes in ACPI CA 20020217 update.

22 years agoAdd our own private defines for driver debug layers.
msmith [Sat, 23 Feb 2002 05:30:54 +0000 (05:30 +0000)]
Add our own private defines for driver debug layers.
Obsolete the acpi_GetInto* interfaces.

Fix a typo to be less appropriate.

22 years agoMatch namespace cleanup changes in ACPI CA 20020217 update.
msmith [Sat, 23 Feb 2002 05:29:23 +0000 (05:29 +0000)]
Match namespace cleanup changes in ACPI CA 20020217 update.
Use ACPI_SUCCESS/ACPI_FAILURE consistently.
The AcpiGetInto* interfaces are obsoleted by ACPI_ALLOCATE_BUFFER.

Convert to using a kthread rather than timeout() to avoid problems
with the interpreter sleeping.

22 years agoMatch namespace cleanup changes in ACPI CA 20020217 update.
msmith [Sat, 23 Feb 2002 05:28:22 +0000 (05:28 +0000)]
Match namespace cleanup changes in ACPI CA 20020217 update.
Use ACPI_SUCCESS/ACPI_FAILURE consistently.
The AcpiGetInto* interfaces are obsoleted by ACPI_ALLOCATE_BUFFER.