]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoUse vnode_if.awk rather than vnode_if.pl
obrien [Fri, 1 Mar 2002 01:21:29 +0000 (01:21 +0000)]
Use vnode_if.awk rather than vnode_if.pl

22 years agoReturn vnode_if back to its AWK roots.
obrien [Fri, 1 Mar 2002 01:20:23 +0000 (01:20 +0000)]
Return vnode_if back to its AWK roots.
It became a Perl script in rev 1.20.  This removes one more dependence
on perl for the kernel build.

22 years agoCPP v3.1 has different rules for processing #lines directives. This
obrien [Thu, 28 Feb 2002 23:12:44 +0000 (23:12 +0000)]
CPP v3.1 has different rules for processing #lines directives.  This
sometimes causes fewer directories to be searched for includes.  Thus
we have to be more explicit in our search list.

Pointy at to: GCC 3.1

22 years agoCorrect St. David's day: it's celebrated outside Cardiff.
grog [Thu, 28 Feb 2002 23:06:24 +0000 (23:06 +0000)]
Correct St. David's day: it's celebrated outside Cardiff.

22 years agoFix typo.
keramida [Thu, 28 Feb 2002 22:44:15 +0000 (22:44 +0000)]
Fix typo.

PR: docs/35422
Submitted by: Mike DeGraw-Bertsch <mbertsch@radioactivedata.org>

22 years agoNew release notes: lukemftpd(8), /etc/security now under periodic(8)
bmah [Thu, 28 Feb 2002 21:58:43 +0000 (21:58 +0000)]
New release notes:  lukemftpd(8), /etc/security now under periodic(8)
framework (+MFC).

MFCs noted:  dc(4) VLANs.

While here, tweaked a lukemftp note to note its origin.

22 years ago- Move a comment from being on the same line as a #ifdef to the line
arr [Thu, 28 Feb 2002 21:52:08 +0000 (21:52 +0000)]
- Move a comment from being on the same line as a #ifdef to the line
  following it.  This should have gone in the previous commit, but
  misviewed Bruce's patch.

Requested by: bde

22 years agoNew release/hardware notes: gem and hme (sparc64 Ethernet NICs).
bmah [Thu, 28 Feb 2002 21:40:06 +0000 (21:40 +0000)]
New release/hardware notes:  gem and hme (sparc64 Ethernet NICs).

22 years agoAdd a tool that I've written to help with finding what other
joe [Thu, 28 Feb 2002 20:12:52 +0000 (20:12 +0000)]
Add a tool that I've written to help with finding what other
files/revisions were changed with a particular commit.

22 years agoMinor style(9) nit + utilize ELF features for the FreeBSD ID.
obrien [Thu, 28 Feb 2002 19:45:34 +0000 (19:45 +0000)]
Minor style(9) nit + utilize ELF features for the FreeBSD ID.

22 years agoAdd (unsigned char) cast lost in WARNS=4 fixes which break 8bit locales
ache [Thu, 28 Feb 2002 18:52:47 +0000 (18:52 +0000)]
Add (unsigned char) cast lost in WARNS=4 fixes which break 8bit locales

PR: 35421

22 years agoMake it a bit clearer where this file is to be used and where it
markm [Thu, 28 Feb 2002 18:26:30 +0000 (18:26 +0000)]
Make it a bit clearer where this file is to be used and where it
should not be. (Comments only)

Inspired by: bde

22 years agoadd inlines for bswap*.
gallatin [Thu, 28 Feb 2002 18:21:51 +0000 (18:21 +0000)]
add inlines for bswap*.

smaller versions of the byteswap routines were obtained from NetBSD

22 years agorecover from namespace collision caused by un-static'ing pci_alloc_resource()
gallatin [Thu, 28 Feb 2002 18:18:41 +0000 (18:18 +0000)]
recover from namespace collision caused by un-static'ing pci_alloc_resource()
in rev  1.187 of sys/dev/pci/pci.c

22 years agoAdjust the includes a bit.
markm [Thu, 28 Feb 2002 17:41:42 +0000 (17:41 +0000)]
Adjust the includes a bit.

Requested by: bde

22 years ago- Set inc_isipv6 in tcp6_usr_connect().
ume [Thu, 28 Feb 2002 17:11:10 +0000 (17:11 +0000)]
- Set inc_isipv6 in tcp6_usr_connect().
- When making a pcb from a sync cache, do not forget to copy inc_isipv6.

Obtained from: KAME
MFC After: 1 week

22 years ago- In nd6_rtrequest(), ignored a route when it is created by cloning and
ume [Thu, 28 Feb 2002 17:05:46 +0000 (17:05 +0000)]
- In nd6_rtrequest(), ignored a route when it is created by cloning and
is not a neighbor.  see comments for the detailed reason.

- Rejected the process of nd6_rtrequest() when the request is RESOLVE and
the interface does not need neighbor caches.

Obtained from: KAME
MFC After: 1 week

22 years agoFix "make release.4" breakage.
matusita [Thu, 28 Feb 2002 16:17:18 +0000 (16:17 +0000)]
Fix "make release.4" breakage.

src/contrib/isc-dhcp/includes/minires/resolv.h has a 'extern' definition
but it makes an error when linking crunched binary just like this:

dhclient.lo: In function `MRres_nquery':
dhclient.lo(.text+0x2dcce): undefined reference to `__h_errno_set'
dhclient.lo(.text+0x2dd5b): undefined reference to `__h_errno_set'
dhclient.lo: In function `MRres_nquerydomain':
dhclient.lo(.text+0x2de53): undefined reference to `__h_errno_set'

The author understands this will be a problem (see comments in resolv.h).
Murray said that the author will fix this, but as a temporary solution,
modifying the source code and not to use __h_errno_set.

BTW, I'm sorry that previous commitlog in src/sbin/dhclient/Makefile should
read "Found by:" instead of "Confirmed by"; I just found that rev 1.15
has a typo so fixed.

Tested on: ushi.jp.FreeBSD.org with today's 5-current source code.
           (belive me, "make release.4" works fine now)

22 years agocpu_switch now works, for kthreads at least.
benno [Thu, 28 Feb 2002 12:06:49 +0000 (12:06 +0000)]
cpu_switch now works, for kthreads at least.

22 years agoVarious cleanups.
benno [Thu, 28 Feb 2002 12:00:24 +0000 (12:00 +0000)]
Various cleanups.

22 years ago- Prevent the decrementer interrupt handler from nesting.
benno [Thu, 28 Feb 2002 11:57:47 +0000 (11:57 +0000)]
- Prevent the decrementer interrupt handler from nesting.
- Catch some more cases of PSL_EE and PSL_RI getting out of sync.

22 years ago- Modify pmap_activate so it only marks the pmap as active.
benno [Thu, 28 Feb 2002 11:55:44 +0000 (11:55 +0000)]
- Modify pmap_activate so it only marks the pmap as active.
- Add a pmap_deactivate function.

22 years agoIn sosend(), enforce the socket buffer limits regardless of whether
iedowse [Thu, 28 Feb 2002 11:22:40 +0000 (11:22 +0000)]
In sosend(), enforce the socket buffer limits regardless of whether
the data was supplied as a uio or an mbuf. Previously the limit was
ignored for mbuf data, and NFS could run the kernel out of mbufs
when an ipfw rule blocked retransmissions.

22 years agoFix vendor ID (mostly obtained from rev 1.1).
mike [Thu, 28 Feb 2002 11:02:49 +0000 (11:02 +0000)]
Fix vendor ID (mostly obtained from rev 1.1).

Make use of `static' storage-class for local functions.

Replace uses of `u_quad_t' with `uintmax_t'.

22 years agoAdd -D_KERNEL to CFLAGS for ntohl().
nyan [Thu, 28 Feb 2002 10:08:23 +0000 (10:08 +0000)]
Add -D_KERNEL to CFLAGS for ntohl().

22 years agoRemove the now unused NTOHL() family of macros.
mike [Thu, 28 Feb 2002 09:59:00 +0000 (09:59 +0000)]
Remove the now unused NTOHL() family of macros.

22 years agoChange two occurrences of HTONS() to use htons().
mike [Thu, 28 Feb 2002 09:56:31 +0000 (09:56 +0000)]
Change two occurrences of HTONS() to use htons().

22 years agoGC an unused variable in cpu_fork().
benno [Thu, 28 Feb 2002 08:48:58 +0000 (08:48 +0000)]
GC an unused variable in cpu_fork().

22 years agoWarning fix. (Very basic - add the right include so that rdtsc() gets
markm [Thu, 28 Feb 2002 08:37:18 +0000 (08:37 +0000)]
Warning fix. (Very basic - add the right include so that rdtsc() gets
a prototype).

22 years ago- Fix panic() message and a couple style nits that snuck in from the
arr [Thu, 28 Feb 2002 08:28:14 +0000 (08:28 +0000)]
- Fix panic() message and a couple style nits that snuck in from the
  recent diagnostics commit (rev. 1.84).

22 years ago- trap -> trap() in panic() string.
arr [Thu, 28 Feb 2002 08:13:55 +0000 (08:13 +0000)]
- trap -> trap() in panic() string.
- Translate the message into some sort of understandable english.
- Fix a couple near-by style nits.

Submitted by: bde

22 years ago- Style(9) makeover.
arr [Thu, 28 Feb 2002 08:01:49 +0000 (08:01 +0000)]
- Style(9) makeover.

Reviewed by: chris, mike

22 years agoFix a minor swap leak.
silby [Thu, 28 Feb 2002 07:41:12 +0000 (07:41 +0000)]
Fix a minor swap leak.

Previously, the UPAGES/KSTACK area of processes/threads would leak memory
at the time that a previously swapped process was terminated.  Lukcily, the
leak was only 12K/proc, so it was unlikely to be a major problem unless you
had an undersized swap partition.

Submitted by: dillon
Reviewed by: silby
MFC after: 1 week

22 years agoNote the the process group is returned locked.
davidc [Thu, 28 Feb 2002 07:06:31 +0000 (07:06 +0000)]
Note the the process group is returned locked.

22 years agoMake MPLOCKED work again in asm files and stringify it explicitly
bmilekic [Thu, 28 Feb 2002 06:17:05 +0000 (06:17 +0000)]
Make MPLOCKED work again in asm files and stringify it explicitly
where necessary.

Reviewed by: jake

22 years agoPLASTER A WARNING THAT TELLS PEOPLE THAT CURRENT HAS DEBUGGING FEATURES
imp [Thu, 28 Feb 2002 05:31:02 +0000 (05:31 +0000)]
PLASTER A WARNING THAT TELLS PEOPLE THAT CURRENT HAS DEBUGGING FEATURES
TURNED ON.

Submitted by: rwatson

Suggest -DNO_WERROR unless you are a developer when building a kernel.

Submitted by: mike

22 years agoMake fork work, at least for kthreads. Switching still has some issues.
benno [Thu, 28 Feb 2002 03:24:07 +0000 (03:24 +0000)]
Make fork work, at least for kthreads.  Switching still has some issues.

22 years agoQuiet bogus gcc warning
peter [Thu, 28 Feb 2002 03:15:53 +0000 (03:15 +0000)]
Quiet bogus gcc warning

22 years ago- Rearrange the sequence of events in powerpc_init() somewhat.
benno [Thu, 28 Feb 2002 03:15:49 +0000 (03:15 +0000)]
- Rearrange the sequence of events in powerpc_init() somewhat.
- Catch another instance of PSL_EE being cleared without PSL_RI.

22 years agoTag istallion.c with nowerror (third party)
peter [Thu, 28 Feb 2002 03:14:37 +0000 (03:14 +0000)]
Tag istallion.c with nowerror (third party)

22 years agoFix warning (const lost in assignment), harmless in this case.
peter [Thu, 28 Feb 2002 03:13:47 +0000 (03:13 +0000)]
Fix warning (const lost in assignment), harmless in this case.

22 years agoFix warnings (prototype for nonexisting static function)
peter [Thu, 28 Feb 2002 03:12:00 +0000 (03:12 +0000)]
Fix warnings (prototype for nonexisting static function)

22 years ago- When enabling/disabling interrupts, set/clear both PSL_EE and PSL_RI, not
benno [Thu, 28 Feb 2002 03:07:48 +0000 (03:07 +0000)]
- When enabling/disabling interrupts, set/clear both PSL_EE and PSL_RI, not
  just PSL_EE.
- Make cpu_critical_enter/exit independant of save_intr/restore_intr.

22 years agoFix warnings.. bootpc_init() and related.
peter [Thu, 28 Feb 2002 03:07:35 +0000 (03:07 +0000)]
Fix warnings.. bootpc_init() and related.

22 years agoAdd a missing (.
benno [Thu, 28 Feb 2002 03:04:33 +0000 (03:04 +0000)]
Add a missing (.

22 years agoFix warnings
peter [Thu, 28 Feb 2002 03:02:20 +0000 (03:02 +0000)]
Fix warnings

22 years agoFix warnings
peter [Thu, 28 Feb 2002 02:56:29 +0000 (02:56 +0000)]
Fix warnings

22 years agoImplement the following functions:
benno [Thu, 28 Feb 2002 02:54:16 +0000 (02:54 +0000)]
Implement the following functions:
- pmap_remove
- pmap_kremove
- pmap_qremove

22 years agoRemove most of the usage of critical_enter/exit.
benno [Thu, 28 Feb 2002 02:45:10 +0000 (02:45 +0000)]
Remove most of the usage of critical_enter/exit.

I put these in to match the use of spl*() in the NetBSD code I was basing this
on, but it appears to cause problems.

I'm doing this in a separate commit so as to be able to refer back if locking
becomes an issue at a later stage.

22 years agoSome style(9) whitespace fixes and a correction to the copyright.
brooks [Thu, 28 Feb 2002 01:03:27 +0000 (01:03 +0000)]
Some style(9) whitespace fixes and a correction to the copyright.

22 years agoFix another boatload of warnings (missing include) and a cosmetic
peter [Thu, 28 Feb 2002 00:14:04 +0000 (00:14 +0000)]
Fix another boatload of warnings (missing include) and a cosmetic
-Wuninitialized warning.

22 years agoFix warnings.
peter [Thu, 28 Feb 2002 00:09:17 +0000 (00:09 +0000)]
Fix warnings.

22 years agoFix debug printf formats
peter [Thu, 28 Feb 2002 00:06:59 +0000 (00:06 +0000)]
Fix debug printf formats

22 years agoFor unbraking "make release": s/client/common/g
matusita [Thu, 28 Feb 2002 00:02:33 +0000 (00:02 +0000)]
For unbraking "make release": s/client/common/g
(these files are sitting in src/contrib/isc-dhcp/common, not .../client.)

Confirmed by: 5.0-CURRENT-20020228-JPSNAP at snapshots.jp.FreeBSD.org

22 years agoFix some unused warnings. One function is only used if
peter [Wed, 27 Feb 2002 23:59:35 +0000 (23:59 +0000)]
Fix some unused warnings.  One function is only used if
TWE_SHUTDOWN_NOTIFICATION is defined, the other two are never used.

22 years agoFix warnings (comment out unused tables that are taking space in the
peter [Wed, 27 Feb 2002 23:57:18 +0000 (23:57 +0000)]
Fix warnings (comment out unused tables that are taking space in the
kernel)

22 years agoTag if_ie.c, isp.c and isp_pci.c as nowerror (qualifier problems, and third
peter [Wed, 27 Feb 2002 23:55:42 +0000 (23:55 +0000)]
Tag if_ie.c, isp.c and isp_pci.c as nowerror (qualifier problems, and third
party code)

22 years agoFix warnings
peter [Wed, 27 Feb 2002 23:53:02 +0000 (23:53 +0000)]
Fix warnings

22 years agoFix warnings. The driver would be more useful with a DRIVER_MODULE()
peter [Wed, 27 Feb 2002 23:47:45 +0000 (23:47 +0000)]
Fix warnings.  The driver would be more useful with a DRIVER_MODULE()
entry so that it actually can do something.

22 years agoWhen searching an object that was opened with RTLD_GLOBAL, search its DAG too.
des [Wed, 27 Feb 2002 23:44:50 +0000 (23:44 +0000)]
When searching an object that was opened with RTLD_GLOBAL, search its DAG too.

PR: bin/25059
Approved by: jdp
MFC after: 3 weeks

22 years agoRepair some warnings. These are accessing idle portions of shared memory
peter [Wed, 27 Feb 2002 23:43:19 +0000 (23:43 +0000)]
Repair some warnings.  These are accessing idle portions of shared memory
buffers.

22 years agoRemove support for FreeBSD 2.x from this driver.
imp [Wed, 27 Feb 2002 23:34:02 +0000 (23:34 +0000)]
Remove support for FreeBSD 2.x from this driver.

22 years agoFix warning (unused variable)
peter [Wed, 27 Feb 2002 23:32:45 +0000 (23:32 +0000)]
Fix warning (unused variable)

Submitted by: LINT, -Werror

22 years agoMark a few more broken pci drivers as nowerror.
peter [Wed, 27 Feb 2002 23:30:33 +0000 (23:30 +0000)]
Mark a few more broken pci drivers as nowerror.

22 years agoFix warning (passing wrong arg to arp_ifinit())
peter [Wed, 27 Feb 2002 23:28:57 +0000 (23:28 +0000)]
Fix warning (passing wrong arg to arp_ifinit())

Submitted by: LINT, -Werror

22 years agoMark stallion.c as nowerror (known broken, this is a #warning)
peter [Wed, 27 Feb 2002 23:23:54 +0000 (23:23 +0000)]
Mark stallion.c as nowerror (known broken, this is a #warning)

22 years agoFix format warning.
peter [Wed, 27 Feb 2002 23:21:46 +0000 (23:21 +0000)]
Fix format warning.

Submitted by: LINT, -Werror

22 years agoThe do { } while (0) macro example was missing a space after the 'e'.
imp [Wed, 27 Feb 2002 23:16:34 +0000 (23:16 +0000)]
The do { } while (0) macro example was missing a space after the 'e'.

22 years agoUse SIGUSR1 to propogate SIGURG to the child; security measures prevent
fenner [Wed, 27 Feb 2002 22:45:10 +0000 (22:45 +0000)]
Use SIGUSR1 to propogate SIGURG to the child; security measures prevent
 the parent from sending SIGURG itself to the child.  This fixes the
 problem of occasionally failing to pass the window size.

22 years agoImprove error reporting - report error message when there is one, or
fenner [Wed, 27 Feb 2002 22:38:59 +0000 (22:38 +0000)]
Improve error reporting - report error message when there is one, or
 report a short read if that's what we're reporting.

22 years agoUse network byte order for the ICMP sequence number. This is only
fenner [Wed, 27 Feb 2002 22:37:22 +0000 (22:37 +0000)]
Use network byte order for the ICMP sequence number.  This is only
 significant when monitoring packets on another system, since
 otherwise the ICMP sequence number is only used by the ping client.

22 years agoUse login_getpwclass() instead of login_getclass() so that default
green [Wed, 27 Feb 2002 22:36:30 +0000 (22:36 +0000)]
Use login_getpwclass() instead of login_getclass() so that default
mapping of user login classes works.

Obtained from: TrustedBSD project
Sponsored by: DARPA, NAI Labs

22 years agoMinor style(9) nit + utilize ELF features for the FreeBSD ID.
obrien [Wed, 27 Feb 2002 22:13:02 +0000 (22:13 +0000)]
Minor style(9) nit + utilize ELF features for the FreeBSD ID.

22 years agoBack out part of KSE/M2 that snuck in under the radar: changing the
jhb [Wed, 27 Feb 2002 22:12:29 +0000 (22:12 +0000)]
Back out part of KSE/M2 that snuck in under the radar: changing the
prototype of bzero() on the i386 to have a volatile first argument.

Requested by: bde, jake

22 years agoCheck if string is not NULL, not *string, before setting *string.
green [Wed, 27 Feb 2002 22:00:44 +0000 (22:00 +0000)]
Check if string is not NULL, not *string, before setting *string.

22 years agoWe do not support the sparc platform.
obrien [Wed, 27 Feb 2002 21:59:16 +0000 (21:59 +0000)]
We do not support the sparc platform.

22 years agoMinor WS change to improve readability.
obrien [Wed, 27 Feb 2002 21:53:27 +0000 (21:53 +0000)]
Minor WS change to improve readability.

22 years agoUnbreak fore adapters from POV of warnings.
julian [Wed, 27 Feb 2002 21:12:44 +0000 (21:12 +0000)]
Unbreak fore adapters from POV of warnings.
Define the atm_dev_free() routine so that its OK to free stuff that is defined
as volatile. Note this doesn't FORCE the arguemnts to be volatile,
just says that it's not an error if it is..

22 years agoRemove now unused struct proc *p.
imp [Wed, 27 Feb 2002 20:57:57 +0000 (20:57 +0000)]
Remove now unused struct proc *p.

Approved by: jhb

22 years ago- Insert a space in the panic() string in order more clearly show the
arr [Wed, 27 Feb 2002 20:20:42 +0000 (20:20 +0000)]
- Insert a space in the panic() string in order more clearly show the
  message.

22 years agoAdd a comment explaining a code change..
julian [Wed, 27 Feb 2002 19:24:55 +0000 (19:24 +0000)]
Add a comment explaining a code change..

22 years agoUse thread0.td_ucred instead of proc0.p_ucred. This change is cosmetic
jhb [Wed, 27 Feb 2002 19:18:10 +0000 (19:18 +0000)]
Use thread0.td_ucred instead of proc0.p_ucred.  This change is cosmetic
and isn't strictly required.  However, it lowers the number of false
positives found when grep'ing the kernel sources for p_ucred to ensure
proper locking.

22 years ago- Change namei() to use td_ucred instead of p_ucred.
jhb [Wed, 27 Feb 2002 19:15:29 +0000 (19:15 +0000)]
- Change namei() to use td_ucred instead of p_ucred.
- Change the hack in access() that uses a temporary credential to set
  td_ucred to the temp cred instead of p_ucred.

22 years ago- Change unp_listen() to accept a thread rather than a proc as its second
jhb [Wed, 27 Feb 2002 19:14:01 +0000 (19:14 +0000)]
- Change unp_listen() to accept a thread rather than a proc as its second
  argument.
- Use td_ucred in unp_listen() instead of p_ucred.

22 years agoFix Giant leakage in several error cases in __semctl().
jhb [Wed, 27 Feb 2002 19:12:14 +0000 (19:12 +0000)]
Fix Giant leakage in several error cases in __semctl().

22 years agoAdd a comment about an unlocked access to p_ucred that will go away in
jhb [Wed, 27 Feb 2002 19:10:50 +0000 (19:10 +0000)]
Add a comment about an unlocked access to p_ucred that will go away in
the near future.

22 years agoUse td_ucred and thus remove now unneeded proc lock acquire and release.
jhb [Wed, 27 Feb 2002 19:09:30 +0000 (19:09 +0000)]
Use td_ucred and thus remove now unneeded proc lock acquire and release.

22 years agoUse some black make(1) magic to make pkg_install build even without
sobomax [Wed, 27 Feb 2002 19:03:15 +0000 (19:03 +0000)]
Use some black make(1) magic to make pkg_install build even without
Makefile.inc in parent directory (e.g. when checked out from cvs as a module).

MFC after: 2 weeks

22 years agokill __P.
alfred [Wed, 27 Feb 2002 18:51:53 +0000 (18:51 +0000)]
kill __P.

22 years agoadd assertions in the places where giant is required to catch when
alfred [Wed, 27 Feb 2002 18:49:58 +0000 (18:49 +0000)]
add assertions in the places where giant is required to catch when
the pipe is locked and shouldn't be.

initialize pipe->pipe_mtxp to NULL when creating pipes in order not
to trip the above assertions.

swap pipe lock with giant around calls to pipe_destroy_write_buffer()

pipe_destroy_write_buffer issue noticed by: jhb

22 years agoAdd lukemftpd to the mix.
obrien [Wed, 27 Feb 2002 18:37:21 +0000 (18:37 +0000)]
Add lukemftpd to the mix.

22 years agoBuild LukeM's ftpd.
obrien [Wed, 27 Feb 2002 18:35:26 +0000 (18:35 +0000)]
Build LukeM's ftpd.

22 years agoSimple p_ucred -> td_ucred changes to start using the per-thread ucred
jhb [Wed, 27 Feb 2002 18:32:23 +0000 (18:32 +0000)]
Simple p_ucred -> td_ucred changes to start using the per-thread ucred
reference.

22 years agoTemporarily lock Giant while we update td_ucred. The proc lock doesn't
jhb [Wed, 27 Feb 2002 18:30:01 +0000 (18:30 +0000)]
Temporarily lock Giant while we update td_ucred.  The proc lock doesn't
fully protect p_ucred yet so Giant is needed until all the p_ucred
locking is done.  This is the original reason td_ucred was not used
immediately after its addition.  Unfortunately, not using td_ucred is
not enough to avoid problems.  Since p_ucred could be stale, we could
actually be dereferencing a stale pointer to dink with the refcount, so
we really need Giant to avoid foot-shooting.  This allows td_ucred to
be safely used as well.

22 years agoPut the last added source file in proper order.
obrien [Wed, 27 Feb 2002 18:29:11 +0000 (18:29 +0000)]
Put the last added source file in proper order.
(and dcc the committer a dictionary)

22 years agoFix a horribly suboptimal algorithm in the vm_daemon.
silby [Wed, 27 Feb 2002 18:03:02 +0000 (18:03 +0000)]
Fix a horribly suboptimal algorithm in the vm_daemon.

In order to determine what to page out, the vm_daemon checks
reference bits on all pages belonging to all processes.  Unfortunately,
the algorithm used reacted badly with shared pages; each shared page
would be checked once per process sharing it; this caused an O(N^2)
growth of tlb invalidations.  The algorithm has been changed so that
each page will be checked only 16 times.

Prior to this change, a fork/sleepbomb of 1300 processes could cause
the vm_daemon to take over 60 seconds to complete, effectively
freezing the system for that time period.  With this change
in place, the vm_daemon completes in less than a second.  Any system
with hundreds of processes sharing pages should benefit from this change.

Note that the vm_daemon is only run when the system is under extreme
memory pressure.  It is likely that many people with loaded systems saw
no symptoms of this problem until they reached the point where swapping
began.

Special thanks go to dillon, peter, and Chuck Cranor, who helped me
get up to speed with vm internals.

PR: 33542, 20393
Reviewed by: dillon
MFC after: 1 week

22 years agoAdding Boot-loader translation
gioria [Wed, 27 Feb 2002 17:57:49 +0000 (17:57 +0000)]
Adding Boot-loader translation

22 years ago1) Remove -Wall from Makefile.
dwmalone [Wed, 27 Feb 2002 17:57:00 +0000 (17:57 +0000)]
1) Remove -Wall from Makefile.
2) WARNs fixes (rename option to lookup_option to avoid shadowing, rename
   argv to argv1 to avoid shadowing, const stuff, prototypes, __unused).
3) Remove "register"s.

22 years agoAdd gem and hme.
tmm [Wed, 27 Feb 2002 17:46:04 +0000 (17:46 +0000)]
Add gem and hme.

22 years agoAdd a driver for the Sun GEM (Gigabit) and ERI (100 Mb/s) PCI ethernet
tmm [Wed, 27 Feb 2002 17:41:06 +0000 (17:41 +0000)]
Add a driver for the Sun GEM (Gigabit) and ERI (100 Mb/s) PCI ethernet
adaptors, ported from NetBSD.