| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
needs it.
Fixed style in invlpg().
Sorted recently renamed functions.
Added prototypes in the non-gcc section for recently added/renamed
functions.
|
|
|
|
|
|
|
| |
dependent operation, and not really a correct name. invltlb and invlpg
are more descriptive, and in the case of invlpg, a real opcode.
Additionally, fix the tlb management code for 386 machines.
|
| |
|
|
|
|
|
| |
use the invlpg opcode instead of the nasty looking .byte directives.
There are some other minor micro-level code improvements to pmap.c
|
|
|
|
|
|
| |
lcall 7,0 (ie: ldt slot 0) and lcall 0x87,0 (ldt slot 16, it's shifted
three bits to the left). I was fiddling with this so long ago, I don't
recall the specifics.
|
|
|
|
|
|
| |
with this quite a while ago when somebody reported a BSD/OS 2.1 binary
that wouldn't run. I'm pretty sure they tried it and I'm pretty sure
they mentioned to me that the patch worked.
|
|
|
|
|
|
| |
for /dev/random and /dev/urandom. Both are always writable, urandom is
always readable, and /dev/random is readable when >= 8 bits are in the
pool.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
comparisons in the inb() and outb() macros. I decided that int args
are OK here. Any type that can hold a u_int16_t without overflow
is correct, and 32-bit types are optimal.
Introduced a few tens of warnings (100 in LINT) for use of pessimized
(short) types for the port arg. Only a few drivers are affected by
this. u_short pessimizations aren't detected.
Added `__extension__' before the statement-expression in inb() so
that it can be compiled without warnings by gcc -pedantic.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the prototype.
Put the jump table for i486_bzero() in the data section. This
speeds up i486_bzero() a little on Pentiums without significantly
affecting its speed on 486's.
Don't waste time falling through 14 nop's to return from do1 in
i486_bzero().
Use fastmove() for counts >= 1024 (was > 1024). Cosmetic.
Fixed profiling of fastmove().
Restored meaningful labels from the pre-1.1 version in fastmove().
Local labels are evil.
Fixed (high resolution non-) profiling of __bb_init_func().
|
|
|
|
|
|
| |
I maintain that it saves more power to simply "hlt" the CPU than to
spend tons of time trying to tell the APM bios to do the same.
In particular if you do it 100 times a second...
|
|
|
|
|
| |
and `show cbstat'. The pgrpdump code was previously controlled by
`#ifdef DEBUG'.
|
|
|
|
|
|
|
|
|
| |
instead of 0 if there is no input.
syscons.c:
Added missing spl locking in sccncheckc(). Return the same value as
sccngetc() would. It is wrong for sccngetc() to return non-ASCII, but
stripping the non-ASCII bits doesn't help.
|
|
|
|
| |
I don't know if it actually works.
|
|
|
|
|
|
|
|
|
| |
(1) Add PC98 support to apm_bios.h and ns16550.h, remove pc98/pc98/ic
(2) Move PC98 specific code out of cpufunc.h (to pc98.h)
(3) Let the boot subtrees look more alike
Submitted by: The FreeBSD(98) Development Team
<freebsd98-hackers@jp.freebsd.org>
|
|
|
|
|
|
|
| |
modified. Pages that are removed by the pageout daemon were
the worst affected. Additionally, numerous minor cleanups,
including better handling of busy page table pages. This
commit fixes the worst of the pmap problems recently introduced.
|
|
|
|
|
|
| |
USERCONFIG to enable
VISUAL_USERCONFIG to get the gui stuff too.
Requested by: pst
|
|
|
|
| |
with the last major pmap commits.
|
| |
|
|
|
|
|
|
| |
biosextmem > 65536, but biosextmem is a 16-bit quantity so it is
guaranteed to be < 65536. Related cruft for biosbasemem was
mostly cleaned up in rev.1.26.
|
| |
|
|
|
|
|
|
| |
The default level works with minimal overhead, but one can also enable
full, efficient use of a 512K cache. (Parameters can be generated
to support arbitrary cache sizes also.)
|
| |
|
|
|
|
|
|
| |
autoconf.c by merging icu.h. Fix a couple of typos.
Submitted by: The FreeBSD(98) Development Team.
|
| |
|
|
|
|
|
|
|
| |
better and much simpler to understand, and works just as well (better)
as a bonus.
Submitted by: bde
|
|
|
|
| |
Reviewed by: bde
|
|
|
|
|
|
|
|
|
|
|
| |
returned by the RTC, use the bootblock supplied value. Also, map the
'stolen by BIOS' memory in the same manner as the ISA-hole memory, since
it is really an extenstion of the BIOS. This is necessary for 32-bit
BIOS functions such as APM support on laptops, and the loss of memory
for non-necessary functions seems to be at most 4k.
Reviewed by: phk
Obtained from: email conversation with jtk@atria.com
|
| |
|
|
|
|
|
|
|
| |
machine-dependent macro and passing it to all machine-dependent
macros.
Eliminated the state variable for the GUPROF case.
|
| |
|
|
|
|
| |
Sponsored by: Juniper Networks, Inc. <pst@jnx.com>
|
| |
|
|
|
|
|
| |
also add the at_shutdown callout list, and change the one user of
the present (broken) method (the vn driver) to use the new scheme.
|
| |
|
|
|
|
| |
Eliminates an obnoxious warning.
|
| |
|
| |
|
|
|
|
| |
Submitted by: A JOSEPH KOSHY <koshy@india.hp.com>
|
|
|
|
|
|
|
|
|
| |
nearest .01 Mhz rather than simply truncating it downwards.
This hack makes this 89.999928 Mhz clock correctly round to the closer
90.00-MHz rather than 89.99-MHz:
> i586 clock: 89999928 Hz, i8254 clock: 1193152 Hz
> CPU: Pentium (90.00-MHz 586-class CPU)
|
| |
|
|
|
|
|
|
|
| |
Changed i586_ctr_bias from long long to u_int. Only the low 32 bits
are used now that microtime uses a multiplication to do the scaling.
Previously the high 32 bits had to match those of rdtsc() to prevent
overflow traps and invalid timeval adjustments.
|
|
|
|
| |
ffs(). (That is to say, it searches in the opposite direction.)
|
|
|
|
| |
in interrupt handlers.
|
|
|
|
|
|
|
| |
sleep(). Implemented wakeup_one() which may be used in the future to combat
the "thundering herd" problem for some special cases.
Reviewed by: dyson
|
|
|
|
|
|
|
|
|
|
|
| |
early enough when the dump device is specified in the config file.
Removed stale comment about configuration root and swap devices.
Don't bother clearing dumplo when dumpdev is set to NODEV. Everything
is controlled by dumpdev.
Fixed the kern.dumpdev sysctl. Writes were handle bogusly.
|
|
|
|
|
|
|
| |
handled bogusly.
Centralized the setting of all the frequency variables. Set these
variables atomically. Some new ones aren't used yet.
|
|
|
|
|
|
|
| |
problem with the 'shell scripts' was found, but there was a 'strange'
problem found with a 486 laptop that we could not find. This commit
backs the code back to 25-jul, and will be re-entered after the snapshot
in smaller (more easily tested) chunks.
|
| |
|
|
|
|
| |
pte hint (for now), and general code cleanup.
|
|
|
|
|
| |
remove some (currently) gratuitious tests for PG_V... This bug could
have caused various anomolous (temporary) behavior.
|