]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
27 years agoRemoved unused or apparently-unused #includes, especially of the
Bruce Evans [Thu, 10 Apr 1997 14:35:32 +0000 (14:35 +0000)]
Removed unused or apparently-unused #includes, especially of the
deprecated header <sys/dir.h>.

27 years agoAvoid processing obviously bogus domain names in the YPBINDPROC_DOMAIN
Bill Paul [Thu, 10 Apr 1997 14:18:03 +0000 (14:18 +0000)]
Avoid processing obviously bogus domain names in the YPBINDPROC_DOMAIN
and YPBINDPROC_SETDOM procedures.

27 years agoAdd a sanity test to ypproc_xfr_2_svc(): check that the map and domain
Bill Paul [Thu, 10 Apr 1997 14:12:51 +0000 (14:12 +0000)]
Add a sanity test to ypproc_xfr_2_svc(): check that the map and domain
in the transfer request actually exist. Technically ypxfr can do this too,
but why waste the cycles getting ypxfr off the ground for a transfer we
already know is going to fail.

Also apply stricter access control rules; ypproc_xfr_2_svc() is in a
different class than the normal map access procedures procedures.

27 years agoDeprecated <sys/dir.h> some more - changed the comment saying that
Bruce Evans [Thu, 10 Apr 1997 13:54:19 +0000 (13:54 +0000)]
Deprecated <sys/dir.h> some more - changed the comment saying that
<dirent.h> should be used instead to a warning.  If this causes too
many warnings in ports then it should be changed back after checking
some ports for related configuration errors.

Moved the definition of DIRSIZ() from <sys/dir.h> to <sys/dirent.h>
so that it can be used in the kernel without including <sys/dir.h>.
Renamed it in some cases to avoid new namespace pollution.

27 years agoAdd extra paranoia test. In theory this doesn't really gain you anything,
Bill Paul [Thu, 10 Apr 1997 13:48:59 +0000 (13:48 +0000)]
Add extra paranoia test. In theory this doesn't really gain you anything,
but the extra warning message could be useful.

27 years agoUse smalllblktosize() instead of multiplying small block numbers
Bruce Evans [Thu, 10 Apr 1997 13:17:09 +0000 (13:17 +0000)]
Use smalllblktosize() instead of multiplying small block numbers
by fs->fs_bsize.  The macro is usually faster and makes it clearer
that the multiplication can't overflow.

27 years agoPreserve some bits in the keyboard controller command byte when
Kazutaka YOKOTA [Thu, 10 Apr 1997 12:26:50 +0000 (12:26 +0000)]
Preserve some bits in the keyboard controller command byte when
resetting the keyboard.

Well, sorry, this bug is totally my fault. I DID intend to preserve
them, but somehow I failed.

The bug puts some old keyboard controllers in a strange state,
resulting in keyboard freeze or random key input.

The fix closes PR kern/3067.

27 years agoAdd a short blurb about the ports page in the "applications" question.
Satoshi Asami [Thu, 10 Apr 1997 12:06:53 +0000 (12:06 +0000)]
Add a short blurb about the ports page in the "applications" question.
List all three packages directories in the ensuing packages description.

Add a short (in fact, very short) section about libc.so.3.0 and wrong
package versions.

27 years agoAdd a section on sysmouse configuration.
Brian Somers [Thu, 10 Apr 1997 10:20:46 +0000 (10:20 +0000)]
Add a section on sysmouse configuration.
Suggested by: jkh

27 years agoMake the use of mousedtype/sysmouse clearer.
Brian Somers [Thu, 10 Apr 1997 10:20:22 +0000 (10:20 +0000)]
Make the use of mousedtype/sysmouse clearer.
Suggested by: jkh

27 years agoCatch up with the original.
Hiroyuki Hanai [Thu, 10 Apr 1997 06:06:22 +0000 (06:06 +0000)]
Catch up with the original.

27 years agoNate Johnson is now the Gallery/Commercial editor since Charles Wimmer
Jordan K. Hubbard [Thu, 10 Apr 1997 05:23:25 +0000 (05:23 +0000)]
Nate Johnson is now the Gallery/Commercial editor since Charles Wimmer
seems to have disappeared.

27 years agoAdd Jack O'Neill to donor's list.
Jordan K. Hubbard [Thu, 10 Apr 1997 05:20:19 +0000 (05:20 +0000)]
Add Jack O'Neill to donor's list.

27 years agoCatch up with the original.
Hiroyuki Hanai [Thu, 10 Apr 1997 04:41:55 +0000 (04:41 +0000)]
Catch up with the original.

27 years agoExpand donors list. Note: Anyone I missed, *please* contact me!
Jordan K. Hubbard [Thu, 10 Apr 1997 02:15:59 +0000 (02:15 +0000)]
Expand donors list.  Note:  Anyone I missed, *please* contact me!
I'm only now starting to get this a little more well organized.

27 years agoTypo police. Part of PR# 3242.
Mike Pritchard [Wed, 9 Apr 1997 23:05:04 +0000 (23:05 +0000)]
Typo police.  Part of PR# 3242.

Submitted by: Philippe Charnier <charnier@xp11.frmug.org>

27 years agoUse "-pg" instead of "-p" for generating profiled object files.
John Polstra [Wed, 9 Apr 1997 20:31:15 +0000 (20:31 +0000)]
Use "-pg" instead of "-p" for generating profiled object files.
The two options differ only when linking, but "-p" is incorrect
because it is associated with the old-style "prof" command, which we
do not support.

27 years agoOops...now really commit the doc change.
Guido van Rooij [Wed, 9 Apr 1997 20:25:43 +0000 (20:25 +0000)]
Oops...now really commit the doc change.

27 years agoMake a sysconfig variable controlling if teh kernel should accept
Guido van Rooij [Wed, 9 Apr 1997 20:17:15 +0000 (20:17 +0000)]
Make a sysconfig variable controlling if teh kernel should accept
nfs requests from non-privileged ports.

Change mountd such that it does never set this variable, but only clears
it when run with -n. Also document this in the man page.

27 years agoMake "gcc -shared" work properly for building shared libraries. An
John Polstra [Wed, 9 Apr 1997 20:13:41 +0000 (20:13 +0000)]
Make "gcc -shared" work properly for building shared libraries.  An
up-to-date version of c++rt0.o is necessary for this to work right.

Closes PR gnu/3035: gcc -shared flag is broken.

27 years agoAdd Kent Vander Velden for his various contributions via problem reports.
Mike Pritchard [Wed, 9 Apr 1997 19:44:58 +0000 (19:44 +0000)]
Add Kent Vander Velden for his various contributions via problem reports.

Also updated Keith Bostic's mail address while I was in the area.

27 years agoDeclare the constructor/destructor linker sets as extern rather than
John Polstra [Wed, 9 Apr 1997 19:14:31 +0000 (19:14 +0000)]
Declare the constructor/destructor linker sets as extern rather than
common.  Add one do-nothing element to each set.  This ensures that
the linker realizes that they are linker sets rather than simple
commons, and makes it possible to link c++rt0.o into every shared
library regardless of whether it is a C++ library or not.  Without
this change, the constructors and destructors in the main program
could be executed multiple times.

This change is going to make it possible to get rid of the
CPLUSPLUSLIB makefile variable once and for all.  It is a piece of
the solution to PR gnu/3505 (gcc -shared).  Finally, it fixes a
heretofore unreported bug:  If CPLUSPLUSLIB was set in a makefile
for a C++ shared library that had no static constructors or
destructors in it, then the main program's constructors and
destructors would be executed multiple times.

27 years agoCheck for -1 instead of EOF in the getopt() example.
Mike Pritchard [Wed, 9 Apr 1997 19:03:14 +0000 (19:03 +0000)]
Check for -1 instead of EOF in the getopt() example.

Submitted by: Kent Vander Velden

27 years agoProcess "lib/csu/i386" at the beginning of the "libraries" target,
John Polstra [Wed, 9 Apr 1997 18:59:36 +0000 (18:59 +0000)]
Process "lib/csu/i386" at the beginning of the "libraries" target,
instead of in the middle of it.  Soon, "c++rt0.o" will be linked
into all shared libraries.  An up-to-date version of it must be in
place before any shared libraries are built.

This is one piece of the solution for PR gnu/3035 (gcc -shared).

27 years agoIgnore SIGPIPE or any user can quit ppp just telnetting to it
Andrey A. Chernov [Wed, 9 Apr 1997 17:35:54 +0000 (17:35 +0000)]
Ignore SIGPIPE or any user can quit ppp just telnetting to it
and quitting telnet immediately (while phone number dialed)
Log client connection/disconnection with PHASE_BIT now.
Add more error recovery on client disconnection

27 years agoRemoved support for OLD_PIPE. <sys/stat.h> is now missing the hack that
Bruce Evans [Wed, 9 Apr 1997 16:53:45 +0000 (16:53 +0000)]
Removed support for OLD_PIPE.  <sys/stat.h> is now missing the hack that
supported nameless pipes being indistinguishable from fifos.  We're not
going back.

27 years agoDistinguish fifos from sockets in the S_IS* macros. This is possible now
Bruce Evans [Wed, 9 Apr 1997 16:32:23 +0000 (16:32 +0000)]
Distinguish fifos from sockets in the S_IS* macros.  This is possible now
that nameless pipes are not implemented as sockets.

Don't include <sys/time.h> if KERNEL is defined.  It should already have
been included by including <sys/param.h>.  Fixed a nearby typo.

27 years agoUse `ld -f' (actually `cc -Wl,-f') at `make depend' time to generate
Bruce Evans [Wed, 9 Apr 1997 16:10:27 +0000 (16:10 +0000)]
Use `ld -f' (actually `cc -Wl,-f') at `make depend' time to generate
almost perfect dependencies on crt0's and libraries.  DPADD and
bsd.libnames.mk should go away soon.  Use a new _EXTRADEPEND target
to implement this and to avoid editing of .depend when .depend isn;t
being rebuilt.  The afterdepend target doesn't seem to be good for
anything and is now unused.

Fixed LDDESTDIR for the DESTDIR case when ${SHLIBDIR} != /usr/lib.

Added commented-out -nostdlib to LDDESTDIR for the DESTDIR case.
The wrong libraries may be used without this; however it breaks
linkage to crt0 and libc.

27 years agoOops. Missed the Complex number add case of code generation.. :-]
Peter Wemm [Wed, 9 Apr 1997 16:00:07 +0000 (16:00 +0000)]
Oops.  Missed the Complex number add case of code generation.. :-]
Fixes PR#3239.

Submitted by: Takeshi WATANABE <watanabe@crayon.earth.s.kobe-u.ac.jp>

27 years agoRegenerate (removed unused #includes from ibcs2*_sysent.c).
Bruce Evans [Wed, 9 Apr 1997 15:46:25 +0000 (15:46 +0000)]
Regenerate (removed unused #includes from ibcs2*_sysent.c).

27 years agoRemoved unused #includes.
Bruce Evans [Wed, 9 Apr 1997 15:44:47 +0000 (15:44 +0000)]
Removed unused #includes.

27 years agoRegenerate (removed unused #includes in linux_sysent.c).
Bruce Evans [Wed, 9 Apr 1997 15:37:04 +0000 (15:37 +0000)]
Regenerate (removed unused #includes in linux_sysent.c).

27 years agoRemoved unused #includes.
Bruce Evans [Wed, 9 Apr 1997 15:34:09 +0000 (15:34 +0000)]
Removed unused #includes.

27 years agoInclude <sys/buf.h> instead of <sys/vnode.h>. kern_sysctl.c no
Bruce Evans [Wed, 9 Apr 1997 15:23:09 +0000 (15:23 +0000)]
Include <sys/buf.h> instead of <sys/vnode.h>.  kern_sysctl.c no
longer has anything to do with vnodes and never had anything to do
with buffers, but it needs the definitions of B_READ and B_WRITE
for use with the bogus useracc() interface and was getting them
bogusly due to excessive cleanups in rev.1.49.

27 years agoMask out revision register in consistency test of class register.
Stefan Eßer [Wed, 9 Apr 1997 11:34:50 +0000 (11:34 +0000)]
Mask out revision register in consistency test of class register.

27 years agoReorganize the donor's gallery to include people who've donated
Jordan K. Hubbard [Wed, 9 Apr 1997 10:34:31 +0000 (10:34 +0000)]
Reorganize the donor's gallery to include people who've donated
parts to replace freefall.freebsd.org (so that we can use what's currently
there to replace spatter).

27 years agoFix spelling of align and interrupt in comments.
Stefan Eßer [Wed, 9 Apr 1997 09:16:27 +0000 (09:16 +0000)]
Fix spelling of align and interrupt in comments.

27 years agoFix consistency test to not fail on pre PCI 2.0 motherboards
Stefan Eßer [Wed, 9 Apr 1997 09:15:03 +0000 (09:15 +0000)]
Fix consistency test to not fail on pre PCI 2.0 motherboards

27 years agoDocument wakeup_one().
Mike Pritchard [Wed, 9 Apr 1997 05:39:32 +0000 (05:39 +0000)]
Document wakeup_one().

27 years agoProvide examples of how to remove file names that begin with
Mike Pritchard [Wed, 9 Apr 1997 05:04:43 +0000 (05:04 +0000)]
Provide examples of how to remove file names that begin with
a dash in non-getopt implementations.  E.g.:
rm /home/mpp/-filename
rm ./-filename

Requested by: bde

27 years agoCatch up with the original.
Hiroyuki Hanai [Wed, 9 Apr 1997 03:05:58 +0000 (03:05 +0000)]
Catch up with the original.
Submitted by: Yoshiaki Uchikawa <yoshiaki@kt.rim.or.jp>

27 years agoEnsure that the remote host name is Nul terminated.
Mike Pritchard [Tue, 8 Apr 1997 20:36:36 +0000 (20:36 +0000)]
Ensure that the remote host name is Nul terminated.
Closes PR# 2589.

27 years agoImprove the wording in the NOTES section. Closes PR# 3223.
Mike Pritchard [Tue, 8 Apr 1997 20:27:48 +0000 (20:27 +0000)]
Improve the wording in the NOTES section.  Closes PR# 3223.

27 years agoFix a xref.
Mike Pritchard [Tue, 8 Apr 1997 20:01:15 +0000 (20:01 +0000)]
Fix a xref.

Obtained from: NetBSD-bus PR# 3464

27 years agoFix 8bit chars handling
Andrey A. Chernov [Tue, 8 Apr 1997 13:52:53 +0000 (13:52 +0000)]
Fix 8bit chars handling

27 years agoFix for expiration date test. Closes PR#3224.
David Nugent [Tue, 8 Apr 1997 12:32:17 +0000 (12:32 +0000)]
Fix for expiration date test. Closes PR#3224.

27 years agoAdded lnc driver.
KATO Takenori [Tue, 8 Apr 1997 12:01:11 +0000 (12:01 +0000)]
Added lnc driver.

27 years agoMissing newline caused too much text to be fed to the macro.
Peter Wemm [Tue, 8 Apr 1997 10:45:10 +0000 (10:45 +0000)]
Missing newline caused too much text to be fed to the macro.

Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>, PR#3228

27 years agosetsid is declared in <unistd.h>, which is self sufficient (doesn't need
Peter Wemm [Tue, 8 Apr 1997 10:43:47 +0000 (10:43 +0000)]
setsid is declared in <unistd.h>, which is self sufficient (doesn't need
prior <sys/types.h>)

Fixes PR#3229, from Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>

27 years agoEnables lnc driver on PC-98 to support NEC SV-98/2-B06 PCI card.
KATO Takenori [Tue, 8 Apr 1997 10:33:24 +0000 (10:33 +0000)]
Enables lnc driver on PC-98 to support NEC SV-98/2-B06 PCI card.
Cascade mode of DMA is disabled when PC98 is defined because PC-98
doesn't support it.

27 years agoFix the typo about the DEC's NICs
Hiroyuki Hanai [Tue, 8 Apr 1997 02:28:58 +0000 (02:28 +0000)]
Fix the typo about the DEC's NICs
Submitted by: morimitsu@jrdvms.enet.dec.com

27 years agoCatch up with the original.
Hiroyuki Hanai [Tue, 8 Apr 1997 02:23:27 +0000 (02:23 +0000)]
Catch up with the original.

27 years agoCatch up with the original.
Hiroyuki Hanai [Tue, 8 Apr 1997 02:13:06 +0000 (02:13 +0000)]
Catch up with the original.

27 years agoCatch up with the original.
Hiroyuki Hanai [Tue, 8 Apr 1997 02:10:38 +0000 (02:10 +0000)]
Catch up with the original.
Submitted by: mihoko@pa.yokogawa.co.j

27 years agoCatch up with the original.
Hiroyuki Hanai [Tue, 8 Apr 1997 02:07:24 +0000 (02:07 +0000)]
Catch up with the original.
Submitted by: Takashi Saeki <saeki@saskg.semicon.sony.co.jp>

27 years agoLatest release is 2.2.1, not 2.1.7.
John Fieber [Tue, 8 Apr 1997 00:47:59 +0000 (00:47 +0000)]
Latest release is 2.2.1, not 2.1.7.

27 years agoMention the RELENG_2_2_1_RELEASE for getting FreeBSD-2.2.1.
John Polstra [Tue, 8 Apr 1997 00:14:00 +0000 (00:14 +0000)]
Mention the RELENG_2_2_1_RELEASE for getting FreeBSD-2.2.1.

27 years agoFix an infinite loop caused by calling ahc_run_done queue while the
Justin T. Gibbs [Mon, 7 Apr 1997 18:32:47 +0000 (18:32 +0000)]
Fix an infinite loop caused by calling ahc_run_done queue while the
driver is waiting a bus settle delay.  There should really be a facility
for the controller driver to "freeze" its queue during recovery operations
which would make all of this gymnastics unnecessary.

27 years agoFix race
Guido van Rooij [Mon, 7 Apr 1997 18:01:10 +0000 (18:01 +0000)]
Fix race
Obtained from: Keith Bostic

27 years agoFixed bugs involving paths:
Bruce Evans [Mon, 7 Apr 1997 17:21:19 +0000 (17:21 +0000)]
Fixed bugs involving paths:
- LDADD was wrong for non-uniform obj trees.
- DPADD was wrong for separate obj tres.

Cleaned up nearby messes, mostly ones invoving paths:
- ../libtxi was useless.
- there were too many redefinitions and too many different names for the
  same paths.
- use INTERNALLIB* to simplify libtxi/Makefile.

27 years agoFixed bugs involving paths:
Bruce Evans [Mon, 7 Apr 1997 16:52:53 +0000 (16:52 +0000)]
Fixed bugs involving paths:
- LDADD was wrong for non-uniform obj trees.
- DPADD was wrong for separate obj tres.

Cleaned up nearby messes, mostly ones invoving paths:
- -I../libtxi was useless.
- there were too many redefinitions and too many different names for the
  same paths.
- use INTERNALLIB* to simplify libtxi/Makefile.

27 years agoInclude ${CURDIR}/../Makefile.inc as in most other `.mk' files. This
Bruce Evans [Mon, 7 Apr 1997 16:46:40 +0000 (16:46 +0000)]
Include ${CURDIR}/../Makefile.inc as in most other `.mk' files.  This
is most useful for centralizing the definitions of paths to contrib
directories.

Removed useless subshell and evil-hiding @ in the the rule for
initializing the info dir.

27 years agoLower the spl() of the new process from splhigh() right away, since
Peter Wemm [Mon, 7 Apr 1997 11:42:09 +0000 (11:42 +0000)]
Lower the spl() of the new process from splhigh() right away, since
nothing else will lower it until either much later, or never(?) for
kernel processes.

This basically re-fixes what Bruce fixed in rev 1.29 of kern_fork.c,
which was broken again now the child does not execute back up the fork()
calling tree.

27 years agoSynchronize with sys/i386/i386{machdep.c,trap.c} revisions 1.236 and
KATO Takenori [Mon, 7 Apr 1997 11:00:48 +0000 (11:00 +0000)]
Synchronize with sys/i386/i386{machdep.c,trap.c} revisions 1.236 and
1.91, respectively.

27 years agoSynchronize with sys/i386/isa/clock.c revision 1.80.
KATO Takenori [Mon, 7 Apr 1997 10:53:14 +0000 (10:53 +0000)]
Synchronize with sys/i386/isa/clock.c revision 1.80.

27 years agoterminfo_extensions.doc:
John-Mark Gurney [Mon, 7 Apr 1997 10:24:13 +0000 (10:24 +0000)]
terminfo_extensions.doc:
o) fix some typos
o) add missing comments from terminfo's man page

termcap.5
o) fix some types
o) add a reference to terminfo_extensions.doc

27 years agoRemove explicit zero of p_vmspace on creation, it's now in the startzero
Peter Wemm [Mon, 7 Apr 1997 09:38:39 +0000 (09:38 +0000)]
Remove explicit zero of p_vmspace on creation, it's now in the startzero
section of the proc struct.

27 years agoMove p_vmspace into the startzero section since we've just changed things
Peter Wemm [Mon, 7 Apr 1997 09:35:15 +0000 (09:35 +0000)]
Move p_vmspace into the startzero section since we've just changed things
and may as well get it over and done with.

27 years agoUse UPAGES_HOLE instead of UPAGES in case it's changed some time.
Peter Wemm [Mon, 7 Apr 1997 09:30:22 +0000 (09:30 +0000)]
Use UPAGES_HOLE instead of UPAGES in case it's changed some time.

Rename the PT* index KSTK* #defines to UMAX*, since we don't have a kernel
stack there any more..

These are used to calculate VM_MAXUSER_ADDRESS and USRSTACK, and really
do not want to be changed with UPAGES since BSD/OS 2.x binary compatability
depends on it.

27 years agoDefine UPAGES_HOLE at 2 (same as current UPAGES) in case UPAGES changes
Peter Wemm [Mon, 7 Apr 1997 09:27:21 +0000 (09:27 +0000)]
Define UPAGES_HOLE at 2 (same as current UPAGES) in case UPAGES changes
later.  This is used to calculate the top of user address space.

27 years agoRestore PATH_LOCALE functionality using issetugid() call now
Andrey A. Chernov [Mon, 7 Apr 1997 08:54:38 +0000 (08:54 +0000)]
Restore PATH_LOCALE functionality using issetugid() call now

27 years agoClean up some dead wood. Kill the page table page for mapping the
Peter Wemm [Mon, 7 Apr 1997 08:38:19 +0000 (08:38 +0000)]
Clean up some dead wood.  Kill the page table page for mapping the
proc0/idlePTD/bootstrap stack into place in user space.  We save 4K.
Remove p0upa, it is now unneeded.

27 years agoAttempt to patch up gdb so that it has a chance of working with the new
Peter Wemm [Mon, 7 Apr 1997 08:08:20 +0000 (08:08 +0000)]
Attempt to patch up gdb so that it has a chance of working with the new
UPAGES layout.. it was entirely too comfortable with reading and writing
the U area before.  I've changed it to use PT_GETREGS/PT_PUTREGS
ptrace ops instead of READ_U etc.  The code to read the registers from
core dumps is a bandaid at best.  It seems to have problems reading
core dumps from dynamic linked executables still, but at least static
dumps work.

I desperately need help from a gdb/bfd expert. :-)  HELP!!

27 years agoThe biggie: Get rid of the UPAGES from the top of the per-process address
Peter Wemm [Mon, 7 Apr 1997 07:16:06 +0000 (07:16 +0000)]
The biggie: Get rid of the UPAGES from the top of the per-process address
space. (!)

Have each process use the kernel stack and pcb in the kvm space.  Since
the stacks are at a different address, we cannot copy the stack at fork()
and allow the child to return up through the function call tree to return
to user mode - create a new execution context and have the new process
begin executing from cpu_switch() and go to user mode directly.
In theory this should speed up fork a bit.

Context switch the tss_esp0 pointer in the common tss.  This is a lot
simpler since than swithching the gdt[GPROC0_SEL].sd.sd_base pointer
to each process's tss since the esp0 pointer is a 32 bit pointer, and the
sd_base setting is split into three different bit sections at non-aligned
boundaries and requires a lot of twiddling to reset.

The 8K of memory at the top of the process space is now empty, and unmapped
(and unmappable, it's higher than VM_MAXUSER_ADDRESS).

Simplity the pmap code to manage process contexts, we no longer have to
double map the UPAGES, this simplifies and should measuably speed up fork().

The following parts came from John Dyson:

Set PG_G on the UPAGES that are now in kernel context, and invalidate
them when swapping them out.

Move the upages object (upobj) from the vmspace to the proc structure.

Now that the UPAGES (pcb and kernel stack) are out of user space, make
rfork(..RFMEM..) do what was intended by sharing the vmspace
entirely via reference counting rather than simply inheriting the mappings.

27 years agoNo longer use an i386tss as the basis of our pcb - it wasn't particularly
Peter Wemm [Mon, 7 Apr 1997 06:45:18 +0000 (06:45 +0000)]
No longer use an i386tss as the basis of our pcb - it wasn't particularly
convenient and makes life difficult for my next commit.  We still need
an i386tss to point to for the tss slot in the gdt, so we use a common
tss shared between all processes.

Note that this is going to break debugging until this series of commits
is finished.  core dumps will change again too. :-(  we really need
a more modern core dump format that doesn't depend on the pcb/upages.

This change makes VM86 mode harder, but the following commits will remove
a lot of constraints for the VM86 system, including the possibility of
extending the pcb for an IO port map etc.

Obtained from: bde

27 years agoNew translation which corresponds to the 1.11 -> 1.12 change of
Hiroyuki Hanai [Mon, 7 Apr 1997 04:56:51 +0000 (04:56 +0000)]
New translation which corresponds to the 1.11 -> 1.12 change of
original.
Submitted by: mihoko@pa.yokogawa.co.jp

27 years agoCatch up with the original.
Hiroyuki Hanai [Mon, 7 Apr 1997 04:09:47 +0000 (04:09 +0000)]
Catch up with the original.

27 years agoDocumented new serial console flags.
Bruce Evans [Mon, 7 Apr 1997 01:26:34 +0000 (01:26 +0000)]
Documented new serial console flags.

Removed dead serial console options.

Reorganised sio and serial console options.

Added undocumented options CLUSTERDEBUG and NPX_DEBUG.

27 years agoDocument how to debug LKMs with kgdb.
Doug Rabson [Sun, 6 Apr 1997 23:03:27 +0000 (23:03 +0000)]
Document how to debug LKMs with kgdb.

Reviewed by: J Wunsch <j@uriah.heep.sax.de>

27 years agoAdd BSD family tree to UNIX history section.
Wolfram Schneider [Sun, 6 Apr 1997 21:53:59 +0000 (21:53 +0000)]
Add BSD family tree to UNIX history section.

27 years agoCommit a typo fix that's been sitting in my tree for ages, quite forgotten.
Peter Wemm [Sun, 6 Apr 1997 16:16:11 +0000 (16:16 +0000)]
Commit a typo fix that's been sitting in my tree for ages, quite forgotten.
The typo was detected once apon a time with the -Wunused compile option.
The result was that a block of code for implementing
madvise(.. MADV_SEQUENTIAL..) behavior was "dead" and unused, probably
negating the effect of activating the option.

Reviewed by: dyson

27 years agoFixes to ibcs2_getdents, including using struct dirent instead of
Doug Rabson [Sun, 6 Apr 1997 14:10:50 +0000 (14:10 +0000)]
Fixes to ibcs2_getdents, including using struct dirent instead of
struct direct, not using UFS' definition of DIRBLKSIZ, using directory
seek cookies to make reading non-UFS directories reliable
(e.g. cd9660, ext2fs).

A special thanks to Robert Eckardt for providing an ISC binary of GNU
ls so that I could test these changes.

27 years agoPrevent wedging of the stat clock because of missed interrupts.
Stephen McKay [Sun, 6 Apr 1997 13:25:48 +0000 (13:25 +0000)]
Prevent wedging of the stat clock because of missed interrupts.
This should cure the "alternate system clock has died!" problem.

Discussed with: bde, joerg

27 years agoSynchronize with sys/i386/i386/trap.c revision 1.89.
KATO Takenori [Sun, 6 Apr 1997 11:49:46 +0000 (11:49 +0000)]
Synchronize with sys/i386/i386/trap.c revision 1.89.

27 years agoMake MOD_* macros almost consistent:
Peter Dufault [Sun, 6 Apr 1997 11:14:13 +0000 (11:14 +0000)]
Make MOD_* macros almost consistent:

Use the name argument almost the same in all LKM types.  Maintain
the current behavior for the external (e.g., modstat) name for DEV,
EXEC, and MISC types being #name ## "_mod" and SYCALL and VFS only
#name.  This is a candidate for change and I vote just the name without
the "_mod".

Change the DISPATCH macro to MOD_DISPATCH for consistency with the
other macros.

Add an LKM_ANON #define to eliminate the magic -1 and associated
signed/unsigned warnings.

Add MOD_PRIVATE to support wcd.c's poking around in the lkm structure.

Change source in tree to use the new interface.

Reviewed by: Bruce Evans

27 years agoMake MOD_* macros almost consistent:
Peter Dufault [Sun, 6 Apr 1997 10:49:22 +0000 (10:49 +0000)]
Make MOD_* macros almost consistent:

Use the name argument almost the same in all LKM types.  Maintain
the current behavior for the external (e.g., modstat) name for DEV,
EXEC, and MISC types being #name ## "_mod" and SYCALL and VFS only
#name.  This is a candidate for change and I vote just the name without
the "_mod".

Change the DISPATCH macro to MOD_DISPATCH for consistency with the
other macros.

Add an LKM_ANON #define to eliminate the magic -1 and associated
signed/unsigned warnings.

Add MOD_PRIVATE to support wcd.c's poking around in the lkm structure.

Change source in tree to use the new interface.

Reviewed by: Bruce Evans

27 years agoRemove dependancy on UFS' DIRBLKSIZ definition.
Doug Rabson [Sun, 6 Apr 1997 10:10:50 +0000 (10:10 +0000)]
Remove dependancy on UFS' DIRBLKSIZ definition.

2.2 candidate.

Submitted by: bde

27 years agoMake vm_map_protect be more complete about map simplification. This
John Dyson [Sun, 6 Apr 1997 03:04:31 +0000 (03:04 +0000)]
Make vm_map_protect be more complete about map simplification.  This
is useful when a process changes it's page range protections very
much.
Submitted by: Alan Cox <alc@cs.rice.edu>

27 years agoCorrection to the prototype for vm_fault.
John Dyson [Sun, 6 Apr 1997 02:30:56 +0000 (02:30 +0000)]
Correction to the prototype for vm_fault.

27 years agoFix the gdb executable modify problem. Thanks to the detective work
John Dyson [Sun, 6 Apr 1997 02:29:45 +0000 (02:29 +0000)]
Fix the gdb executable modify problem.  Thanks to the detective work
by Alan Cox <alc@cs.rice.edu>, and his description of the problem.

The bug was primarily in procfs_mem, but the mistake likely happened
due to the lack of vm system support for the operation.  I added
better support for selective marking of page dirty flags so that
vm_map_pageable(wiring) will not cause this problem again.

The code in procfs_mem is now less bogus (but maybe still a little
so.)

27 years agoSupport for -c, byte count.
Alexander Langer [Sun, 6 Apr 1997 00:54:27 +0000 (00:54 +0000)]
Support for -c, byte count.

27 years agomove top.1 -> top.local.1, and generate top.1 so that the man page
Peter Wemm [Sat, 5 Apr 1997 22:05:46 +0000 (22:05 +0000)]
move top.1 -> top.local.1, and generate top.1 so that the man page
is remotely useful

27 years agoInstead of testing for both SELDI and SELDO in SSTAT0 in the poll for work
Justin T. Gibbs [Sat, 5 Apr 1997 22:03:47 +0000 (22:03 +0000)]
Instead of testing for both SELDI and SELDO in SSTAT0 in the poll for work
loop, test for them separately.  The bug report from David Malone showed that
even though we had been reselected (SELDI was true), we sat in the poll for
work loop until the selection timeout timer expired.  It may be that the
SSTAT0 register doesn't like to have more than one bit tested at a time.
I've seen stranger things than this on these parts.

27 years agoFix a bug in the selection timeout handler that was introduced when the
Justin T. Gibbs [Sat, 5 Apr 1997 21:41:13 +0000 (21:41 +0000)]
Fix a bug in the selection timeout handler that was introduced when the
selection loop was merged with the poll_for_work loop.  We cannot assume
that the SCB for the selection timeout is the current SCB.  Instead we
must look at the SCB at the head of the waiting for selection list.

This fixes part of a problem reported by David Malone, but does not explain
why he was getting selection timeouts in the first place.

27 years agoChange IPX to use the pr_usrreqs structure.
John Hay [Sat, 5 Apr 1997 20:05:11 +0000 (20:05 +0000)]
Change IPX to use the pr_usrreqs structure.

27 years agoDisallow "-p" when linking, with a diagnostic that recommends using
John Polstra [Sat, 5 Apr 1997 16:19:08 +0000 (16:19 +0000)]
Disallow "-p" when linking, with a diagnostic that recommends using
"-pg" and gprof(1) instead.  FreeBSD does not support plain "-p" or
prof(1).

Plain "-p" is still allowed when just compiling.  In the compile
phase, "-p" is identical "-pg".  It is used by <bsd.lib.mk> for
building profiled object files.

27 years agoSynchronize with sys/i386/conf/options.i386 revision 1.39.
KATO Takenori [Sat, 5 Apr 1997 15:06:30 +0000 (15:06 +0000)]
Synchronize with sys/i386/conf/options.i386 revision 1.39.

27 years agoSynchronize with sys/i386/isa/sioreg.h revision 1.8.
KATO Takenori [Sat, 5 Apr 1997 15:05:16 +0000 (15:05 +0000)]
Synchronize with sys/i386/isa/sioreg.h revision 1.8.

27 years agoSynchronize with sys/i386/isa/sio.c revision 1.162.
KATO Takenori [Sat, 5 Apr 1997 15:04:32 +0000 (15:04 +0000)]
Synchronize with sys/i386/isa/sio.c revision 1.162.

27 years agoFix linux_getdents so that it can cope with filesystems which translate
Doug Rabson [Sat, 5 Apr 1997 14:50:56 +0000 (14:50 +0000)]
Fix linux_getdents so that it can cope with filesystems which translate
the directory format (ext2fs, cd9660).  For these filesystems, it must use
cookies to find the correct offset to use for subsequent reads.  Without it,
linux /bin/ls tends to loop re-reading the same block over and over again.

2.2 candidate.