Commit Graph

71361 Commits

Author SHA1 Message Date
Jake Burkholder
9bc8610af5 Don't demap the requested page from the tlb in pmap_kenter or pmap_kremove,
even on the local cpu.  These are no longer used unsafely in MI code, and
the MD code has been adjusted to compensate.
2002-03-17 01:53:51 +00:00
Jake Burkholder
bfd501b637 Fix a problem where kernel text could become unmapped when clearing out all
the user mappings from the tlb due to the context numbers rolling over.  The
store to the internal mmu register must be followed by a membar #Sync before
much else happens to "avoid data corruption", so we use special inlines which
both disable interrupts and ensure that the compiler will not insert extra
instructions between the two.  Also, load the tte tag and check if the context
is nucleus context, rather than relying on the priviledged bit which doesn't
actually serve any purpose in our design, and check the lock bit too for
sanity.
2002-03-17 01:51:32 +00:00
Jake Burkholder
2f3e2b8795 Use the tlb data access register to map the kernel tsb, rather than the data
in register.  The latter uses the random replacment algorithm to pick the
slot, we want a specific slot.
2002-03-17 01:45:29 +00:00
Kirk McKusick
a0595d0249 Add a flags parameter to VFS_VGET to pass through the desired
locking flags when acquiring a vnode. The immediate purpose is
to allow polling lock requests (LK_NOWAIT) needed by soft updates
to avoid deadlock when enlisting other processes to help with
the background cleanup. For the future it will allow the use of
shared locks for read access to vnodes. This change touches a
lot of files as it affects most filesystems within the system.
It has been well tested on FFS, loopback, and CD-ROM filesystems.
only lightly on the others, so if you find a problem there, please
let me (mckusick@mckusick.com) know.
2002-03-17 01:25:47 +00:00
Jake Burkholder
ac59490b5e Convert all pmap_kenter/pmap_kremove pairs in MI code to use pmap_qenter/
pmap_qremove.  pmap_kenter is not safe to use in MI code because it is not
guaranteed to flush the mapping from the tlb on all cpus.  If the process
in question is preempted and migrates cpus between the call to pmap_kenter
and pmap_kremove, the original cpu will be left with stale mappings in its
tlb.  This is currently not a problem for i386 because we do not use PG_G on
SMP, and thus all mappings are flushed from the tlb on context switches, not
just user mappings.  This is not the case on all architectures, and if PG_G
is to be used with SMP on i386 it will be a problem.  This was committed by
peter earlier as part of his fine grained tlb shootdown work for i386, which
was backed out for other reasons.

Reviewed by:	peter
2002-03-17 00:56:41 +00:00
Maxim Sobolev
3646fbdacb When loading a font allow suffix specifying its size be omited, in which
case use size of the currently displaying font as a suffix. For example,
when the when the size of the currently displayed font is 8x8 the
following command will load koi8-r-8x8.fnt.

# vidcontrol -f koi8-r

MFC after:	2 weeks
2002-03-16 23:35:51 +00:00
Maxim Sobolev
95bd81d145 Extend CONS_GETINFO ioctl to provide information about size of the currently
displayed font.

MFC after:	2 weeks
2002-03-16 23:31:15 +00:00
Warner Losh
654d58ca24 Don't call the bios if the interrupt appaers to be already routed. Some
older PCI BIOSes hate this and this leads to panics when it is done.  Also,
assume that a uniquely routed interrupt is already routed.  This also
seems to help some older laptops with feable BIOSes cope.
2002-03-16 23:02:41 +00:00
Warner Losh
048d9f99d1 o Rework the identify routine a little, merging it with NetBSD's wi.
o Add exerpimental support for identifying lucent cards.  All of mine
  come back with ID of 1, but NetBSD committed code for 5.  So accept
  both.
o rename wi_prism2_ver to wi_firmware_ver so that we could, if necessary,
  do special things for lucent cards too.
o Bring in a small part of the changes from airtools: The wi_cmd function
  now takes two additional arguments.  I didn't bring in their ioctls yet.
o eliminate the use of LE16TOH, and remove its define.
o Print the firmware as if there were 100 versions instead of 10.  This means
  that 6.1 and 6.10 aren't confusing to people.  We now print 6.01 in the
  former case.

# A good junior hacker project would be to merge the NetBSD, FreeBSD, and
# OpenBSD drivers into one source base.
2002-03-16 22:59:15 +00:00
Mark Murray
81703db930 Punt to attic files not in 5.6.1 OR not needed by FreeBSD. 2002-03-16 22:35:55 +00:00
Mark Murray
3ef3e55298 Restore vendor RCS tag. 2002-03-16 22:17:19 +00:00
Mark Murray
0e8d8a09a5 Update conflict merge for 5.6.1. This is a rotten hack, but it
works for all FreeBSD purposes.
2002-03-16 22:15:33 +00:00
Mark Murray
19026919f5 Bump the FreeBSD version to mark the import of Perl 5.6.1. 2002-03-16 21:44:02 +00:00
Mark Murray
5ad400ab91 Update for Perl 5.6.1 2002-03-16 21:41:09 +00:00
Mark Murray
d429f05204 Correct a comment; FreeBSD-4 --> FreeBSD-5. 2002-03-16 21:39:26 +00:00
Mark Murray
ee37ad2298 Update for Perl 5.6.1. 2002-03-16 21:36:08 +00:00
Mark Murray
2d278eb6c2 Resolve conflicts. 2002-03-16 21:30:07 +00:00
David E. O'Brien
56fe559c91 GCC 3.1's cpp no longer searches for includes using hints from #line. 2002-03-16 20:45:01 +00:00
David E. O'Brien
917356f5f6 Revert part of rev 1.3 -- we need the calls to _init and _fini. 2002-03-16 20:38:46 +00:00
Mark Murray
fd787c8c7a This commit was generated by cvs2svn to compensate for changes in r92444,
which included commits to RCS files with non-trunk default branches.
2002-03-16 20:14:31 +00:00
Mark Murray
cf90a21ebd Vendor import Perl 5.6.1 2002-03-16 20:14:31 +00:00
Mark Murray
535b847ca7 This commit was generated by cvs2svn to compensate for changes in r92442,
which included commits to RCS files with non-trunk default branches.
2002-03-16 20:14:30 +00:00
Mark Murray
fc75d06644 Vendor import Perl 5.6.1 2002-03-16 20:14:30 +00:00
Crist J. Clark
903163ac3e Only put standard FreeBSD directories in the PATH. If the
administrator wishes to run commands outside of the PATH, he should
use a full pathname for the executable or set the PATH as appropriate
in any local startup scripts.

PR:		misc/35770
2002-03-16 20:01:25 +00:00
David E. O'Brien
d27504cd28 Fix unaligned access in the GDB binary on Alpha.
Submitted by:	gallatin
2002-03-16 19:33:23 +00:00
Jens Schweikhardt
07baa40bd0 Typo: s/happenes/happens/
MFC after:	3 days
2002-03-16 18:20:44 +00:00
Jens Schweikhardt
eae023f0a6 Typo: s/frequencly/frequency/
MFC after:	3 days
2002-03-16 18:17:55 +00:00
Jens Schweikhardt
341229f512 Typo: s/dependant/dependent/
MFC after:	3 days
2002-03-16 18:12:49 +00:00
Jens Schweikhardt
559ff927b2 Typo: s/conjuction/conjunction/ 2002-03-16 18:10:40 +00:00
Jens Schweikhardt
34309e4a6a Typo: s/compatability/compatibility/
MFC after:	3 days
2002-03-16 18:09:35 +00:00
Jens Schweikhardt
46612f8261 Plural bogon: s/childs/children/
MFC after:	3 days
2002-03-16 18:07:07 +00:00
Jens Schweikhardt
1a6417ba86 Typo: s/avalable/available/
MFC after:	3 days
2002-03-16 18:02:30 +00:00
Jens Schweikhardt
f1d353ec65 Typo: s/authoritive/authoritative/ 2002-03-16 18:00:44 +00:00
Jens Schweikhardt
e710ad3d0c Typo: s/acknowlegement/acknowledgement/ 2002-03-16 17:56:40 +00:00
Jens Schweikhardt
c86e69862f Typo: s/Procotol/Protocol/
MFC after:	3 days
2002-03-16 17:47:32 +00:00
Jens Schweikhardt
129c0ad77a Typo: s/Kensignton/Kensington/
MFC after:	3 days
2002-03-16 17:40:38 +00:00
Jens Schweikhardt
27bbb168b1 Typo: s/Hauppage/Hauppauge/
MFC after:	3 days
2002-03-16 17:34:29 +00:00
Jens Schweikhardt
f1a4969a04 Correctly capitalize MHz and GHz.
MFC after:	3 days
2002-03-16 17:31:46 +00:00
Jens Schweikhardt
9d0e429cbe Typo; s/Filesytems/Filesystems/
MFC after:	3 days
2002-03-16 17:26:07 +00:00
David E. O'Brien
d6cfbc78d7 This commit was generated by cvs2svn to compensate for changes in r92422,
which included commits to RCS files with non-trunk default branches.
2002-03-16 16:50:57 +00:00
David E. O'Brien
146a1e500c Vendor import of bwk's 2002-02-10 release. 2002-03-16 16:50:57 +00:00
Søren Schmidt
4e887e1915 Add more functionality to the CDIOCREADSUBCHANNEL ioctl.
PR: 26644
2002-03-16 15:56:54 +00:00
Søren Schmidt
698d5a2c84 Fix 64bit arch problems. 2002-03-16 15:55:20 +00:00
Søren Schmidt
e1a86e393c Remove useless splXXX set. 2002-03-16 15:54:41 +00:00
Mark Murray
589622caaa Document NO_PERL. 2002-03-16 15:14:41 +00:00
Mark Murray
aee10446c1 Use NO_PERL as well as NOPERL. The latter is going to (eventually) go. 2002-03-16 15:12:13 +00:00
Mark Murray
9365c8a336 Allow the use of NO_PERL as well as NOPERL. The latter is going to
be removed.
2002-03-16 14:55:37 +00:00
Mark Murray
fc2cee85fd Allow the use of the NO_PERL as well as NOPERL. The latter is
going to go.
2002-03-16 14:53:47 +00:00
Poul-Henning Kamp
14e4cefcf8 Hmm, talk about optimizer-fodder. Make the DIOCGDVIRGIN hack work again. 2002-03-16 13:47:57 +00:00
Bruce Evans
bccfa3f5d5 Fixed some style bugs:
- 2 redundant forward declarations of "struct thread"
- missing function parameter names in prototypes
- misformatting
2002-03-16 12:50:02 +00:00