summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
AgeCommit message (Collapse)Author
2011-05-25Also enclose variable names with external linkage in __BEGIN_DECLS.Martynas Venckus
Doesn't matter much since C++ ABI used by GCC doesn't mangle variable names; however technically is required by Section 7.5 of the C++ spec. Discussed with/OK guenther@, matthew@.
2011-05-24On OpenBSD, we've always attached scsibus(4) to umass(4), even forMatthew Dempsky
ATAPI devices. atapiscsi(4) is only for handling ATAPI devices on an ATA bus, so umass(4) shouldn't care about it. ok krw@, dlg@; no objections from deraadt@
2011-05-21It's better to have the pci_intr_map_msi() stub return -1.Mark Kettenis
2011-05-21Add pci_intr_map_msi() stub.Mark Kettenis
2011-05-18When the sparc64 iommu fails to lookup a vaddr, it prints a message andAriane van der Steldt
returns EFBIG. This cannot be recovered from and is usually indicative of a damaged pmap. Therefor, panic right here instead. This diff meant the difference between dropping into single-user mode versus getting a traceable panic. ok kettenis@
2011-05-18Turns out VA_ALIAS_MASK is indeed a mask, but with the PAGE_MASK deceptivelyAriane van der Steldt
zeroed out. Documented this in code and updated PMAP_PREFER_* macros to use the corrected values. Discussed with and ok miod@
2011-05-18Better make PMAP_PREFER_ALIGN() a rounded value, as done on other arches;Miod Vallat
while there fix PMAP_PREFER_OFFSET() for good too, after discussion with ariane@
2011-05-18Off-by-two in PMAP_PREFER_ALIGN definition; found the hard way by matthieu@Miod Vallat
2011-04-28Expose pmap_prefer parameters.Ariane van der Steldt
Enables future uvm_map code to make intelligent decisions during allocation. No functional change.
2011-04-28fenv improvements and cleanupsMartynas Venckus
2011-04-27support rooting off multipath disks.David Gwynne
if you boot from a disk that ends up behind mpath(4) on sparc64, it wont be able to resolve it to the actual disk device since a path driver (eg sym(4)) sits where ofw tells us a disk is. this diff allows the bootpath code to match on path drivers, and then asks mpath to swap the path for the disk device. ok kettenis@
2011-04-26MMU address space holes are at a fixed position (ofcourse).Ariane van der Steldt
Therefore set UVM_FLAG_FIXED and enforce this. ok oga@
2011-04-25fenv for sparc; mostly cloned from sparc64Martynas Venckus
2011-04-24fenv for i386, and sparc64; from matthew@Martynas Venckus
not reviewed yet, but it's better to track changes in cvs
2011-04-22spacesMarco Peereboom
2011-04-18Revert the sigacts diff: NFS can apparently retain pointers to processesPhilip Guenthe
until they're zombies and then send them signals (for intr mounts). Until that is untangled, the sigacts change is unsafe. sthen@ was the victim for this one
2011-04-16Use 'CLR(<buf>->b_flags, B_READ | B_WRITE | B_DONE)' regardless ofKenneth R Westerback
what the previous IO was. Less chance of copy and paste errors. Suggested by miod@.
2011-04-15In days of yore one could arbitrarily whack buffer flags. Those daysKenneth R Westerback
are past. Use CLR() and SET() to modify necessary flags while leaving the flags used by the buffer cache in peace. Should make bufcache code much less confused about the state of the bufs used in reading/writing disklabels. Other such flag abuses no doubt await a visit. Errors in original diff found by miod@. ok beck@ deraadt@
2011-04-15Correct the sharing of the signal handling state: stuff that shouldPhilip Guenthe
be shared (p_sigignore, p_sigcatch, P_NOCLDSTOP, P_NOCLDWAIT) moves to struct sigacts, wihle stuff that should be per rthread (ps_oldmask, SAS_OLDMASK, ps_sigstk) moves to struct proc. Treat the coredumping state bits (ps_sig, ps_code, ps_type, ps_sigval) as per-rthread until our locking around coredumping is better. Oh, and remove the old SunOS-compat ps_usertramp member. "I like the sound of this" tedu@
2011-04-15Convert the kernel Makefiles to autogenerate dependencies during compilationPhilip Guenthe
using the -MD option to cc, with -MP, -MT, and -MF where needed, converting "make depend" to a no-op. This increases parallelism for those using "make -j" and keeps the dependencies up to date with each compilation automatically. sparc and vax users will need to rebuild gcc with support for the -M[PTF] options before config'ing with this diff.
2011-04-13do not use NULL in an integer contextTheo de Raadt
2011-04-10Add -fno-builtin-exit to CFLAGS to silence gcc4.Miod Vallat
2011-04-10NULL -> 0Miod Vallat
2011-04-07Make sure the ALIGN() macro uses u_long on all platforms for consistency, andMiod Vallat
update the comment block accordingly.
2011-04-07Do not use NULL in integer comparisons. No functional change.Miod Vallat
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
2011-04-06The various read*label() have stopped returning error strings for quiteMiod Vallat
some time, and return errnos instead. Fix or remove out-of-date comments mentioning the error strings, and make their callers check the return value against zero, not NULL.
2011-04-03Move PPWAIT flag from struct proc to process, so that rthreads inPhilip Guenthe
a vforked child behave correctly. Have the parent in a vfork() wait on a (different) flag in *its* process instead of the child to prevent a possible use-after-free. When ktracing the child return from a fork, call it rfork if an rthread was created. ok blambert@
2011-03-23Including <sparc64/intreg.h> here is ugly, but intr.h only comes fromTheo de Raadt
<machine/cpu.h> if _KERNEL is defined. The bootblocks are stupid, and for now they need this. We need more namespace cleanup, for sure.
2011-03-23Normalize sentinel. Use _MACHINE_*_H_ and _<ARCH>_*_H_ properly and consitently.Paul Irofti
Discussed and okay drahn@. Okay deraadt@.
2011-03-18Add some delay between a successful keyboard reset sequence and a keyboardMiod Vallat
layout inquiry, as some PS/2 converters (at least the Starview SV 125) need it to behave correctly. Found the hard way and researched by Mike Malopolski, thanks!
2011-03-18Fix obj directory probing to support cross compiling.Matthew Dempsky
"Go for it" deraadt@
2011-03-13Change daddr_t to daddr32_t. The bootblocks on our architectures onlyTheo de Raadt
do 32-bit block spanning. If later on we get some that can/should do 64-bit, that can be done now using daddr64_t (but of course, we are taking this step to finalize the daddr_t 64-bit conversion). ok miod krw
2011-03-11Use _MACHINE_ENDIAN_H_ for this is The Right Thing To Do.Paul Irofti
Okay guenther@, millert@.
2011-03-08vrng should go onto the ramdisk.Theo de Raadt
ok kettenis
2011-03-05since the bus_space_barrier function does the same membar operation forTheo de Raadt
all cases, it should not waste time doing extra if/else if/else if/else conditions. i wonder how much this is going to speed up sparc64... ok miod kettenis
2011-02-21Remove redundant statement to keep this in line with radeonfb(4).Mark Kettenis
ok miod@
2011-02-21Re-initialize acceleration engine after leaving X.Mark Kettenis
ok miod@
2011-02-17Disable sbt and ubt devices. The bluetooth code will sometimes sleep whileMiod Vallat
holding locks, this is not allowed, and nobody has stepped up to fix this, so better not lure people into using bluetooth devices.
2011-01-14creator needs firmload. ok miod@Matthieu Herrb
2011-01-14- use nitems()Jasper Lievisse Adriaanse
"doesn't hurt" deraadt@
2011-01-13Fix link edition without 'option SUN4V'. ok kettenis@Matthieu Herrb
2011-01-13Spin forever when waiting for completion of an FPU shootdown instead ofMark Kettenis
panicing if we spin for too long. It is difficult to find an upper bound for the spin count and there is some evidence the current limit is too low. We made similar changes to amd64/i386 some time ago. ok deraadt@
2011-01-08The Ubiquiti WiFiStation EXT works on the Sun Blade 1500.Damien Bergamini
Enable athn at uhub on all USB 2.0 capable arches.
2011-01-07Detect wether a disk image is an ISO image and set the media type toMark Kettenis
VD_MEDIA_TYPE_CD to vDisk 1.1 clients. Makes installing from a Solaris 11 Express bootable install CD work.
2011-01-07Fix malloc(9) call with swapped type and flags arguments.Mark Kettenis
2011-01-06Add support for the vDisk 1.1 protocol. Improve Solaris vtoc/disklabelMark Kettenis
support and implement VD_OP_SET_VTOC. This makes Solaris actualy run on top of an OpenBSD control domain. Installing from CD needs some further tweaking but a network install will probably work. OpenBSD clients are still happy.
2011-01-06Solaris insists on getting the right sequence numbers in DRING_DATA messagesMark Kettenis
and it seems we were off by one.
2011-01-04It is actually possible to run CoolThreads servers with a graphics console,Mark Kettenis
so don't assume vcons(4) always is the console.
2011-01-04XVR-300 is boring. For starters it has a very dull looking OpenPROM logo.Mark Kettenis
And radeonfb(4) just works on it.
2011-01-02More changes to pacify the Solaris virtual disk client. ImplementMark Kettenis
VD_OP_GET_VTOC and VD_OP_GET_DISKGEOM. Factor out the code to ACK descriptors and fix a bug copying in/out a descriptor that crosses a page boundary.