Commit Graph

117977 Commits

Author SHA1 Message Date
ru
3c584ad346 MFC: 1.892: Be cross-arch friendly. 2005-11-16 08:03:33 +00:00
ru
650c9150fd MFC: 1.5: Style. 2005-11-16 08:01:07 +00:00
ru
bbcc7bbd63 MFC: Finish the removal of threads support in ../config.mk,v 1.15. 2005-11-16 07:59:50 +00:00
ru
43f7bf1231 MFC: 1.9: Recognize all current standard node types. 2005-11-16 07:56:37 +00:00
ru
7ae9945c2e MFC: 1.6: Apply the .PHONY attribute to the ../make*/make* targets. 2005-11-16 07:53:16 +00:00
ru
90e132327c MFC: 1.28: Expand tabs. 2005-11-16 07:50:36 +00:00
ru
e44b41c79d MFC: Sync calendar up with HEAD, including adding the Ukrainian calendar. 2005-11-16 07:47:44 +00:00
ru
244b8589ce MFC: 1.2: Remove redundant include. 2005-11-16 07:39:24 +00:00
ru
4bcf743b75 MFC: 1.58: Fix up comment. 2005-11-16 07:36:51 +00:00
ru
594edb79ad MFC: 1.146: Long overdue, keep up with mbuf.h,v 1.148. 2005-11-16 07:34:44 +00:00
ru
699d115c5a MFC: 1.7: teach lorder(8) to work with .a libraries. 2005-11-16 07:30:02 +00:00
ru
7d62c554b2 MFC: 1.13: Drop useless here SHLIB_MAJOR. 2005-11-16 07:26:26 +00:00
ru
96a98747e8 MFC:
- Pass -i to pwd_mkdb(8) to ignore locking failures.  This can be useful
  for NFS installing world/kernel to another machine.

- Require that DESTDIR be set before running "make distribution".
2005-11-16 07:24:02 +00:00
ru
7f5d5be77d MFC the following:
o Makefile: 1.319, 1,320
o Makefile.inc1: 1.500, 1.508, 1.509, 1.513, 1.515, 1.517

- Embed the "buildkernels" target into the "universe" target so that
  the "make -n universe" output looks more builder (human) friendly.

- Wrap the "universe" target into a ".if make(universe)"; it's only
  intended to be called directly so it should be safe to do it.

- Make the `distrib-dirs' target official and working properly
  when cross-building (installing).  (This is useful for NFS
  installing world/kernel to another architecture machine.)

- Remove duplicate settings from LIB32MAKE definition.
- Install lib32 bits using the real install(1) program.
- clean ${LIB32TMP} in _worldtmp
- clean ${OBJTREE}/lib32 in _cleanobj
- ensure that ${WORLDTMP} exists in build32

- Require DESTDIR to be set when cross-installing.

- Force a full Groff upgrade during the build.
2005-11-16 06:56:09 +00:00
ru
513cdf04e1 MFC: Groff 1.19.2. 2005-11-15 22:07:00 +00:00
jhb
672ab68dc7 MFC: Fixup locking and mark MPSAFE. 2005-11-15 19:59:04 +00:00
jhb
e00cc4a09b MFC: Sync driver up with head (mostly) including adding locking and marking
MPSAFE.
2005-11-15 19:54:10 +00:00
damien
fa66428877 er, backout my last commit.
committed to the wrong branch.
2005-11-15 17:52:35 +00:00
damien
499e36f784 Add some initial bits (currently unused) for upcoming AMRR support.
AMRR = Adaptive Multi Rate Retry algorithm
More information: http://www-sop.inria.fr/rapports/sophia/RR-5208.html
2005-11-15 17:48:49 +00:00
alc
953ef877b2 MFC revision 1.525
When support for 2MB/4MB pages was added in revision 1.148 an error was
  made in pmap_protect(): The pmap's resident count should not be reduced
  unless mappings are removed.

  The errant change to the pmap's resident count could result in a later
  pmap_remove() failing to remove any mappings if the errant change has set
  the pmap's resident count to zero.

MFC revision 1.526
  Decouple the unrefing of a page table page from the removal of a pv entry.
  In other words, change pmap_remove_entry() such that it no longer unrefs
  the page table page.  Now, it only removes the pv entry.

MFC revision 1.527
  Eliminate unneeded diagnostic code.

MFC revision 1.528
  Eliminate unneeded diagnostic code.

  Eliminate an unused #include.  (Kernel stack allocation and deallocation
  long ago migrated to the machine-independent code.)

MFC revision 1.529
  Simplify the page table page reference counting by pmap_enter()'s change of
  mapping case.

  Eliminate a stale comment from pmap_enter().

MFC revision 1.530
  When pmap_allocpte() destroys a 2/4MB "superpage" mapping it does not
  reduce the pmap's resident count accordingly.  It should.

MFC revision 1.532
  Eliminate unnecessary TLB invalidations by pmap_enter().  Specifically,
  eliminate TLB invalidations when permissions are relaxed, such as when a
  read-only mapping is changed to a read/write mapping.  Additionally,
  eliminate TLB invalidations when bits that are ignored by the hardware,
  such as PG_W ("wired mapping"), are changed.
2005-11-15 05:54:54 +00:00
peter
2c2074d8c3 MFC: compensate for removal of pcb->pcb_rflags. 2005-11-15 00:26:31 +00:00
peter
52c2c8deb5 MFC: eliminate pcb_rflags, replacing it with padding. It just wastes
cpu cycles.
2005-11-15 00:26:00 +00:00
jkim
93c90b8175 MFC: agp_amd64 1.8, 1.9 and agpreg.h 1.15.
- Add a work-around for nForce3, ULi, and VIA chipsets.  Aperture base
address encoded in misc. control register and AGP bridge seems to be
inconsistent with some BIOSes.  Instead of relying on BIOS settings,
we just take the initial aperture size and encode them for both
miscellaneous control register and AGP bridge.

- Add preliminary ULi M1689 chipset support.  The idea was taken from Linux
because hardware and documentation are unavailable.  Not tested.

- Add one more VIA chipset PCI ID taken from Linux driver.
2005-11-14 22:48:30 +00:00
suz
582a8d68a8 MFC 1.115
fixed a bug that uRPF does not work properly for an IPv6 packet bound for the sending machine itself
  (this is a bug introduced due to a change in ip6_input.c:Rev.1.81.2.2)
2005-11-14 22:33:35 +00:00
thompsa
a44878b29e MFC r1.59, List IFT_BRIDGE as a valid type. 2005-11-14 22:25:33 +00:00
anholt
fe7e62c722 MFC: ATI IGP AGP driver. 2005-11-14 21:14:14 +00:00
anholt
efd8d6d5f0 MFC r1.9: Fix nforce2 with Radeon DRI by setting bits to set the mappings
active, and use volatile in a necessary place.
2005-11-14 21:10:39 +00:00
wilko
884626ed2a MFC: Listen to jhb, and remove bogus claim of support of DE425. 2005-11-14 20:40:00 +00:00
jhb
9bab8bbba1 MFC: Sync this driver up with HEAD including bus-dma support and some other
cleanups such as removing some more old cruft and using kernel functions
like m_defrag() and m_devget() rather than homerolling our own.
2005-11-14 19:29:56 +00:00
cvs2svn
6d64926b05 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-11-14 18:38:00 +00:00
rwatson
ef3f374f31 Merge if_em.c:1.82 from HEAD to RELENG_6:
Put probe-time printf of adapter speed and duplex behind bootverbose:
  since the link takes a bit to negotiate, the information is pretty
  much never available during the probe.  As such, the boot output
  pretty much always prints N/A for speed and duplex.  Since we print
  out the output of ifconfig during the user space boot, this early
  boot information is also generally redundant, and added to the noise.
2005-11-14 10:40:10 +00:00
alc
245bd5abe3 MFC
Pass a value of type vm_prot_t to pmap_enter_quick() so that it determine
  whether the mapping should permit execute access.

  Revision  Changes    Path
  1.179     +2 -2      src/sys/alpha/alpha/pmap.c
  1.527     +4 -2      src/sys/amd64/amd64/pmap.c
  1.37      +3 -3      src/sys/arm/arm/pmap.c
  1.531     +2 -2      src/sys/i386/i386/pmap.c
  1.163     +4 -3      src/sys/ia64/ia64/pmap.c
  1.100     +3 -2      src/sys/powerpc/powerpc/pmap.c
  1.149     +3 -2      src/sys/sparc64/sparc64/pmap.c
  1.72      +1 -1      src/sys/vm/pmap.h
  1.207     +2 -1      src/sys/vm/vm_fault.c
  1.368     +2 -2      src/sys/vm/vm_map.c
2005-11-13 21:45:49 +00:00
mux
de9480872e MFC:
ls.c r1.81 and ls.1 r1.92:
  date: 2005/11/10 00:02:32;  author: mux;  state: Exp;  lines: +16 -8
  Add a -I option to disable the automatic -A flag for the super-user.

  ls.1 r1.93:
  date: 2005/11/10 14:26:50;  author: mux;  state: Exp;  lines: +2 -1
  Mention the non-standardness of the -I option in ls(1).
2005-11-13 17:06:49 +00:00
maxim
d8bcf95cfa MFC revs. 1.2, 1.3: fix the path to aac_ioctl.h and style. 2005-11-13 16:37:57 +00:00
maxim
17afe6c387 MFC rev. 1.3: update list of holidays in Russia. 2005-11-13 16:35:50 +00:00
alc
7b49c93e5f MFC
Introduce the vm.boot_pages tunable and sysctl, which controls the number
  of pages reserved to bootstrap the kernel memory allocator.
2005-11-13 08:44:25 +00:00
alc
bad48fafaa MFC revisions 1.307 and 1.308
Consider the zero-copy transmission of a page that was wired by mlock(2).
  If a copy-on-write fault occurs on the page, the new copy should inherit
  a part of the original page's wire count.

  If a physical page is mapped by two or more virtual addresses, transmitted
  by the zero-copy sockets method, and written to before the transmission
  completes, we need to destroy all of the existing mappings to the page,
  not just the one that we fault on.  Otherwise, the mappings will no longer
  be to the same page and changes made through one of the mappings will not
  be visible through the others.
2005-11-13 07:38:15 +00:00
cperciva
8dfd629a38 MFC documentation and example configuration for portsnap REFUSE directives. 2005-11-13 06:48:50 +00:00
cperciva
c80184e2d6 Merge HEAD's portsnap into RELENG_6. Significant changes are:
1. phttpget (and thus portsnap) now understands the HTTP_PROXY_AUTH
environment variable and basic HTTP proxy authentication.
2. portsnap.8 now contains a privacy notice.
3. portsnap can now ignore parts of the tree (similar to cvsup
"refuse" directives).
4. portsnap reacts sensibly if host(1) does not exist.
2005-11-13 06:45:36 +00:00
alc
3256409909 MFC revision 1.130
Introduce a new lock for the purpose of synchronizing access to the
  UMA boot pages.

  Disable recursion on the general UMA lock now that startup_alloc() no
  longer uses it.

  Eliminate the variable uma_boot_free.  It serves no purpose.

  Note: This change eliminates a lock-order reversal between a system
  map mutex and the UMA lock.  See
  http://sources.zabbadoz.net/freebsd/lor.html#109 for details.
2005-11-13 06:22:34 +00:00
csjp
a102c6cbd3 MFC revision 1.47
Giant push down
2005-11-13 03:14:00 +00:00
csjp
c3f59aac38 MFC revision 1.51
Giant push down.
2005-11-13 03:12:32 +00:00
csjp
599113c21e MFC Log:
Attempt to complete the userspace integration of POSIX.1e extended ACLs.
  This includes adding support for ACLs into cp(1) and mv(1) userspace
  utilities.

  For mv(1), if _PC_ACL_EXTENDED is in effect for the source AND destination
  operands, the destination file's ACLs shall reflect the source.

  For cp(1), if _PC_ACL_EXTENDED is in effect for both source and destination
  operands, and -p has been specified, the ACLs from the source shall be
  preserved on the destination.
2005-11-12 21:21:46 +00:00
dwhite
16e12cca71 MFC:
src/sys/fs/devfs/devfs_vnops.c		1.128
 src/sys/kern/vfs_subr.c		1.652

This is a workaround for a complicated issue involving VFS cookies and devfs.
The PR and patch have the details. The ultimate fix requires architectural
changes and clarifications to the VFS API, but this will prevent the system
from panicking when someone does "ls /dev" while running in a shell under the
linuxulator.

PR:		88249
Submitted by:   "Devon H. O'Dell" <dodell@ixsystems.com>
2005-11-12 21:21:27 +00:00
csjp
fb6dcae1e3 Sync with head:
-style(9) nits

MFC Log:
  Fix long standing race condition associated with how lockf uses open(2)
  for mutual exclusion:

  A brief description of the problem:

          1) Proc A picks up non-blocking lock on file X
          2) Proc B attempts to pickup lock, fails then waits
          3) Proc C attempts to pickup lock, fails then waits
          4) Proc A releases lock
          5) Proc B acquires lock, release it to pickup a non-blocking version
          6) Proc C acquires lock, release it to pickup a non-blocking version
          7) Both process B and C race each other to pickup lock again

  This occurs mainly because the processes do not keep the lock after they have
  been waiting on it. They drop it, attempt to re-acquire it. (They use the wait
  to notify when the lock has become available then race to pick it up). This
  results in additional CPU utilization during the race, and can also result
  in processes picking locks up out of order.

  This change attempts to correct this problem by eliminating the test/acquire
  race and having the operating system handle it.
2005-11-12 21:00:00 +00:00
csjp
d2b6d2d34e MFC Log:
Un-break processing of device major/minor values with fstat -n. We do
  this by accessing the cdev_priv element of the cdev structure. Looking
  forward we need a better way to handle this, as this structure shouldn't
  be frobbed by userspace.
2005-11-12 20:58:03 +00:00
csjp
223ed343c6 MFC Log:
Convert the primary ACL allocator from malloc(9) to using a UMA zone instead.
  Also introduce an aclinit function which will be used to create the UMA zone
  for use by file systems at system start up.
2005-11-12 20:55:59 +00:00
jhb
09b1e77065 MFC: Include the mp_maxid'th CPU in 'show allpcpu'. 2005-11-11 18:50:45 +00:00
krion
fcf279ed57 MFC: create.h:1.26, main.c:1.37, perform.c:1.81, pkg_create.1:1.69
date: 2005/11/08 20:48:26;  author: krion;  state: Exp;  lines: +1 -0
  Introduce 3 new options for pkg_create(1), -x for using basic regular
  expressions for pkg-name, -E for extended regexps and -G for exact matching.
  These new options are only meaningful when using the -b flag of pkg_create(1),
  and that the default for the -b parameter is now to do glob matching, as in
  other pkg_foo utilities that support package patterns.

  Submitted by:   mux
2005-11-11 08:08:04 +00:00
grehan
f7e8320445 MFC locore.S:r.1.22, ofw_machdep.c:1.14
>  Copy SPRG0-3 registers at boot-time and restore when calling into
>  OpenFirmware. FreeBSD/ppc uses SPRG0 as the per-cpu data area pointer,
>  and SPRG1-3 as temporary registers during exception handling. There
>  have been a few instances where OpenFirmware does require these to
>  be part of it's context, such as cd-booting an eMac.
2005-11-11 05:21:08 +00:00