Age | Commit message (Collapse) | Author |
|
ok jmc@
|
|
activity for anyone. Bye bye COMPAT_NETBSD. ok tedu@, deraadt@, and many others
in the hackathon room.
|
|
mbuf constants from MD param.h to MI param.h.
Besides being the same on every arch, things will
most probly break if any arch has different values
then the others.
The NMBCLUSTERS constants needs to be MD though;
ok miod@,krw@,claudio@
|
|
oustside, seqencer, toghether, nessissary, etc.
|
|
splassert_ctl > 0 in __predict_false().
ok deraadt@
|
|
have cpu_info now, so kill the option.
eyeballed by jsg@ and grange@
|
|
option. Every architecture implements mutexes now.
|
|
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)
|
|
|
|
machines. Instead -- build one solid clean MI version, and thenchange all
the architectures to use it. ok various people, tested on almost all cases.
(it is a 10094 line diff..)
|
|
ok miod@, deraadt@
|
|
|
|
unconditionnaly.
|
|
more work coming soon.
kettenis@ ok
|
|
__BUS_SPACE_ALIGNED_ADDRESS.
|
|
|
|
|
|
device tree and matching locators in the bootpath string components with
code that tries to match the PROM node of the devices to bootpath components.
This way we don't need a list of possible boot devices that needs to be
tweaked whenever we try to support new Sun hardware (or when dlg plugs a
new fancy storage controller in a sparc64 machine).
Tested by many.
|
|
access to PCIe config space, which is larger than normal PCI config space.
|
|
ALIGNBYTES32 has been gone for years.
ok art
|
|
implementation this far. Uses the %tick register (as microtime was
using before).
kettenis@ ok
|
|
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
|
|
|
|
ok kettenis@
|
|
this should hopefully stop people from asking me about it (-:
|
|
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.
|
|
physical memory to avoid problems on UltraSPARC-III and III+.
|
|
discussed with miod@ who has the same changes hiding in one of his trees.
|
|
statclock(), do not bother doing this in userret() anymore. As a result,
userret() does not need its pc and ticks arguments, simplify.
|
|
ok miod@
|
|
|
|
for cpu_swapin() on hppa* which is kept).
|
|
|
|
Spotted by tsi@, and shamelessly stolen from his diff. Fixes several
UltraSPARC-III machines wich have more than one memory bank filled.
ok deraadt@
|
|
in the six cases using "512".
As DEV_BSHIFT is always 9, this should be a no-op.
"no objections" miod@ "I can't see any problem doing this." pedro@
|
|
it again.
ok miod@, jason@
|
|
|
|
|
|
|
|
Do not try to map the message buffer with large pages, it's just as easy to
simply use as many 8KB pages as necessary. From NetBSD.
|
|
|
|
ok jason@
|
|
extend str2hex to handle long's, and teach it that strings starting with 'w',
consisting of hex digits are really just hex digits
match fp to scsibus (fiber port)
match fiber channel portwwn/lun to it's bootpath variables
result: with a small change to isp(mailed to mjacob) we can correctly
autoconf with a boot path of:
/pci@8,600000/SUNW,qlc@4/fp@0,0/disk@w21000004cf948498,0:a/bsd
ie. schizo/ isp/ scsisbus/disk with port WWN of 21...98, lun 0, partition a
|
|
|
|
|
|
|
|
make the "generic" PCI bus enumeration code the standard case which
gets used if nothing else is defined in MD headers,
introduce a "PCI_MACHDEP_ENUMERATE_BUS" CPP definition which can
be used by MD headers (just 1 port atm) to plug in special code
rev 1.62
* Implement a machine-dependent pci_enumerate_bus() for sparc64 which
uses OFW device nodes to enumerate the bus. When a PCI bus that is
behind a bridge is attached, pci_attach_hook() allocates a new PCI
chipset tag for the new bus and sets it's "curnode" to the OFW node
of the bridge. This is used as a starting point when enumerating
that bus. Root busses get the OFW node of the host bridge (psycho).
rev 1.59
Split the code that enumerates the PCI bus and that actually probes
for a device into two functions:
* pci_probe_device() actually probes/attaches the device specified
by the provide pcitag_t.
* pci_enumerate_bus() enumerates the bus, and calls pci_probe_device()
for each device on the bus. A pci_enumerate_bus_generic() is provided
which implements the old method of doing this: If something found at
dev0/func0, determine number of functions and probe each one.
From NetBSD
ok kettenis@
Tested on a good number of amd64/i386/macppc/sparc64 systems
|
|
found by drahn@
|