summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
AgeCommit message (Collapse)Author
2013-08-12Upcoming radeondrm(4) support will grow the kernel. This growth causes theMark Kettenis
linker to merge ithe .text and .data sections, even though there is no reason why it should do this. Leave more space between these sections to keep the linker from doing this.
2013-08-12Add a port of the TTM and Radeon DRM code from Linux 3.8.13.Jonathan Gray
Includes kernel modesetting, framebuffer console and support for newer hardware. Firmware needs to be present for acceleration and in some cases modesetting to work. It can be installed via fw_update or manually via pkg_add. With lots of help from kettenis@ some macppc bits from mpi@ and some ttm refcount/queue bits from FreeBSD. Thanks to M:Tier and the OpenBSD Foundation for sponsoring this work.
2013-08-08Add PMAP_NOCACHE as an alias for PMAP_NC for use in semi-MI code.Mark Kettenis
2013-08-08/dev/drmN for sparc64Mark Kettenis
2013-07-16Enable jfb-style acceleration on XVR-600.Miod Vallat
2013-07-16Add support for BUS_INTR_ESTABLISH_MPSAFE. This makes the previous commitMark Kettenis
to vcons(4) actually have an effect.
2013-07-16The interrupt handler for vcons(4) is defenitely safe to run without holdingMark Kettenis
the kernel lock, so use BUS_INTR_ESTABLISH_MPSAFE.
2013-07-16Add support for BUS_INTR_ESTABLISH_MPSAFE.Mark Kettenis
2013-07-15Use getpropstringA(), not getpropstring(), to get the card's name. This ensuresMiod Vallat
its value has not been clobbered when ifb_accel_identify() is invoked, and restores textmode acceleration on Expert3D{,-Lite} and XVR-1200. Broken since 1.17, sigh
2013-07-14To prevent lock ordering problems with the kernel lock, we need to make sureMark Kettenis
we block all interrupts that can grab the kernel lock. The simplest way to achieve this is to make sure mutexes always raise the ipl to the highest level that has interrupts that grab the kernel lock. This will allow us to have "mpsafe" interrupt handlers at lower priority levels. No change for non-MULTIPROCESSOR kernels.
2013-07-13unify register_t to long on all platformsTheo de Raadt
ok miod kettenis
2013-07-12Actually assign return value to the variable that's used to check it.Mark Kettenis
Pointed out by Maxime Villard.
2013-07-05Avoid truncation when calculating clock gain/lossPhilip Guenther
ok deraadt@
2013-07-05Take II, this time without flubbing off_t: : move several internalPhilip Guenther
type definitions that are the same across all archs from <machine/_types.h> to <sys/_types.h> ok deraadt@ kettenis@ otto@
2013-07-04backout previous; off_t must be signed and there might be other C++ APIOtto Moerbeek
breakage lurking; ok kettenis@
2013-07-04To ease future changes, move several internal type definitions that arePhilip Guenther
the same across all archs from <machine/_types.h> to <sys/_types.h> ok deraadt@
2013-06-23Stop using -traditional-cpp on gcc3/4 platforms.Miod Vallat
Add CWARNFLAGS to the command line when using -xassembler-with-cpp. We are mostly interested in -Werror here.
2013-06-15Stop handling overlapping copies in memcpy() by jumping straight into theMark Kettenis
forward copy path.
2013-06-13Remove a remnant of the VIS optimized bcopy code that was hiding in a delayMark Kettenis
slot.
2013-06-13Get rid of the VIS-optimized bcopy/bzero code. This has never been enabled,Mark Kettenis
but did get compiled in. Made locore.s even more intimidating. ok deraadt@
2013-06-13Remove some disabled debugging code that hasn't been used for ages.Mark Kettenis
No binary change.
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
test period; i think 3 years ago the last bugs fell out. ok otto beck others
2013-06-09the kernel is supposed to provide memmove, but some archs are missing it.Ted Unangst
add i386 sparc and sparc64. ok deraadt
2013-06-03Convert some internal APIs to use timespecs instead of timevalsPhilip Guenther
ok matthew@ deraadt@
2013-06-03changes for isc fuse support. not enabled. ok beck deraadt.Ted Unangst
from Sylvestre Gallon ccna.syl gmail.com
2013-06-02Add the TLS relocationsPhilip Guenther
2013-06-01cleanup and consolidate the spinlock_lock (what a name!) code.Ted Unangst
it's now atomic_lock to better reflect its usage, and librthread now features a new spinlock that's really a ticket lock. thrlseep can handle both types of lock via a flag in the clock arg. (temp back compat hack) remove some old stuff that's accumulated along the way and no longer used. some feedback from dlg, who is concerned with all things ticket lock. (you need to boot a new kernel before installing librthread)
2013-05-31remove counters for simplelocksTed Unangst
2013-05-30Enforce ca_activate tree-walks over the entire heirarchy for all events,Theo de Raadt
cleaning up some shutdown-hook related code on the way. (A few drivers related to sparc are still skipped at kettenis' request) ok kettenis mlarkin, tested by many others too
2013-05-21remove unused cpu_lock code (where it is truly unused). it is notTed Unangst
part of the future we have planned. middling ok from a few
2013-05-17Implement IPL_MPSAFE for pci bus interrupt handlers.Mark Kettenis
2013-05-16Run audio interrupts without grabbing the kernel lock. While IPL_SERIAL isMark Kettenis
higher than IPL_AUDIO on sparc64, and interrupt handlers running at IPL_SERIAL still grab the kernel lock, this isn't a problem as machines with audioce(4) are guaranteed not to have zs(4) (the only driver that uses IPL_SERIAL).
2013-05-15Introduce a global interrupt-aware mutex protecting dataAlexandre Ratchov
structures (including sound-card registers) from concurent access by syscall and interrupt code-paths. Since critical sections remain the same, calls to splraise/spllower can be safely replaced by calls to mtx_enter/mtx_leave with two exceptions: (1) mutexes are not reentrant (the inner splraise is thus removed), and (2) we're not allowed to sleep with a mutex (either msleep is used or the mutex is released before sleeping). ok and help from kettenis, a lot of work from armani
2013-05-13Get rid of some silly underscores.Mark Kettenis
2013-05-13Implement support for running interrupt handlers without taking the kernelMark Kettenis
lock, by adding a new BUS_INTR_ESTABLISH_MPSAFE flag for use with the (sparc64-specific) bus_intr_establish(9) interface. Add support for this flag to schizo(4); other bus drivers will ignore it for now. While there, remove the BUS_INTR_ESTABLISH_FASTTRAP flag which serves no purpose.
2013-05-12Handle big (a.k.a. >2TB) disks by adding logic to handle the 12 and 16Kenneth R Westerback
byte scsi read/write commands. Issue pointed out by John Morrissey via bugs@. Problem reproduced and fix tested by sf@ on vioblk. ok sf@ kettenis@
2013-05-12Take the kernel lock and call the actual interrupt handler from aMark Kettenis
single C function. Inspired by the change made to amd64/i386 by ratchov@.
2013-05-10ditch unused zskbd_device_lookup; verified by sebastia@Mike Belopuhov
2013-04-21Unify the zs tty driver.Sebastian Reitenbach
Most of the hard work by mpi@, who provided the initial diff. Fixes for sparc from myself. Tested on sgi and sparc myself. Compiles and detects zstty on my powerbook, compile tested on sparc64 by me. Real testing with zs device on sparc64 by miod@ who also gave a lot of help and feedback. ok miod@, mpi@
2013-04-02Get rid of SYSCALL_G7RFLAG. iIt's been deprecated for a long time already,Mark Kettenis
and we've started using %g7 as a per-thread register now. If you have any binaries left that use this flag they'll probably crash and burn!
2013-04-01Do not expose the trap T_* values to userland, since they invade theTheo de Raadt
namespace a bit much. These are the names for the value encoded in core.c_ucode or siginfo.si_trapno, but userland never looks directly and only cares about the abstract signal code. ok guenther
2013-03-31try to avoid pulling in pte.h and other more crazy things. Checked againstTheo de Raadt
the things that libkvm needs.
2013-03-30reorder include search directories. cuts lookups by quite a bit.Ted Unangst
ok deraadt miod
2013-03-28Add STRONG_ALIAS macros to be used from assembly code in libc andMartynas Venckus
libm. While at it, remove now unused workarounds for lint. Agreed by kettenis@, guenther@, matthew@.
2013-03-28Add __strong_alias macros for all architectures to be able to aliasMartynas Venckus
another symbol without weak attribute. To be used in libc and libm soon. Agreed by kettenis@, guenther@, matthew@.
2013-03-26sync TDIRS with realityJasper Lievisse Adriaanse
"looks good" deraadt@
2013-03-26PGSHIFT and PGOFSET are now contained inside the kernel namespace.Theo de Raadt
2013-03-25ALIGNBYTES/ALIGN/ALIGNED_POINTER can move to the MI file.Theo de Raadt
2013-03-23refactor sys/param.h and machine/param.h. A lot of #ifdef _KERNEL is addedTheo de Raadt
to keep definitions our of user space. The MD files now follow a consistant order -- all namespace intrusion is at the tail can be cleaned up independently. locore, bootblocks, and libkvm still see enough visibility to build. Checked on 90% of platforms...
2013-03-21NBPG -> PAGE_SIZE, PGSHIFT -> PAGE_SHIFT, PGOFSET -> PAGE_MASKTheo de Raadt