summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
AgeCommit message (Collapse)Author
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-15UltraSPARC-IV cpus appear a bit different in OpenFirmware than older cpus.Mark Kettenis
Make sure we fetch the right properties such that we don't crash later in the pci bus walking code when we divide by a zero cache line size.
2007-03-15Make sure we find the OpenFirmware node for UltraSPARC-IV cpus.Mark Kettenis
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-03-07For unsupported (yet) Expert3D style frame buffers, attach pcons and attachMiod Vallat
a really dumb wsdisplay to pcons, so that wskbd/wsmouse input drivers can be used for input, and prom for output. This is a band-aid for the release, so that people with such frame buffers do not need to unplug them or switch to serial console to install OpenBSD. Probably not the best way to do this, but this one has a minimal footprint and no tentacles in wscons. ok deraadt@
2007-03-06Implement WSDISPLAYIO_GETSUPPORTEDDEPTH; makes X actually work if you followMark Kettenis
the instructions in /usr/X11R6/README.
2007-03-06Three more Expert3D-like frame buffers we shouldn't attach to yet.Miod Vallat
2007-03-05Add mmap for upa(4). Makes the X wsfb(4) driver actually work instead ofMark Kettenis
crashing the machine on UltraSPARC-III machines with creator(4) framebuffers. ok jason@, tsi@
2007-02-28some older machines have small banks, and the kernel is too big!Theo de Raadt
remove one very rarely used driver; tested by mglocker miod will look at this later ;)
2007-02-28Add Smart Battery Monitor device driver. Provided byAlexander Yurchenko
Aaron Linville <aaron@linville.org> in PR 5398.
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-27nicer panic; kettenis okTheo de Raadt
2007-02-27include alipm, but disabled; ok kettenisTheo de Raadt
2007-02-25Add cas(4). Ad a few missing comments while there.Mark Kettenis
stolen from deraadt@
2007-02-23Print safari error log register if we get a safari interrupt.Mark Kettenis
2007-02-23Establish pci error interrupt after we're done fiddling with schizo's registersMark Kettenis
instead of when we're halfway through.
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-15Don't print the error strings returned by readdisklabel(). If youKenneth R Westerback
need the debug info uncomment the printf's you need. Crude but effective way to suppress 'no disklabel' errors that pop up at the most innconvenient times to frighten users. More elegant method, DPRINTF-like constructs or something, later. "Yay!" marco@ ok deraadt@
2007-02-12Fix the hw.vendor/product sysctls on sparc64, handle the cases whereGordon Willem Klok
banner-name begins with "SUNW," and make a copy of the platform_type buffer before chopping it up, so other/future users of platform_type dont get a rude shock. deraadt asked for this a 100 million years ago before 4.0. tested by pyr, brad, and kettenis. ok kettenis@
2007-02-11Remove _KERNEL_OPT leftovers.Miod Vallat
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-26Deal with zero wraparound in DVMA range checks;Marc Aurele La France
Fix default DVMA range for Schizo's with no "virtual-dma" property; Add TSB size indicator to Schizo & Psycho debugging messages. ok jason@
2007-01-20Do not panic on non-fatal iommu errors.Mark Kettenis
2007-01-16Remove unnecessary ampersands in ADR2CELL macro invocations;Marc Aurele La France
Change OF_printf references to printf, given the former doesn't exist; Clean up formatting, whitespace, unused code, etc. ok miod@, kettenis@
2007-01-16Really print iommu TFAR (instead of CTRL again).Mark Kettenis
2007-01-14Clear error bits in PCI command/status register before establishing PCI errorMark Kettenis
handler.
2007-01-14Provide a bit more diagnostic information in the PCI error handler.Mark Kettenis
2007-01-14Add macros to access Schizo's PCI config space.Mark Kettenis
2007-01-14Add another Tomatillo-specific register.Mark Kettenis
Fix definition of TOM_PCICTRL_DTO_INT.
2007-01-13Print Schizo/Tomatillo version number.Mark Kettenis
2007-01-13Do not match on Expert3D and Expert3D-Lite cards, these will require aMiod Vallat
different driver.
2007-01-12Get rid of some dead code.Mark Kettenis
ok miod@
2007-01-12According to the OpenSolaris sources, the DTO bits are really MMU bit.Mark Kettenis
Add the real DTO bits for Tomatillo.
2007-01-12Do not force the section header to SHT_NOBITS for non-symbol sections;Miod Vallat
crank bootloader version.
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+.
2007-01-09Adjust for USIII to RIO EBus renaming.Mark Kettenis
2007-01-07The associativity of the cache is already taken into account forMark Kettenis
[ide]cache-size, so don't multiply it with [ide]cache-associativity.
2007-01-07Print out mask set revision.Mark Kettenis
2007-01-06Remove bogus code for flushing 32-bit tlb entries. This makes it possible toMark Kettenis
go to more than 4G va space.
2007-01-06Use VM_MAX_KERNEL_ADDRESS instead of KERNEND in pmap_growkernel().Mark Kettenis
2007-01-04Remove some unreachable code.Mark Kettenis
ok jason@
2007-01-03Fix mbg comment: time base -> radio clocks.Marc Balmer
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-30Save pcb in dumppcb when dumping core.Mark Kettenis
ok miod@
2006-12-29Give the UltraSPARC-III its own version of dcache_flush_page(). Fixes problemsMark Kettenis
with svnd(4). Now you can do a full mkr on a v210 (and a blade1k if you're lucky).
2006-12-27Patch a few more D-cache flush instructions on UltraSPARC-III.Mark Kettenis
ok miod@
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.