summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/include
AgeCommit message (Collapse)Author
2007-05-29use the right capitalization for `SBus'Igor Sobrado
ok jmc@
2007-05-28Maintaining a broken compatibility layer for a broken OS is not a productiveBob Beck
activity for anyone. Bye bye COMPAT_NETBSD. ok tedu@, deraadt@, and many others in the hackathon room.
2007-05-28Move the MSIZE, MCLSHIFT, MCLBYTES and the MCLOFSETThordur I. Bjornsson
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@
2007-05-26More comment typos from Diego Casati. Including winners like funtion, allmost,Kenneth R Westerback
oustside, seqencer, toghether, nessissary, etc.
2007-05-16splassert_ctl defaults to 1 now, so dont wrap the checks forThordur I. Bjornsson
splassert_ctl > 0 in __predict_false(). ok deraadt@
2007-05-16The world of __HAVEs and __HAVE_NOTs is reducing. All architecturesArtur Grabowski
have cpu_info now, so kill the option. eyeballed by jsg@ and grange@
2007-05-15Remove the MI implementation of mutexes and remove the __HAVE_MUTEXArtur Grabowski
option. Every architecture implements mutexes now.
2007-05-15kill __HAVE_DEVICE_REGISTER by requiring all architectures to have aTheo de Raadt
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)
2007-05-14Move want_resched into struct cpu_info.Mark Kettenis
2007-05-04setroot() was a ugly mix of MI and MD code, with different bugs on differentTheo de Raadt
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..)
2007-05-02Move sparc64 to __HAVE_CPUINFO.Mark Kettenis
ok miod@, deraadt@
2007-05-02Fix typo. ok miod@.Tom Cosgrove
2007-05-01Provide <machine/lock.h> on all platforms, so that MI code may #include itMiod Vallat
unconditionnaly.
2007-04-21Do a simple switch to VM_PAGE_MD. Just the path of least resistance for now,Artur Grabowski
more work coming soon. kettenis@ ok
2007-04-10Remove unused BUS_SPACE_ALIGNED_POINTER, __BUS_SPACE_ADDRESS_SANITY andMiod Vallat
__BUS_SPACE_ALIGNED_ADDRESS.
2007-04-10``it's'' -> ``its'' when the grammar gods require this change.Miod Vallat
2007-04-10slighly -> slightlyMiod Vallat
2007-04-07Replace code that tries to find the boot device by pretending to walk theMark Kettenis
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.
2007-04-01Shift tags when converting them into an address offset. Necessary to supportMark Kettenis
access to PCIe config space, which is larger than normal PCI config space.
2007-03-20Remove unused ALIGN32 macro. It wouldn't work anyway, sinceDeanna Phillips
ALIGNBYTES32 has been gone for years. ok art
2007-03-16Timecounters for sparc64. The cleanest and easiest timecounterArtur Grabowski
implementation this far. Uses the %tick register (as microtime was using before). kettenis@ ok
2007-03-15Since p_flag is often manipulated in interrupts and without biglockArtur Grabowski
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
2007-03-13Add two more SFSR bits found on UltraSPARC-III cpus.Mark Kettenis
2007-03-13Implement proper atomic.h for sparc64.Artur Grabowski
ok kettenis@
2007-02-28SBus parallel port driver, from NetBSD but untested (no printer or cables);Miod Vallat
this should hopefully stop people from asking me about it (-:
2007-02-19only make this interface available to the kernel for now, discussed withaTheo de Raadt
rt and such; tested and ok miod drahn
2007-02-06Add machine/atomic.h to all architectures and define two operationsArtur Grabowski
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
2007-02-03Simple single-processor mutex implementation, simpler than the MI code byMiod Vallat
use of MD spl code bowels. No functional change.
2007-01-12Move kernel virtual address space to make sure it doesn't overlap withMark Kettenis
physical memory to avoid problems on UltraSPARC-III and III+.
2006-12-30Remove __BUS_SPACE_HAS_STREAM_METHODS, the stream methods are a netbsd-ism.Claudio Jeker
discussed with miod@ who has the same changes hiding in one of his trees.
2006-12-24Define PROC_PC. Then, since profiling information is being reported inMiod Vallat
statclock(), do not bother doing this in userret() anymore. As a result, userret() does not need its pc and ticks arguments, simplify.
2006-12-23Provide sparc64-specific DT_XXX constant.Mark Kettenis
ok miod@
2006-12-14Add defines for several SPARC-V9 implementations.Mark Kettenis
2006-11-29Remove cpu_swapin() and cpu_swapout(), they are no longer necessary (exceptMiod Vallat
for cpu_swapin() on hppa* which is kept).
2006-10-27Add a few UltraSPARC-III ASI's.Mark Kettenis
2006-08-31Fix handling of 64-bit quantities in Open Firmware's client interface.Mark Kettenis
Spotted by tsi@, and shamelessly stolen from his diff. Fixes several UltraSPARC-III machines wich have more than one memory bank filled. ok deraadt@
2006-08-12Make all DEV_BSIZE definitions consistant by using (1 << DEV_BSHIFT)Kenneth R Westerback
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@
2006-06-29Fix PMAP_PREFER and make it use VA_ALIAS_MASK to prevent me from breakingMark Kettenis
it again. ok miod@, jason@
2006-06-21add the machdep.kbdreset logic to sparc64 (stuff to use it is coming)Jason Wright
2006-06-21grr... missed this... nuke SUN4U stuff here, tooJason Wright
2006-06-07Remove unused bus_space_probe().Miod Vallat
2006-06-02All I wanted was to fix the bogus PG_SZ macro, but this is better:Miod Vallat
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.
2006-06-02feild -> fieldMiod Vallat
2006-05-31It's bit 13 that's causing the address aliasing in the cache, not bit 14.Mark Kettenis
ok jason@
2006-05-31extend the bootpath values to 64bits, and deal with falloutJason Wright
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
2006-05-20Put explicit barriers in in-line spl functions.Miod Vallat
2006-05-07Missing license block; from art@Miod Vallat
2006-04-09#ifdef lint wraps for va_startTheo de Raadt
2006-03-19rev 1.86Brad Smith
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
2006-03-19remove unused bdbtofsb(bn) macroMartin Reindl
found by drahn@