summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
AgeCommit message (Collapse)Author
2012-05-09merge sigdebug.h into machdep.c, to where all other architectures haveOkan Demirmen
these (DEBUG) defines. ok miod@
2012-04-26va is of type vaddr_t; allow sparc64 to build with DEBUGOkan Demirmen
ok miod@
2012-04-11The first ktrace record for a newly spawned thread is a returnMike Belopuhov
from a fork syscall done by the parent. Use __tfork, not rfork here to match the ktrace records for the parent (CALL __tfork, RET __tfork). ok guenther
2012-04-06tedu the raidframe.Joel Sing
ok deraadt@
2012-03-26Make writes block if the message queues are full.Mark Kettenis
2012-03-26Increase the size of the message queues such that we can handle the defaultMark Kettenis
"MTU" of 4096 bytes.
2012-03-26Add APM_IOC_HIBERNATETheo de Raadt
2012-03-23Make rusage totals, itimers, and profile settings per-process insteadPhilip Guenthe
of per-rthread. Handling of per-thread tick and runtime counters inspired by how FreeBSD does it. ok kettenis@
2012-03-20Add ioctl to write to hypervisor memory.Mark Kettenis
2012-03-17Add hvctl(4).Mark Kettenis
2012-03-17Add vldc(4) and hvctl(4).Mark Kettenis
2012-03-17hvctl(4) is a driver for the "hvctl" Logical Domain Channel that allows theMark Kettenis
control domain to talk to the sun4v hypervisor.
2012-03-17vldc(4) is a "bus" driver for Logical Domain Channels.Mark Kettenis
2012-02-12this breaks ramdisk builds. misses releaseTheo de Raadt
2012-02-11Don't compare command line input to softraid device names. ParseKenneth R Westerback
out the intended device name from the realdev constructed by opendev(). Should fix the issue found by stsp@ in trying to install a boot-from-softraid sparc64. ok deraadt@
2012-01-11Teach OpenBSD/sparc64 installboot(8) about softraid volumes. This makesJoel Sing
root on softraid possible, although the kernel still needs to be loaded from a non-softraid partition.
2012-01-01Improve/clean up sparc64 installboot:Joel Sing
- Use opendev() like we do for installboot on many other archs. - Use the term bootblock rather than prototype for the first-stage, since we install it verbatim. - Read the bootblock into a zeroed buffer rather than messing around with mmap() and zeroing the end of the space. - Make man page consistent with respect to the first-stage bootblock and second-stage boot program. ok kettenis@ jmc@ (for the man part)
2011-12-28The sparc64 installboot is for sparc64 only - remove all of the non-sparc64Joel Sing
related code. ok kettenis@
2011-11-16Make userret() MI. On architectures which jammed stuff into it in theTheo de Raadt
past, pull that code out seperately. ok guenther miod
2011-11-15Simplify various parts of the puc(4) attachment code. Tested lightlyTheo de Raadt
by krw and myself.
2011-11-08Make the userland bits actually compile.Mark Kettenis
ok guenther@
2011-11-08Garbage collect now unused MKDEP definitions. ok deraadt@Matthieu Herrb
2011-10-19Oh yeah, a cvs id is goodPhilip Guenthe
2011-10-15"TLS-lite": add kernel support for a per-thread userspace pointer,Philip Guenthe
for pointing to the thread-control-block. Support for mapping this to the correct hardware register can be added as it's finished; start with support for amd64, sparc, and sparc64. Includes syscalls for getting and setting it (for a portable __errno implementation) as well as creating a new thread with an initial value for it. discussed with miod@, kettenis@, deraadt@; committing to get the syscalls in with the impending libc bump and do further refinements in tree
2011-10-12Remove all MD diagnostics in cpu_switchto(), and move them to MI code ifMiod Vallat
they apply. ok oga@ deraadt@
2011-10-10Introduce pci_probe_device_hook(pci_chipset_tag_t, struct pci_attach_args *).Miod Vallat
This mandatory function will get invoked in pci_probe_device(), and allows a pci host driver to alter the pci_attach_args passed to a device when attaching. This function will also, if returning non-zero, cause the device to be skipped completely during all the phases of the PCI device discovery (i.e. ressource enumeration, ressource assignment, and actual attachment). This particular feature is experimental and might be reverted in the future (or the scope narrowed to device attachment only). A dummy #define pci_probe_device_hook() 0 is added to all platforms except sgi, where real functions (currently only returning 0) are added; real meat will be added shortly. Discussed at s2k11, no objection from the usual suspects.
2011-10-06ccd goes to the atticTheo de Raadt
discussed with jsing and millert
2011-09-28disable the fifo on m series systems by telling the driver its a 16550David Gwynne
which stops the MI com code from probing it as a 16550a. hopefully this will prevent the awesome faults on the mainboard from locking the system up. ok kettenis@
2011-09-27Make bus_addr_t and bus_size_t u_long types, instead of either uint32_t orMiod Vallat
uint64_t, depending upon the platform; this makes the declaration of these types consistent accross all our supported platform, and we do not intend to support a platform where bus_addr_t could be larger than the size of the cpu register. Requested by deraadt@ during s2k11
2011-09-27Make struct label_t large enough for the kernel setjmp() purposes. Found afterMiod Vallat
deraadt@ and jsing@ noticed hppa64 label_t was too short; amazing this did not get noticed earlier.
2011-09-22nowadays uvm_init() calls pmap_init(), not vm_init(); so update the comments.Jasper Lievisse Adriaanse
ok ariane@
2011-09-17arithemtic -> arithmeticMiod Vallat
2011-09-08Provide namespace-safe alignment macros in <machine/_types.h>, withPhilip Guenthe
compat names kept in <machine/param.h>. In <sys/socket.h>, pull in <sys/_types.h> instead of the namespace polluting <machine/param.h> and completely eliminate __CMSG_ALIGN, replaced by _ALIGN ok deraadt@
2011-09-08Make the INT_FAST*_{MIN,MAX} macros match the types they're defined to.Philip Guenthe
Since the underlying types of the int_fast types are set by machine/_types.h, put internal macros in that same file and define the exposed INT_FAST*_{MIN,MAX} macros from those. ok millert@, kettenis@
2011-08-29Only provide FLT_EVAL_METHOD for C99. Add missing DECIMAL_DIG for C99.Mark Kettenis
ok guenther@
2011-07-25Disable MSI for now; something is still not quite right on UltrSPARC T2Mark Kettenis
systems.
2011-07-17Backout a bunch of my SCSI commits from c2k11. At least one of theseMatthew Dempsky
is causing problems when trying to boot sparc64 from an isp(4). Verified to fix the sparc64/isp(4) regression by krw@; ok deraadt@
2011-07-16device_register() is called on the scsibus(4) devices beforeMatthew Dempsky
scsibusattach() is called, so saa_sc_link->bus hasn't been initialized to a valid pointer yet. Easy fix: Use dev->dv_unit instead of poking into the attach args. ok krw@, jsing@
2011-07-11Revert art@'s moving around of the KERNEL_LOCK()/KERNEL_UNLOCK() calls,Philip Guenthe
as it causes hangs in some ports, including libsigsegv's configure script confirmed by krw@, landry@
2011-07-08First batch of converting SCSI HBAs from setting saa_targets andMatthew Dempsky
saa_luns instead of adapter_buswidth and luns in the prototype link. ok dlg@, miod@
2011-07-07deraadt says disable bluetooth everywhere else tooTed Unangst
2011-07-07The drahn memorial bad kernel build fix: prevent blood pressurePhilip Guenthe
spikes in other developers by making it so that removal of a .d file without removing the corresponding object will result in the latter being treated as out of date. ok beck@ art@ drahn@
2011-07-07There is a bunch of places in the kernel entry points where we don'tArtur Grabowski
hold the kernel lock, but still need call one function that needs it. Instead of grabbing the lock all over the place, move the locks into the affected functions: trapsignal, scdebug*, ktrsyscall, ktrsysret, systrace_redirect and ADDUPROF. In the cases we already hold the biglock we'll just recurse. kettenis@, beck@ ok
2011-07-06Handle pci_conf_read() faults on reading non-existent registers that resultMark Kettenis
in master aborts. Return 0xffffffff to emulate what happens on non-perfect architectures in that case. ok deraadt@
2011-07-06Handle pci_conf_read() faults on reading non-existent registers that resultMark Kettenis
in master aborts. Return 0xffffffff to emulate what happens on non-perfect architectures in that case. ok deraadt@
2011-07-06Clean up after P_BIGLOCK removal.Artur Grabowski
KERNEL_PROC_LOCK -> KERNEL_LOCK KERNEL_PROC_UNLOCK -> KERNEL_UNLOCK oga@ ok
2011-07-06Add MSI support to pyro(4). Tested on a v215 with the on-board mpi(4).Mark Kettenis
2011-07-06Split some generic MSI code out into its own file.Mark Kettenis
2011-07-06Move pci_msi_enable() out of the vpci(4) driver into the MD pci(4) code.Mark Kettenis
Soon to be used by pyro(4) as well.
2011-07-06make clean should clean .d files, so as to leave a fresh canvas.Ted Unangst
ok beck deraadt