]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years ago - smb_proc_intr is now spelled smb_td_intr.
Jeff Roberson [Tue, 1 Apr 2003 09:23:24 +0000 (09:23 +0000)]
 - smb_proc_intr is now spelled smb_td_intr.

Noticed by: phk
Pointy hat to: jeffr

21 years ago - p will be unused in cursig() if INVARIANTS is not defined. Access it
Jeff Roberson [Tue, 1 Apr 2003 09:07:36 +0000 (09:07 +0000)]
 - p will be unused in cursig() if INVARIANTS is not defined.  Access it
   through td->td_proc to avoid the unused variable.

Spotted by: Maxim Konovalov <maxim@macomnet.ru>

21 years agoDon't include <sys/buf.h> needlessly.
Poul-Henning Kamp [Tue, 1 Apr 2003 09:02:58 +0000 (09:02 +0000)]
Don't include <sys/buf.h> needlessly.

21 years agoFix KASSERT syntax error.
Poul-Henning Kamp [Tue, 1 Apr 2003 08:57:28 +0000 (08:57 +0000)]
Fix KASSERT syntax error.

21 years agoImplement support for RFC 3514 (The Security Flag in the IPv4 Header).
Matthew N. Dodd [Tue, 1 Apr 2003 08:21:44 +0000 (08:21 +0000)]
Implement support for RFC 3514 (The Security Flag in the IPv4 Header).
(See: ftp://ftp.rfc-editor.org/in-notes/rfc3514.txt)

This fulfills the host requirements for userland support by
way of the setsockopt() IP_EVIL_INTENT message.

There are three sysctl tunables provided to govern system behavior.

net.inet.ip.rfc3514:

Enables support for rfc3514.  As this is an
Informational RFC and support is not yet widespread
this option is disabled by default.

net.inet.ip.hear_no_evil

 If set the host will discard all received evil packets.

net.inet.ip.speak_no_evil

If set the host will discard all transmitted evil packets.

The IP statistics counter 'ips_evil' (available via 'netstat') provides
information on the number of 'evil' packets recieved.

For reference, the '-E' option to 'ping' has been provided to demonstrate
and test the implementation.

21 years agoFix KASSERT syntax errors.
Poul-Henning Kamp [Tue, 1 Apr 2003 08:10:21 +0000 (08:10 +0000)]
Fix KASSERT syntax errors.

Please compile LINT before commiting.

21 years agoRemove the old config interface, the new OAM is sufficiently functional
Poul-Henning Kamp [Tue, 1 Apr 2003 07:33:56 +0000 (07:33 +0000)]
Remove the old config interface, the new OAM is sufficiently functional
now.

21 years agoRemove the old config interface now that the new OAM is functional.
Poul-Henning Kamp [Tue, 1 Apr 2003 07:33:17 +0000 (07:33 +0000)]
Remove the old config interface now that the new OAM is functional.

21 years ago - Adjust the makefiles so we have a per architecture makefile.
Jeff Roberson [Tue, 1 Apr 2003 07:07:38 +0000 (07:07 +0000)]
 - Adjust the makefiles so we have a per architecture makefile.

21 years ago- Add a flags field to struct pcb. Use this to keep track of wether or
Jake Burkholder [Tue, 1 Apr 2003 04:58:50 +0000 (04:58 +0000)]
- Add a flags field to struct pcb.  Use this to keep track of wether or
  not the pcb has floating point registers saved in it.
- Implement get_mcontext and set_mcontext.

21 years ago - Spell SIGSETOR correctly.
Jeff Roberson [Tue, 1 Apr 2003 04:49:12 +0000 (04:49 +0000)]
 - Spell SIGSETOR correctly.

21 years ago- Don't allow tf_wstate to be set in set_regs.
Jake Burkholder [Tue, 1 Apr 2003 04:29:03 +0000 (04:29 +0000)]
- Don't allow tf_wstate to be set in set_regs.
- Clear FPRS_FEF in set_fpregs so the new registers will be reloaded.

21 years agoImplement cpu_set_upcall.
Jake Burkholder [Tue, 1 Apr 2003 04:19:29 +0000 (04:19 +0000)]
Implement cpu_set_upcall.

21 years ago- Rename pcb_fpstate to pcb_ufp (user floating point), and change it to
Jake Burkholder [Tue, 1 Apr 2003 04:02:45 +0000 (04:02 +0000)]
- Rename pcb_fpstate to pcb_ufp (user floating point), and change it to
  a simple array of 64 ints.
- Use a critical section when saving floating point state in cpu_fork
  instead of sched_lock.

21 years ago - Commit the forgotten libthr/sys bits.
Jeff Roberson [Tue, 1 Apr 2003 03:51:08 +0000 (03:51 +0000)]
 - Commit the forgotten libthr/sys bits.

21 years ago - Add libthr but don't hook it up to the regular build yet. This is an
Jeff Roberson [Tue, 1 Apr 2003 03:46:29 +0000 (03:46 +0000)]
 - Add libthr but don't hook it up to the regular build yet.  This is an
   adaptation of libc_r for the thr system call interface.  This is beta
   quality code.

21 years agoRename pcb_fp to pcb_sp, so as to not be confused with floating point
Jake Burkholder [Tue, 1 Apr 2003 03:05:46 +0000 (03:05 +0000)]
Rename pcb_fp to pcb_sp, so as to not be confused with floating point
state.

21 years agoSpecify the M_WAITOK flag explicitly in the MALLOC call to silence a
Tim J. Robbins [Tue, 1 Apr 2003 02:47:09 +0000 (02:47 +0000)]
Specify the M_WAITOK flag explicitly in the MALLOC call to silence a
runtime warning ("Bad malloc flags: 0").

21 years agoGive the M_WAITOK flag explicitly to the MALLOC call to silence a runtime
Tim J. Robbins [Tue, 1 Apr 2003 02:42:02 +0000 (02:42 +0000)]
Give the M_WAITOK flag explicitly to the MALLOC call to silence a runtime
warning ("Bad malloc flags: 0").

21 years agoImplement casuptr.
Jake Burkholder [Tue, 1 Apr 2003 02:37:04 +0000 (02:37 +0000)]
Implement casuptr.

21 years ago - Regen.
Jeff Roberson [Tue, 1 Apr 2003 02:34:21 +0000 (02:34 +0000)]
 - Regen.

21 years ago - thr_exit() should no longer be called with Giant held.
Jeff Roberson [Tue, 1 Apr 2003 02:32:53 +0000 (02:32 +0000)]
 - thr_exit() should no longer be called with Giant held.

21 years ago - Mark the various thr syscalls as MP safe. Previously there was a bug if
Jeff Roberson [Tue, 1 Apr 2003 02:32:07 +0000 (02:32 +0000)]
 - Mark the various thr syscalls as MP safe.  Previously there was a bug if
   this was not done since thr_exit() unwinds giant.

21 years ago - Borrow the KSE single threading code for exec and exit. We use the check
Jeff Roberson [Tue, 1 Apr 2003 01:26:20 +0000 (01:26 +0000)]
 - Borrow the KSE single threading code for exec and exit.  We use the check
   if (p->p_numthreads > 1) and not a flag because action is only necessary
   if there are other threads.  The rest of the system has no need to
   identify thr threaded processes.
 - In kern_thread.c use thr_exit1() instead of thread_exit() if P_THREADED
   is not set.

21 years ago - Regen for umtx.
Jeff Roberson [Tue, 1 Apr 2003 01:22:18 +0000 (01:22 +0000)]
 - Regen for umtx.

21 years ago - Add thr and umtx system calls.
Jeff Roberson [Tue, 1 Apr 2003 01:15:56 +0000 (01:15 +0000)]
 - Add thr and umtx system calls.

21 years ago - Add the kern_umtx.c file to the build.
Jeff Roberson [Tue, 1 Apr 2003 01:13:29 +0000 (01:13 +0000)]
 - Add the kern_umtx.c file to the build.

21 years ago - Include umtx.h in files generated by makesyscalls.sh
Jeff Roberson [Tue, 1 Apr 2003 01:12:24 +0000 (01:12 +0000)]
 - Include umtx.h in files generated by makesyscalls.sh
 - Add system calls for umtx.

21 years ago - Add an entry and a head for the queue of threads blocked on a umtx.
Jeff Roberson [Tue, 1 Apr 2003 01:11:22 +0000 (01:11 +0000)]
 - Add an entry and a head for the queue of threads blocked on a umtx.
 - Add a prototype for thr_exit1().

21 years ago - Add an api for doing smp safe locks in userland.
Jeff Roberson [Tue, 1 Apr 2003 01:10:42 +0000 (01:10 +0000)]
 - Add an api for doing smp safe locks in userland.
 - umtx_lock() is defined as an inline in umtx.h.  It tries to do an
   uncontested acquire of a lock which falls back to the _umtx_lock()
   system-call if that fails.
 - umtx_unlock() is also an inline which falls back to _umtx_unlock() if the
   uncontested unlock fails.
 - Locks are keyed off of the thr_id_t of the currently running thread which
   is currently just the pointer to the 'struct thread' in kernel.
 - _umtx_lock() uses the proc pointer to synchronize access to blocked thread
   queues which are stored in the first blocked thread.

21 years ago - We now have to include umtx.h and ucontext.h in the system call related
Jeff Roberson [Tue, 1 Apr 2003 00:35:12 +0000 (00:35 +0000)]
 - We now have to include umtx.h and ucontext.h in the system call related
   headers.

21 years ago - Regen for thr related system calls.
Jeff Roberson [Tue, 1 Apr 2003 00:34:29 +0000 (00:34 +0000)]
 - Regen for thr related system calls.

21 years ago - Add the four thr related system calls.
Jeff Roberson [Tue, 1 Apr 2003 00:31:37 +0000 (00:31 +0000)]
 - Add the four thr related system calls.

21 years ago - Add kern_thr.c
Jeff Roberson [Tue, 1 Apr 2003 00:30:54 +0000 (00:30 +0000)]
 - Add kern_thr.c

21 years ago - Add two files to support the thr threading interface.
Jeff Roberson [Tue, 1 Apr 2003 00:30:30 +0000 (00:30 +0000)]
 - Add two files to support the thr threading interface.
 - sys/thr.h contains the user space visible api that is intended only for
   use in threading library packages.
 - kern/kern_thr.c contains thr system calls and other thr specific code.

21 years ago - Define a new md function 'casuptr'. This atomically compares and sets
Jeff Roberson [Tue, 1 Apr 2003 00:18:55 +0000 (00:18 +0000)]
 - Define a new md function 'casuptr'.  This atomically compares and sets
   a pointer that is in user space.  It will be used as the basic primitive
   for a kernel supported user space lock implementation.
 - Implement this function in x86's support.s
 - Provide stubs that return -1 in all other architectures.  Implementations
   will follow along shortly.

Reviewed by: jake

21 years ago - In npxgetregs() use the td argument to save the fpu state from and not
Jeff Roberson [Tue, 1 Apr 2003 00:16:32 +0000 (00:16 +0000)]
 - In npxgetregs() use the td argument to save the fpu state from and not
   curthread.  Nothing currently depends on this behavior.
 - Clean up an extra newline.

Obtained from: bde

21 years ago - Add a placeholder for sigwait
Jeff Roberson [Mon, 31 Mar 2003 23:36:40 +0000 (23:36 +0000)]
 - Add a placeholder for sigwait

21 years ago - Regen for the sig*wait* system calls.
Jeff Roberson [Mon, 31 Mar 2003 23:33:45 +0000 (23:33 +0000)]
 - Regen for the sig*wait* system calls.

21 years ago - According to mike@FreeBSD.org SIGTHR should be hiden by
Jeff Roberson [Mon, 31 Mar 2003 23:31:50 +0000 (23:31 +0000)]
 - According to mike@FreeBSD.org SIGTHR should be hiden by
   #ifdef __BSD_VISIBLE

21 years ago - Define sigwait, sigtimedwait, and sigwaitinfo in terms of
Jeff Roberson [Mon, 31 Mar 2003 23:30:41 +0000 (23:30 +0000)]
 - Define sigwait, sigtimedwait, and sigwaitinfo in terms of
   kern_sigtimedwait() which is capable of supporting all of their semantics.
 - These should be POSIX compliant but more careful review is needed before
   we announce this.

21 years agoRevert change 1.201 (removing mapping of VAPPEND to VWRITE).
Thomas Quinot [Mon, 31 Mar 2003 23:26:10 +0000 (23:26 +0000)]
Revert change 1.201 (removing mapping of VAPPEND to VWRITE).
Instead, use the generic vaccess() operation to determine whether
an operation is permitted. This avoids embedding knowledge on
vnode permission bits such as VAPPEND in the NFS client.

PR: kern/46515
vaccess() patch submitted by: "Peter Edwards" <pmedwards@eircom.net>
Approved by: tjr, roberto (mentor)

21 years ago - Catch up with kernel signal changes.
Jeff Roberson [Mon, 31 Mar 2003 22:57:55 +0000 (22:57 +0000)]
 - Catch up with kernel signal changes.

21 years ago - The siglist in the proc holds signals that were blocked by all threads
Jeff Roberson [Mon, 31 Mar 2003 22:57:01 +0000 (22:57 +0000)]
 - The siglist in the proc holds signals that were blocked by all threads
   when they were delivered.  In signotify() check to see if we have
   unblocked any of those signals and post them to the thread.
 - Use td_sigmask instead of p_sigmask in all cases.
 - In sigpending return both signals pending on the thread and proc.
 - Define a function, sigtd(), that finds the appropriate thread to deliver
   the signal to if psignal() has been called instead of tdsignal().
 - Define a function, tdsignal(), that delivers a signal to a specific thread
   or if that thread has the signal blocked it may deliver it to the process
   where it will wait for a thread to unblock it.
 - Since we are delivering signals to a specific thread we do not need to
   abort the sleep of all threads.
 - Rename the old tdsignal() to tdsigwakeup().
 - Save and restore the old signal mask to and from the thread.

21 years ago - Move the NEEDSIGCHK and OLDMASK flags from proc to thread.
Jeff Roberson [Mon, 31 Mar 2003 22:51:19 +0000 (22:51 +0000)]
 - Move the NEEDSIGCHK and OLDMASK flags from proc to thread.
 - Move the signal mask to the thread.
 - Adjust a few comments.

21 years ago - Move p->p_sigmask to td->td_sigmask. Signal masks will be per thread with
Jeff Roberson [Mon, 31 Mar 2003 22:49:17 +0000 (22:49 +0000)]
 - Move p->p_sigmask to td->td_sigmask.  Signal masks will be per thread with
   a follow on commit to kern_sig.c
 - signotify() now operates on a thread since unmasked pending signals are
   stored in the thread.
 - PS_NEEDSIGCHK moves to TDF_NEEDSIGCHK.

21 years agoDo NOT return from an non-interruptable cv_wait, falsely
Julian Elischer [Mon, 31 Mar 2003 22:41:47 +0000 (22:41 +0000)]
Do NOT return from an non-interruptable cv_wait, falsely
claiming to have timed out. I don't know what I was thinking..

21 years ago - Fix two calls to trapsignal() that were still passing in 'struct proc'.
Jeff Roberson [Mon, 31 Mar 2003 22:41:32 +0000 (22:41 +0000)]
 - Fix two calls to trapsignal() that were still passing in 'struct proc'.
   These were missed in my last commit.

21 years ago - Add a signal for thread synchronization. Add an XXX so that maybe
Jeff Roberson [Mon, 31 Mar 2003 22:30:08 +0000 (22:30 +0000)]
 - Add a signal for thread synchronization.  Add an XXX so that maybe
   someone more knowledgeable on standards defined namespaces may ifdef
   this out.

21 years ago - Mark signals which may be delivered to any thread in the process with
Jeff Roberson [Mon, 31 Mar 2003 22:12:09 +0000 (22:12 +0000)]
 - Mark signals which may be delivered to any thread in the process with
   SA_PROC.  Signals without this flag should be directed to a particular
   thread if this is possible.

21 years ago - Change trapsignal() to accept a thread and not a proc.
Jeff Roberson [Mon, 31 Mar 2003 22:02:38 +0000 (22:02 +0000)]
 - Change trapsignal() to accept a thread and not a proc.
 - Change all consumers to pass in a thread.

Right now this does not cause any functional changes but it will be important
later when signals can be delivered to specific threads.

21 years ago - Use sigexit() instead of twiddling the signal mask, catch, ignore, and
Jeff Roberson [Mon, 31 Mar 2003 21:40:47 +0000 (21:40 +0000)]
 - Use sigexit() instead of twiddling the signal mask, catch, ignore, and
   action bits to allow SIGILL to work as expected.  This brings this file in
   line with other architectures.

21 years agoAdd a facility allowing processes to inform the VM subsystem they are
Wes Peters [Mon, 31 Mar 2003 21:09:57 +0000 (21:09 +0000)]
Add a facility allowing processes to inform the VM subsystem they are
critical and should not be killed when pageout is looking for more
memory pages in all the wrong places.

Reviewed by: arch@
Sponsored by: St. Bernard Software

21 years agoAdd missing ()'s so that these drivers all compile again.
John Baldwin [Mon, 31 Mar 2003 20:22:00 +0000 (20:22 +0000)]
Add missing ()'s so that these drivers all compile again.

Noticed by: jake
Tested on: i386 (compile)

21 years ago- Allow the physical memory size that will be actually used by the kernel to
Jake Burkholder [Mon, 31 Mar 2003 19:56:55 +0000 (19:56 +0000)]
- Allow the physical memory size that will be actually used by the kernel to
  be overridden by setting hw.physmem.
- Fix a vm_map_find arg, we don't want to find space.
- Add tracing and statistics for off colored pages.
- Detect "stupid" pmap_kenters (same virtual and physical as existing
  mapping), and do nothing in that case.

21 years agoIf we fail to find our PCI ID in attach (this should never happen), then
John Baldwin [Mon, 31 Mar 2003 19:24:37 +0000 (19:24 +0000)]
If we fail to find our PCI ID in attach (this should never happen), then
just return ENXIO directly instead of calling tl_detach() since that would
panic since the softc mutex isn't initialized until after this check.

21 years agoUse new GEOM OAM. Kernels have supported this for a number of days, so
Poul-Henning Kamp [Mon, 31 Mar 2003 18:38:31 +0000 (18:38 +0000)]
Use new GEOM OAM.  Kernels have supported this for a number of days, so
people should be OK.

21 years agoRemove some debugging in the new OAM[*] and add a debug flag for other
Poul-Henning Kamp [Mon, 31 Mar 2003 18:35:37 +0000 (18:35 +0000)]
Remove some debugging in the new OAM[*] and add a debug flag for other
parts of it.

[*] I've been asked what "OAM" means:  It's an acronym used in the
telecom industry, "Operations And Maintenance", and there it covers
anything from a single unlabeled led on the frontpanel the the full
nightmare of CMIP for SS7.

21 years agoMatch "serial" as well as "se".
Jake Burkholder [Mon, 31 Mar 2003 18:21:52 +0000 (18:21 +0000)]
Match "serial" as well as "se".

21 years agoRelease errata can also contain information uncovered late in the
Bruce A. Mah [Mon, 31 Mar 2003 18:12:56 +0000 (18:12 +0000)]
Release errata can also contain information uncovered late in the
release cycle (after the release notes are closed).  Note this fact.

21 years agoNew release notes/errata: SA-03:07.
Bruce A. Mah [Mon, 31 Mar 2003 17:38:18 +0000 (17:38 +0000)]
New release notes/errata:  SA-03:07.

Submitted by: gshapiro

21 years agoClean up locking and resource management for pci/if_*
Nate Lawson [Mon, 31 Mar 2003 17:29:43 +0000 (17:29 +0000)]
Clean up locking and resource management for pci/if_*

- Remove locking of the softc in the attach method, instead depending on
  bus_setup_intr being at the end of attach (delaying interrupt enable until
  after ether_ifattach is called)
- Call *_detach directly in the error case of attach, depending on checking
  in detach to only free resources that were allocated.  This puts all
  resource freeing in one place, avoiding thinkos that lead to memory leaks.
- Add bus_child_present check to calls to *_stop in the detach method to
  be sure hw is present before touching its registers.
- Remove bzero softc calls since device_t should do this for us.
- dc: move interrupt allocation back where it was before.  It was unnecessary
  to move it.  This reverts part of 1.88
- rl: move irq allocation before ether_ifattach.  Problems might have been
  caused by allocating the irq after enabling interrupts on the card.
- rl: call rl_stop before ether_ifdetach
- sf: call sf_stop before ether_ifdetach
- sis: add missed free of sis_tag
- sis: check errors from tag creation
- sis: move dmamem_alloc and dmamap_load to happen at same time as tag creation
- sk: remove duplicate initialization of sk_dev
- ste: add missed bus_generic_detach
- ti: call ti_stop before ether_ifdetach
- ti: add missed error setting in ti_rdata alloc failure
- vr: add missed error setting in I/O, memory mapping cases
- xl: add missed error setting in I/O, memory mapping cases
- xl: remove multi-level goto on attach failure
- xl: move dmamem_alloc and dmamap_load to happen at same time as tag creation
- Calls to free(9) are unconditional because it is valid to call free with a
  null pointer.

Reviewed by: imp, mdodd

21 years ago- when using a child process instead of a thread, change the child's
Dag-Erling Smørgrav [Mon, 31 Mar 2003 13:48:18 +0000 (13:48 +0000)]
- when using a child process instead of a thread, change the child's
  name to reflect its role
- try to handle expired passwords a little better

MFC after: 1 week

21 years agoIf an ssh1 client initiated challenge-response authentication but did
Dag-Erling Smørgrav [Mon, 31 Mar 2003 13:45:36 +0000 (13:45 +0000)]
If an ssh1 client initiated challenge-response authentication but did
not respond to challenge, and later successfully authenticated itself
using another method, the kbdint context would never be released,
leaving the PAM child process behind even after the connection ended.

Fix this by automatically releasing the kbdint context if a packet of
type SSH_CMSG_AUTH_TIS is follwed by anything but a packet of type
SSH_CMSG_AUTH_TIS_RESPONSE.

MFC after: 1 week

21 years agoEnable cpp(1) warnings in system headers. GCC is oriented on
Ruslan Ermilov [Mon, 31 Mar 2003 13:10:51 +0000 (13:10 +0000)]
Enable cpp(1) warnings in system headers.  GCC is oriented on
glibc which is externally maintained, so GCC ships with these
warnings turned off by default.  This is also consistent with
the src/contrib/gcc/c-lex.c,v 1.2 change.

21 years agoSlightly improve buildworld times by excluding crunchide(1)
Ruslan Ermilov [Mon, 31 Mar 2003 12:58:33 +0000 (12:58 +0000)]
Slightly improve buildworld times by excluding crunchide(1)
and kgzip(8) from the list of cross-tools during the normal,
non-"make release" buildworld.

Also, don't gratuitously build them, btxld(8) and elf2aout(1)
for native architecture builds, since they have no known
boostrapping issues along the supported upgrade path.

Prodded by: peter

21 years agoMention that 20021024 entry doesn't affect disks formatted in
Ruslan Ermilov [Mon, 31 Mar 2003 12:46:18 +0000 (12:46 +0000)]
Mention that 20021024 entry doesn't affect disks formatted in
dangerously-dedicated mode.

21 years agoTrace command execution. Grammar and spelling.
Ruslan Ermilov [Mon, 31 Mar 2003 12:41:27 +0000 (12:41 +0000)]
Trace command execution.  Grammar and spelling.

21 years agoNODEVFS cleanup: don't bother with MAKEDEV.
Ruslan Ermilov [Mon, 31 Mar 2003 12:35:26 +0000 (12:35 +0000)]
NODEVFS cleanup: don't bother with MAKEDEV.

21 years agoUnmount the file system and detach an underlying memory disk even
Ruslan Ermilov [Mon, 31 Mar 2003 12:29:31 +0000 (12:29 +0000)]
Unmount the file system and detach an underlying memory disk even
if the script fails somewhere in the middle.

Prodded by: phk

21 years agoRevert revision 1.639 -- the "nodev" mount(8) option restriction
Ruslan Ermilov [Mon, 31 Mar 2003 11:46:49 +0000 (11:46 +0000)]
Revert revision 1.639 -- the "nodev" mount(8) option restriction
does not apply to ${CHROOTDIR} file system since revision 1.712.

21 years agoStrip the .comment section out from the BOOTMFS kernel.
Ruslan Ermilov [Mon, 31 Mar 2003 11:16:53 +0000 (11:16 +0000)]
Strip the .comment section out from the BOOTMFS kernel.

21 years agoDocument the new mac_portacl(4) policy.
Chris Costello [Mon, 31 Mar 2003 08:10:10 +0000 (08:10 +0000)]
Document the new mac_portacl(4) policy.

Sponsored by:   DARPA, Network Associates Laboratories
Obtained from:  TrustedBSD Project

21 years agoDocument the new mac_portacl(4) policy.
Chris Costello [Mon, 31 Mar 2003 08:08:59 +0000 (08:08 +0000)]
Document the new mac_portacl(4) policy.

Sponsored by: DARPA, Network Associates Laboratories
Obtained from: TrustedBSD Project

21 years agoRecent changes to uipc_cow.c have eliminated the need for some sf_buf-
Alan Cox [Mon, 31 Mar 2003 06:25:42 +0000 (06:25 +0000)]
Recent changes to uipc_cow.c have eliminated the need for some sf_buf-
related variables to be global.  Make them either local to sf_buf_init() or
static.

21 years ago - In npxsetregs don't set the floating point if td == fpcurthread not if
Jeff Roberson [Mon, 31 Mar 2003 00:32:43 +0000 (00:32 +0000)]
 - In npxsetregs don't set the floating point if td == fpcurthread not if
   curthread == fpcurthread.  This is important when we're saving the fp
   state for a thread other than curthread as in from set_mcontext.

21 years agoExperimental pam_chroot module (not connected to the build)
Dag-Erling Smørgrav [Sun, 30 Mar 2003 22:58:23 +0000 (22:58 +0000)]
Experimental pam_chroot module (not connected to the build)

21 years agoAdd the ability to send 64-bit scatter/gather elements to aac cards. This
Scott Long [Sun, 30 Mar 2003 21:47:16 +0000 (21:47 +0000)]
Add the ability to send 64-bit scatter/gather elements to aac cards.  This
is enabled when both the size of bus_addr_t > 4 and the card claims support.

Don't wake up the kthread to allocate more commands if we know that we've
already allocated the max number of commands.

21 years ago-{h,k} are mutually exclisive. So only pay attention to the last of the
David E. O'Brien [Sun, 30 Mar 2003 21:25:16 +0000 (21:25 +0000)]
-{h,k} are mutually exclisive.  So only pay attention to the last of the
two when both are given.

21 years agoMFp4: Fix copy&paste English error.
Juli Mallett [Sun, 30 Mar 2003 18:00:24 +0000 (18:00 +0000)]
MFp4: Fix copy&paste English error.

21 years agoMake the 'restart' command work. Otherwise, it would successfully
Mike Makonnen [Sun, 30 Mar 2003 15:52:18 +0000 (15:52 +0000)]
Make the 'restart' command work. Otherwise, it would successfully
stop ipfw, but not enable it again.

Aesthetic changes
o Use positve logic (instead of negative)
o create a 'stop' function, rather than putting the
  commands in the stop_cmd variable.

Submitted by: des
Approved by: markm (mentor) (implicit)

21 years agoretire the "busy" field in bioqueues, it's served it's purpose.
Poul-Henning Kamp [Sun, 30 Mar 2003 10:16:31 +0000 (10:16 +0000)]
retire the "busy" field in bioqueues, it's served it's purpose.

21 years agoFix ATA_DEBUG case breakage.
Søren Schmidt [Sun, 30 Mar 2003 09:27:59 +0000 (09:27 +0000)]
Fix ATA_DEBUG case breakage.

21 years agoPreparation commit before I start on the bioqueue lockdown:
Poul-Henning Kamp [Sun, 30 Mar 2003 08:51:23 +0000 (08:51 +0000)]
Preparation commit before I start on the bioqueue lockdown:

Collect all the bits of bioqueue handing in subr_disk.c, vfs_bio.c is big
enough as it is and disksort already lives in subr_disk.c.

21 years agoRevert 1.21; this was local code that should not have been
Matthew N. Dodd [Sun, 30 Mar 2003 08:13:47 +0000 (08:13 +0000)]
Revert 1.21; this was local code that should not have been
committed.

21 years agoModified release note: sendmail-8.12.9.
Bruce A. Mah [Sun, 30 Mar 2003 06:02:40 +0000 (06:02 +0000)]
Modified release note:  sendmail-8.12.9.

Submitted by: gshapiro

21 years ago- Temporary fix so this compiles with 64 bit bus_addr_t.
Jake Burkholder [Sun, 30 Mar 2003 05:26:01 +0000 (05:26 +0000)]
- Temporary fix so this compiles with 64 bit bus_addr_t.

Sponsored by: DARPA, Network Associates Laboratories
Approved by: scottl

21 years ago- Add support for PAE and more than 4 gigs of ram on x86, dependent on the
Jake Burkholder [Sun, 30 Mar 2003 05:24:52 +0000 (05:24 +0000)]
- Add support for PAE and more than 4 gigs of ram on x86, dependent on the
  kernel opition 'options PAE'.  This will only work with device drivers which
  either use busdma, or are able to handle 64 bit physical addresses.

Thanks to Lanny Baron from FreeBSD Systems for the loan of a test machine
with 6 gigs of ram.

Sponsored by: DARPA, Network Associates Laboratories, FreeBSD Systems

21 years agoCatch up with recent changes.
Matthew N. Dodd [Sun, 30 Mar 2003 05:06:15 +0000 (05:06 +0000)]
Catch up with recent changes.

21 years agoSwitch rl_encap over to using m_defrag.
Mike Silbersack [Sun, 30 Mar 2003 03:45:28 +0000 (03:45 +0000)]
Switch rl_encap over to using m_defrag.

No functional change, the previous rl_encap was correct wrt long
mbuf chains; this just reduces code duplication.

MFC after: 2 weeks

21 years ago - We are not guaranteed that read ahead blocks are not in memory already.
Jeff Roberson [Sun, 30 Mar 2003 02:57:32 +0000 (02:57 +0000)]
 - We are not guaranteed that read ahead blocks are not in memory already.
   Check for B_DELWRI as well as B_CACHED before issuing io on a buffer.  This
   is especially important since we are changing the b_iocmd.

21 years ago- Remove invalid casts.
Jake Burkholder [Sun, 30 Mar 2003 01:44:16 +0000 (01:44 +0000)]
- Remove invalid casts.

Sponsored by: DARPA, Network Associates Laboratories

21 years ago- Convert all uses of pmap_pte and get_ptbase to pmap_pte_quick. When
Jake Burkholder [Sun, 30 Mar 2003 01:16:19 +0000 (01:16 +0000)]
- Convert all uses of pmap_pte and get_ptbase to pmap_pte_quick.  When
  accessing an alternate address space this causes 1 page table page at
  a time to be mapped in, rather than using the recursive mapping technique
  to map in an entire alternate address space.  The recursive mapping
  technique changes large portions of the address space and requires global
  tlb flushes, which seem to cause problems when PAE is enabled.  This will
  also allow IPIs to be avoided when mapping in new page table pages using
  the same technique as is used for pmap_copy_page and pmap_zero_page.

Sponsored by: DARPA, Network Associates Laboratories

21 years agoThe object type can't be OBJT_PHYS in vm_mmap().
Maxime Henrion [Sun, 30 Mar 2003 00:56:20 +0000 (00:56 +0000)]
The object type can't be OBJT_PHYS in vm_mmap().

Reviewed by: peter

21 years agorid is not a pointer to int, but rather just a plain int.
Warner Losh [Sun, 30 Mar 2003 00:30:29 +0000 (00:30 +0000)]
rid is not a pointer to int, but rather just a plain int.

21 years agoDocument what bus_set_resource(9) does. It is used by bus drivers to
Warner Losh [Sun, 30 Mar 2003 00:25:23 +0000 (00:25 +0000)]
Document what bus_set_resource(9) does.  It is used by bus drivers to
bind resources that client drivers later access.

21 years agoFix a bug in the ENOMEM pacing code which probably made it panic systems
Poul-Henning Kamp [Sat, 29 Mar 2003 22:34:37 +0000 (22:34 +0000)]
Fix a bug in the ENOMEM pacing code which probably made it panic systems
after a lot of ENOMEM errors.

21 years ago- Free interrupt handler in ep_free().
Matthew N. Dodd [Sat, 29 Mar 2003 22:27:41 +0000 (22:27 +0000)]
- Free interrupt handler in ep_free().
- Move ep_pccard_detach() to if_ep.c and rename to ep_detach()
- Specify detach methods for all bus frontends.

21 years agoAdd create_geom and destroy_geom methods.
Poul-Henning Kamp [Sat, 29 Mar 2003 22:14:21 +0000 (22:14 +0000)]
Add create_geom and destroy_geom methods.

21 years agoremove a blank line.
Poul-Henning Kamp [Sat, 29 Mar 2003 22:13:32 +0000 (22:13 +0000)]
remove a blank line.