Age | Commit message (Collapse) | Author |
|
match the real hardware level used for them).
So instead of keeping a few loose variables to store the runtime computed
psr bits to use for the logical IPL levels, just keep a complete array of
all psr values. Thus we can have a correct splassert_check().
|
|
|
|
|
|
cpu_disklabel can go away, since nothing anymore needs to use it; ok miod
|
|
|
|
to support hotplug media on most architectures. disklabel setup and
verification done using new helper functions. Disklabels must *always*
have a correct checksum now. Same code paths are used to learn on-disk
location disklabels, to avoid new errors sneaking in. Tested on almost all
cases, testing help from todd, kettenis, krw, otto, dlg, robert, gwk, drahn
|
|
|
|
|
|
help miod@, art@
ok deraadt@
|
|
device_register() function -- even if it does nothing. reduces the
cpp-based blather different between architectures
idea ok'd by miod; tested on all architectures (except a few miod will
need to cleanup because he has them)
|
|
unconditionnaly.
|
|
__BUS_SPACE_ALIGNED_ADDRESS.
|
|
it's a good idea to use atomic.h operations on it. This mechanic
change updates all bit operations on p_flag to atomic_{set,clear}bits_int.
Only exception is that P_OWEUPC is set by MI code before calling
need_proftick and it's automatically cleared by ADDUPC. There's
no reason for MD handling of that flag since everyone handles it the
same way.
kettenis@ ok
|
|
rt and such; tested and ok miod drahn
|
|
right now that are supposed to be atomic with respect to interrupts and
SMP: atomic_setbits_int and atomic_clearbits_int.
All architectures other than i386 and amd64 get dummy implementations
since at first we'll be replacing operations that are done with
"a |= bit" and "a &= ~bit" today. More proper implementations will follow
kettenis@, miod@ ok
|
|
use of MD spl code bowels. No functional change.
|
|
pointers, to be used for the various bus_space operations.
intio devices no longer need to pass an intiobase-relative address to
bus_space_map.
|
|
|
|
for cpu_swapin() on hppa* which is kept).
|
|
faster uvm initialization.
|
|
registers to program an 1GB untranslated window over the physical memory,
and use it to define __HAVE_PMAP_DIRECT for faster pool operation.
|
|
which bites the dust.
|
|
declarations in <machine/{cpu,param}.h> and elsewhere.
|
|
m68k-based platforms.
|
|
makes uvm_page.o smaller.
|
|
ok miod@
|
|
rename the types using the __ protected namespace (e.g. __size_t).
Idea from FreeBSD.
|
|
|
|
When not running on serial console, the PROM will pick the ``internal''
graphics device, and if it does not exist, the DIO device with the lowest
select code, and will resort to SGC devices if no internal or DIO device
was found.
However, the current logic would search for a certain frame buffer type first,
then for its best hardware location, following the order they are listed
in conf.c.
By replacing gazillions of almost-exactly-duplicated frame buffer code with
one single instance, which is device type-agnostic, we can match the PROM
(and the bootblocks) logic again. Plus this saves a few KB of code!
|
|
This means we are no longer aborting the console scans even if the final
console has been found, but on the other hand makes some logic simpler;
plus it will be necessary for upcoming scode vs device loop order reversal.
No user-visible change.
|
|
No functional change.
|
|
cruft for old compilers and environments. there may be a 2nd round of
polishing after this; ok miod and others
|
|
|
|
Model 382 can be identified with a unique MMUID value; model 362 is told
from model 360 by probing for the frodo chip. Their built-in frame buffer
is not supported at the moment.
Matching information derived from messages to the NetBSD mailing lists.
|
|
arches; except on sparc where the range is 4-8 for !sun4m and 4-64 for sun4m,
selected at runtime.
|
|
public.
|
|
|
|
|
|
console-dependent routines know which pass they are being invoked in.
The first pass is the usual console detection code. The second pass runs
after uvm is initialized, and will allow devices which need VM services to
run to claim the console.
|
|
'Looks fine' millert@, ok miod@
|
|
|
|
|
|
Main features:
- MI hil drivers, allowing live plug/unplug of devices, and the keyboard
does not need to be at id 1 anymore.
- SGC bus support on 4xx models. SGC frame buffers are supported too, but
not as console, though you can use them as a regular glass terminal if
you run a getty on ttyC0. Currently not compiled-in, awaiting for an sti(4)
fix to be commited.
- HP-UX compatibility interfaces are removed. grfinfo and hilinfo are removed.
X11 support is currently broken by these changes; X.org X11R6 support will
be available very soon.
Tested on hyperion and 4 different flavours of catseye/topcat/kathmandu; other,
older frame buffers (davinci, gatorbox and renaissance) could not been tested
but should work; please report any regression.
|
|
rather than <include/cpu.h>.
|
|
based on the DIO-II space probing results.
This does not win much for now, but this will be very useful for SGC bus
support (coming soon).
|
|
|
|
not visible unless _KERNEL is defined. OK miod@
|
|
|
|
|
|
|