Commit Graph

31214 Commits

Author SHA1 Message Date
Bruce Evans
500b04a257 Instantiate `nfs_mount_type' in a standard file so that it is present
when nfs is an LKM.  Declare it in a header file.  Don't forget to use
it in non-Lite2 code.  Initialize it to -1 instead of to 0, since 0
will soon be the mount type number for the first vfs loaded.

NetBSD uses strcmp() to avoid this ugly global.
1998-09-05 15:17:34 +00:00
Doug Rabson
69beb1913e Disable gcc's builtin memcpy for alpha since it doesn't cope with unaligned
regions properly and this triggers an unaligned access trap.
1998-09-05 15:11:47 +00:00
Bruce Evans
134e06fe71 Fixed bogotification of pseudocode for syscall args by rev.1.53 of
syscalls.master.
1998-09-05 14:30:11 +00:00
Bruce Evans
266ead86bc Sysctl nodes are written to, so don't put them in the text section.
Our write protection of the kernel text on i386's doesn't actually
work in many cases:
- use of the 4MB page completely breaks it.
- CR0_WP isn't set until just before init is started, so the kernel
  text is not write protected during kernel initialization.
1998-09-05 14:13:35 +00:00
Poul-Henning Kamp
0375c9f2b8 Add a new vnode op, VOP_FREEBLKS(), which filesystems can use to inform
device drivers about sectors no longer in use.

Device-drivers receive the call through d_strategy, if they have
D_CANFREE in d_flags.

This allows flash based devices to erase the sectors and avoid
pointlessly carrying them around in compactions.

Reviewed by:	Kirk Mckusick, bde
Sponsored by:	M-Systems (www.m-sys.com)
1998-09-05 14:13:12 +00:00
Bruce Evans
a8b8bc0730 Fixed recently perpetrated printf format errors. 1998-09-05 13:24:39 +00:00
Bruce Evans
6ade4cf7a4 Don't comment out dead code. Remove it.
Fixed disgustingly long lines.

Improved English in some comments.
1998-09-05 12:42:56 +00:00
Satoshi Asami
140a040ae3 Remove tcl from src/contrib. 1998-09-05 12:33:01 +00:00
Satoshi Asami
ff5fcc93d4 Remove tcl from /usr/src, according to prior agreement. BTW, tcl-8.0 *is*
a port so there is nothing to be done on that side now.

Approved by:	jkh
===
To: "Jordan K. Hubbard" <jkh@time.cdrom.com>
cc: Andreas Klemm <andreas@klemm.gtn.com>, current@freebsd.org
Subject: Re: Make this a relese coordinator decision (was Re: ports-current/packages-current discontinued)
From: David Greenman <dg@root.com>
Date: Sun, 03 Aug 1997 20:23:31 -0700

>decision is, I'll respect it.

   Another chance to architect people's principles...I can hardly wait. Seems
quite appropriate for a Sunday - I just need to get one of those collection
plates (and money envelopes) so I can profit, too. :-)
   Tcl stays in /usr/src for now, but it needs to be kept up to date; same
for perl. If Jordan doesn't have "setup" (written in tcl) ready for 3.0,
then tcl will be yanked prior to the 3.0 release (and made into a port).
   As for the ports tree only supporting the last FreeBSD release, this seems
sensible to me. The "ports" have always been a moving target between releases
and the problem is only going to get worse when we expand to supporting other
processor architectures. In any case, Satoshi is and always has been in charge
of the ports tree and whatever he wants to do with it (within reason :-)) is
his decision.
   Does this cover the issue completely? I admit to deleting messages in this
thread with unusual fervor (people have FAR too much time on their hands!).
There's a fair bit of reasoning behind the above, but since everyone is sick
of arguing about this, I'll spare you the analysis.

-DG

David Greenman
Core-team/Principal Architect, The FreeBSD Project
1998-09-05 12:25:55 +00:00
John Birrell
d64c14ce31 Change i386 in a few paths to ${MACHINE} to support MACHINE=pc98. 1998-09-05 11:37:14 +00:00
John Birrell
fed060ba0a Change MACHINE to MACHINE_ARCH when testing for i386 to support
MACHINE=pc98.

There are a lot unsupported machines here.
1998-09-05 08:35:53 +00:00
John Birrell
c2c37821c4 Chaneg MACHINE to MACHINE_ARCH to support MACHINE=pc98.
Remove a couple of unsupported machines.
1998-09-05 08:33:10 +00:00
John Birrell
b576a5aeae Chaneg MACHINE to MACHINE_ARCH to support MACHINE=pc98. 1998-09-05 08:31:10 +00:00
John Birrell
b8f26023ac Change MACHINE to MACHINE_ARCH to support MACHINE=pc98. 1998-09-05 08:29:05 +00:00
John Birrell
7cfc8475b8 Add support for MACHINE=pc98. This leaves a single legacy entry for
the old aout bootloader.
1998-09-05 08:27:56 +00:00
John Birrell
db36ef8f02 Change MACHINE to MACHINE_ARCH to support MACHINE=pc98. 1998-09-05 08:22:30 +00:00
John Birrell
b3e7339e37 Add a GENERICupgrade config file for pc98 users to upgrade to elf
in the same way as i386 users. This is a copy of GENERIC98.
1998-09-05 08:14:36 +00:00
John Birrell
08d62a8cfe Change a hardcoded i386 reference to ${MACHINE} so that MACHINE=pc98
is supported properly.
1998-09-05 08:10:44 +00:00
John Birrell
ae59c2591e Use INT_MAX instead of LONG_MAX since the variable being compared
is an int, not a long.
1998-09-05 08:01:26 +00:00
John Birrell
9b801a0d86 Change a test for NETBSD_SYSCALLS to __alpha__. We're not ready to
do profiling on alpha yet.
1998-09-05 07:57:43 +00:00
John Birrell
683728f17d Change the profile data file name from gmon.out to progname.gmon
where progname comes from __progname in crt0 or crt1.
1998-09-05 07:56:36 +00:00
Jordan K. Hubbard
a4abb1d062 Set CHROOTDIR's initial object type also.
Suggested by:	jb
1998-09-05 07:43:13 +00:00
John Birrell
120e8c9dfb Now that ldconfig does elf work too, build it on alpha as well. 1998-09-05 07:35:19 +00:00
David E. O'Brien
c2e6b42316 More sorting of references. 1998-09-05 06:56:36 +00:00
Jordan K. Hubbard
0f31af3165 Add OBJFORMAT to list of variables passed into /mk script since it seems
to think you're using aout otherwise (and emits a rather confusing and
inaccurate diagnostic about OBJFORMAT being set in /etc/make.conf when
it most demonstrably is not set there).
1998-09-05 06:54:42 +00:00
David E. O'Brien
173d7ad5bd MFO: rev 1.3 - correct man page xrefs. 1998-09-05 06:38:19 +00:00
David E. O'Brien
f6a4cf41ea compare getopt() with -1, not EOF 1998-09-05 06:06:00 +00:00
David E. O'Brien
d5f8a55d70 MFO rev 1.4 - sort cross references 1998-09-05 05:52:24 +00:00
John Polstra
f708e2297c Explicitly pass the "-aout" option to ldconfig, until I've had a
chance to work out a better scheme to handle the separate
invocations necessary for a.out and ELF.
1998-09-05 04:27:35 +00:00
John Polstra
a565ca5920 Implement ldconfig functionality for ELF. The hints are stored in
a different file than the a.out hints, namely, "/var/run/ld-elf.so.hints".
These hints consist only of the directory search path.  There is
no hash table as in the a.out hints, because ELF doesn't have to
search for the file with the highest minor version number.  (It
doesn't have minor version numbers at all.)

A single run of ldconfig updates either the a.out hints or the ELF
hints, but not both.  The set of hints to process is selected in
the usual way, via /etc/objformat, or ${OBJFORMAT}, or the "-aout"
or "-elf" command line option.  The rationale is that you probably
want to search different directories for ELF than for a.out.

"ldconfig -r" is faked up to produce output like we are used to,
except that for ELF there are no minor version numbers.  This should
enable "ldconfig -r" to be used for checking LIB_DEPENDS in ports
even for ELF.

I implemented the ELF functionality in a new source file, with an
eye toward eliminating the a.out code entirely at some point in
the future.
1998-09-05 03:31:00 +00:00
KATO Takenori
2bfe25d193 Sync with sys/i386/conf/files.i386 revision 1.201. 1998-09-05 02:36:18 +00:00
KATO Takenori
0e28be212a Sync with sys/i386/conf/Makefile.i386 revision 1.121. 1998-09-05 02:35:21 +00:00
KATO Takenori
6924358493 Increase 'maxusers' to 32. 1998-09-05 02:20:52 +00:00
David E. O'Brien
72c53665f2 With the change to the 4.4Lite2 mount interface we don't need special
conf files.
1998-09-05 00:58:37 +00:00
John Polstra
512a3bb59b Add hints file structures and defines. 1998-09-05 00:53:53 +00:00
Mike Smith
adae65a188 Escape the \ characters so that the intended beep at the end of the
boot.help message is actually appended correctly.
1998-09-05 00:36:18 +00:00
John Birrell
2ae7809185 Add -lcrypt. 1998-09-05 00:34:36 +00:00
John Birrell
e00072f9f4 Add -lcrypt when building kerberos. 1998-09-05 00:32:27 +00:00
Jordan K. Hubbard
92050c8b15 Actually *looking* at this file now, I see that a good deal more
can be eliminated. :)
1998-09-04 23:51:40 +00:00
Jordan K. Hubbard
c60f090882 Turn tcp_extentions off by default. They sometimes cause pain. 1998-09-04 23:37:24 +00:00
Luoqi Chen
02c71890cd Make irq forwarding truely functional. 1998-09-04 23:03:04 +00:00
John Birrell
2a356d7348 Enable rtld-elf for build on alpha too. We now have support for shared
libraries on alpha!
1998-09-04 22:55:17 +00:00
Mark Murray
9e59916c02 Unbreak "make release".
Submitted by:	Justin Gibbs
1998-09-04 22:18:49 +00:00
John Birrell
4c1e0b3596 YAMT (yet another missing target). It's a shame that these have to
be visible to the user. Maybe `make release' should call the backend
directly.
1998-09-04 21:19:37 +00:00
Mike Smith
14b1f19055 Increase 'maxusers' to 32; with the number of people using GENERIC as
their one-size-fits-all kernel, this should help reduce the "out of foo"
reports.

Reviewed by:	jkh
1998-09-04 19:55:51 +00:00
Andrzej Bialecki
c039505459 Bring the docs more up-to-date. Document the 'custom' setup. 1998-09-04 19:47:24 +00:00
Andrzej Bialecki
c7b3a66f65 Added special type of setup called 'custom'. It allows you to supply
your own config directory laid out exactly like the standard ones.

Suggested by:	Richard Wackerbarth <rkw@dataplex.net>
1998-09-04 19:38:57 +00:00
Doug Rabson
13575fc46f Add alpha support.
Submitted by: John Birrell <jb@cimlogic.com.au> (with extra hacks by me)
Obtained from: Probably NetBSD
1998-09-04 19:03:57 +00:00
Doug Rabson
26cdc317be Cosmetic changes to the PAGE_XXX macros to make them consistent with
the other objects in vm.
1998-09-04 18:49:35 +00:00
Brian Somers
9e8ec64b6b Don't cast potentially unaligned addresses to pointers to
non-char types on non-i386 architectures.
On Alpha and Sparc we get a bus error if we do.
1998-09-04 18:26:00 +00:00