summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
AgeCommit message (Collapse)Author
2008-04-22Works better, but still needs debug on to work..Theo de Raadt
2008-04-21Work in progress at supporting the Mentor Graphics i2c core found inTheo de Raadt
the Fire pcie hostbridge. Fairly horrid device to deal with.
2008-04-21allow low level audio drivers to specify a default sample format,Jacob Meuser
instead of 8-bit mono mulaw @ 8kHz. this is just the infrastructure; no drivers are specifying a default yet. ok ratchov@, deanna@
2008-04-20Remove the random() function from locore.s (which used sparcv7 instructions,Mark Kettenis
including mulscc to do multiplications) and switch to the generic random.c code.
2008-04-20Implement locking of sun4u TSB entries for MULTIPROCESSOR kernels.Mark Kettenis
Make sun4v code use the new TSB_TAG_LOCKED define.
2008-04-19add a driver flag to force the negotiation of SATA 1 transfersDamien Miller
(1.5Gb/s). Useful where faster speeds are unstable; ok dlg@
2008-04-18use arc4random_uniform() for random number requests that are not aDamien Miller
power of two. use arc4random_bytes() when requesting more than a word of PRNG output. ok deraadt@
2008-04-17Really try to schedule clock ticks at fixed intervals. Make sure hardclock()Mark Kettenis
gets called for every clock tick, even if we miss one.
2008-04-16Support the pcf8584 variant found on the u25/45.Mark Kettenis
2008-04-16Turns out getpropstring() returns an empty string if a property is missingMark Kettenis
instead of NULL. Makes rtc(4) really work on the u25. tested by mikeb@
2008-04-16Make sure tickcmpr_set() always writes a time in the future.Mark Kettenis
2008-04-15Add workaround for UltraSPARC-II errata, where writes to %tick_cmpr wouldMark Kettenis
sometimes fail, which would result in the periodic clock interrupts on a CPU stop. Spotted in a NetBSD commit message, loosely based on code in OpenSolaris.
2008-04-15Add support for the Texas Instruments bq4802 real-time clock found on theMark Kettenis
Ultra 25 and Ultra 45.
2008-04-14Introduce macros to switch to normal and alternate globals and switch toMark Kettenis
use the .section based mechanism to patch them up for sun4v.
2008-04-13Use %g7 to store a pointer `struct cpu_info', and use it whereever possible.Mark Kettenis
2008-04-12Compile kernels with -Wvariable-decl (except on arches with ipmi, for now).Miod Vallat
2008-04-12Introduce macros to get and set the MMU context ID in asm code and switch toMark Kettenis
use the .section based mechanism to patch them up for sun4v.
2008-04-10Make sun4v_broadcast_ipi() do its job by making a single hypervisor callMark Kettenis
instead of repeatedly calling sun4v_send_ipi(). Makes compiling a kernel almost 20% faster.
2008-04-09Add new stub uvm_shutdown() and call it from the right place in MD boot()Theo de Raadt
2008-04-08For some reason access to io space using ASI_PHYS_NON_CACHED_LITTLE doesn'tMark Kettenis
work, so go through the MMU just like we do for mem space. Makes puc(4) work on the t1k, and hopefully fixes the problems on the t2k.
2008-04-08Split the cdev makro for bpftun into two seperate definitions. tun(4) andClaudio Jeker
bpf(4) are different enough so that the split makes sense -- this is necessary to make bpf(4) cloneable. requested deraadt@, OK thib@
2008-04-07Don't grab the kernel biglock for syscalls marked SY_NOLOCK;Thordur I. Bjornsson
make the amd64 code a bit nicer and make the sparc64 match that. tested by a few; OK toby@, dlg@, kettenis@ (for the sparc64 part).
2008-04-03Use atomic operations to invalidate TSB entries.Mark Kettenis
2008-04-03Make ebus(4) work on sun4v.Mark Kettenis
2008-04-03Some cosmetic changes.Mark Kettenis
2008-04-02Add nsgphy(4).Mark Kettenis
2008-04-02For some reason using the ASI_SCRATCHPAD register at offset 0x08 makes theMark Kettenis
t1k freak out upon reboot/halt/powerdown. Use the register at offset 0x10 instead.
2008-03-31Make MULTIPROCESSOR kernels work on sun4v. Won't gracefully halt, powerdownMark Kettenis
or reboot yet, but that will (hopefully) be fixed in the near future.
2008-03-30Remove for #if 0'ed out code I left behind with the previous commit.Mark Kettenis
2008-03-30More sun4v support. GENERIC and RAMDISK kernels will now boot on bothMark Kettenis
sun4u and sun4v. GENERIC.MP won't work yet though.
2008-03-29Don't double count clock and prof interrupts.Mark Kettenis
2008-03-26Disable some code that reads some sun4u-specific registers for diagnosticMark Kettenis
reasons, but isn't otherwise used.
2008-03-24Remove KASSERT that's causing grieve on sun4v, and I've never seen triggered.Mark Kettenis
2008-03-24Use correct cpuid on sun4v.Mark Kettenis
2008-03-23Add code to initialize CPUs on sun4v.Mark Kettenis
2008-03-23Sigh! The sun4v TTEs have a different layout than sun4u TTEs. Rename theMark Kettenis
existing sun4u defines and add sun4v. For now, decide which set to use at compile time. Change the sun4u-specific code in locore.s to use the sun4u defines.
2008-03-23typo; deraadtMiod Vallat
2008-03-23Not-functional-enough driver for the Sun Expert3D cards, put in tree as anMiod Vallat
incentive for further tinkering only; not for the faint of heart.
2008-03-23Use new defines from pcidevs to match Expert3D.Miod Vallat
2008-03-23Fix ovbcopy() operation when copying shorts backwards, similar to sparcMiod Vallat
locore.s r1.76
2008-03-22Add support for DIOCRLDINFO, DIOCGPDINFO, DIOCGPART to the fdKenneth R Westerback
driver(s). Adapted from sd driver. ok marco@
2008-03-22Reintroduce the cputyp variable, and use it to distinguish between sun4u andMark Kettenis
sun4v.
2008-03-22Simplify cpu_switchto() such that it doesn't need to know the number ofMark Kettenis
register windows provided by the hardware; this number is not readily available on sun4v. This removes the optimization that skips flushing register windows if a process exits. We can add that back later if it turns out to make a significant impact.
2008-03-22Remove TRAPS_USE_IG code.Mark Kettenis
2008-03-22Split out the code that sets the TSB registers and call it fromMark Kettenis
pmap_bootstrap_cpu().
2008-03-22Use ASI_BLK_P instead of ASI_BLK_COMMIT_P when saving floating pointMark Kettenis
registers. UltraSPARC T1 doesn't support ASI_BLK_COMMIT_P, and I can't see why this code needs commit force.
2008-03-22Switch to our initial stack after switching over to our own trap table. ThisMark Kettenis
removes the need to lock the stack (and cpuinfo) into the TLB on sun4v.
2008-03-21Do not attach vgafb if not the console device, since the PROM will not haveMiod Vallat
initialized the device in this case.
2008-03-20Introduce GET_CPUINFO_VA(), GET_CPCB() and GET_CURPROC() macros to getMark Kettenis
some important members of 'struct cpuinfo'. Preparation for sun4v.
2008-03-20Fix whitespace.Mark Kettenis