summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
AgeCommit message (Collapse)Author
2014-12-22unifdef INETTed Unangst
2014-12-17minimal removal of simplelock to eliminate lock.h dependencyTed Unangst
2014-12-17fix/reduce header dependencies. clock.c doesn't need any of this uvm.Ted Unangst
ok deraadt kettenis
2014-12-17Prefer MADV_* over POSIX_MADV_* in kernel for consistency: the latterPhilip Guenther
doesn't have all the values and therefore can't be used everywhere. ok deraadt@ kettenis@
2014-12-15Use MAP_INHERIT_* for the 'inh' argument to the UMV_MAPFLAG() macro,Philip Guenther
eliminating the must-be-kept-in-sync UVM_INH_* macros ok deraadt@ tedu@
2014-12-11dragonflybsd has added a urio driver. conservation of urios requiresTed Unangst
that we delete ours, which isn't actually useful. ok mpi sthen
2014-12-11Delete #ifdef'd code that hasn't been compiled in years from sparc64 ofwboot.Stefan Sperling
ok miod@
2014-12-10retire shutdown hooks; ok deraadt, krwMike Belopuhov
2014-12-10Convert watchdog(4) devices to use autoconf(9) framework.Mike Belopuhov
ok deraadt, tests on glxpcib and ok mpi
2014-12-09Check strlcpy(), strlcat(), and snprintf() return values in sparc64 ofwboot.Stefan Sperling
tweak and ok millert@ miod@
2014-12-09Replace some malloc(n*size,...) calls with mallocarray().Doug Hogan
ok tedu@ deraadt@
2014-12-05Enable xhci(4).Mark Kettenis
2014-12-04The sparc64 Open Firmware package-to-path call (used since softraid bootStefan Sperling
support was introduced) may return a device path without a unit number?!? Open Firmware's open-dev routine will crash if given such a path, rendering the system unbootable. Repair such paths by adding unit number "0". Breakage found by sebiasta@ on a Sun Enterprise E450, fix tested by him. helpful hints from deraadt@
2014-11-30SPARC T4 and later have a pause instruction to voluntarily pause a virtualMark Kettenis
processor in order to give other strands a chance to run. Use it in __mp_lock_spin_hook() to avoid wasting CPU cycles if we're waiting for the kernel or scheduler locks. This is instruction is patched in, just like we already do for the sleep instruction on SPARC64 VI processors. We look at the hwcap-list property of the cpu nodes in the machine description to decide whether the pause instruction is available.
2014-11-26Introduce softraid boot support to sparc64 ofwboot.Stefan Sperling
sparc64 machines should now be able to boot from softraid raid1 and crypto. Tested on sun blade100, sunfire v240, and sun t1000 ldom guests. Lots of encouragement from deraadt@
2014-11-26Add a new ELF segment .openbsd.bootdata to the sparc64 kernel.Stefan Sperling
This can be used to pass boot parameters to the kernel which can't be passed safely via the Open Firmware interface, such as softraid volume IDs and keys. The kernel already reads the arguments if available but ofwboot won't provide them until further changes are committed there. With support from deraadt, kettenis and matthew. ok deraadt@
2014-11-26Add softraid support to sparc64 first-level boot blocks.Stefan Sperling
Written with use of the forth by jedi jsing@ For now this only supports 'a' RAID partitions, no other partition letters.
2014-11-26Add softraid boot support code files ported by me to sparc64 from amd64.Stefan Sperling
Not hooked to the build yet. ok kettenis@
2014-11-26Copy some Open Firmware interface functions from the kernel to ofwboot.Stefan Sperling
Will be needed soon. ok kettenis@
2014-11-26Hook ofwbootfd to the build.Stefan Sperling
2014-11-26Add a separate ofwboot build for the sparc64 floppies.Stefan Sperling
2014-11-24Actually, the previous change didn't quite work on the SPARC T5-2. But ifMark Kettenis
we change the order of the xxx_setvalidand xxx_setstate hypervisor calls things actually work.
2014-11-24Add missing pci_msiq_setstate and pci_msi_setstate calls. Makes MSI workMark Kettenis
on the SPARC T5-2. Make error messages a bit more consistent while there.
2014-11-24The hypervisor on a SPARC T5-2 needs stricter alignment of the MSI messageMark Kettenis
queue.
2014-11-24If we use the vintr cookie to point at the interrupt handler struct, weMark Kettenis
shouldn't link it into the table.
2014-11-24Use the pointer to "struct intrhand" as the vintr cookie.Mark Kettenis
2014-11-24On sun4v, interpret the first data word of a device interrupt message as aMark Kettenis
pointer to "struct intrhand" if it is larger than MAXINTNUM. To be used with the cookie based "vintr" scheme.
2014-11-24use the correct capitalization for Realtek.Brad Smith
2014-11-22Switch to using MI installboot, after a conversation with stsp. He willTheo de Raadt
need this soon. install tested by jsg
2014-11-20Don't attempt to clear/disable %tick_cmpr. This register is no longer presentMark Kettenis
on newer sun4v implementations (possibly SPARC T3 and later, definitely not there on SPARC T5) and it should not be necessary on older systems. Tested by dlg@
2014-11-20Disentagle bcopy/memcpy/memmove.Theo de Raadt
The situation was: memcpy swaps registers and drops into bcopy, which does the overlap check, before getting around to business. But memcpy is not supposed to handle overlapped arguments special, so we don't need all this complex register swapping and tests up front -- when memcpy is the most common operation. Refactor all these upside downupside down. Survived multiple make builds, so probably good, and faster. ok dlg
2014-11-19Move {recv,send}udp() out of net.c into their own file; to be used shortly.Miod Vallat
Add the new files to the few md libsa builds which require it.
2014-11-18(except for the arm architectures...) unify the way the ld.script isTheo de Raadt
used and depended, mimicking new changes by guenther to amd64.
2014-11-16Replace a plethora of historical protection options with justTheo de Raadt
PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h. PROT_MASK is introduced as the one true way of extracting those bits. Remove UVM_ADV_* wrapper, using the standard names. ok doug guenther kettenis
2014-10-26uvm_km_valloc -> km_allocMark Kettenis
2014-10-25uvm_km_valloc -> km_allocMark Kettenis
2014-10-24Another uvm_km_valloc(9) -> km_alloc(9) conversion.Mark Kettenis
2014-10-24Bring phys_map to sparc64 and use it in vmapbuf(9) and vunmapbuf(9).Mark Kettenis
2014-10-22make [bl]emtoh{16,32,64} take volatile const foo *, not volatile foo *David Gwynne
while in the manpage add volatile where the code has it too. ok miod@ guenther@
2014-10-17Mark Cave-Ayland pointed out on tech@ that the OF_test_method was calledDaniel Dickman
with an ihandle instead of a phandle. And also the comparison was the wrong way around. This bug was causing an exception. Because -1 is returned to indicate failure and because the comparison is the wrong way around, the bad logic led to believing that SUNW,retain exists which is why this currently works on some PROMs. On E250/E450 machines, this didn't work so there was a hack to detect these machines and work-around the problem. After this fix that hack is now removed. Tested on an E450 by sebastia@ and confirmed that his dmesg is now retained after a reboot. nick@ promises to complain if his E250 is any worse off. ok kettenis@
2014-10-16No longer used.Mark Kettenis
2014-10-16The "close" word doesn't return any arguments.Mark Kettenis
Pointed out by Mark Cave-Ayland.
2014-10-15move CPU_BUSY_CYCLES define out of #ifdef/else MULTIPROCESSOR, its meant toSebastian Reitenbach
be for both cases. OK ketennis@
2014-10-10Significant unification of RAMDISK* config files, making them diffable.Theo de Raadt
This makes it easier to remove components not required to do an install, and subsequently add other desireable components ... In snapshots (in various forks) for about a week. Do some upgrades and installs, please.
2014-10-09mechanical translation of dev_lkm_dummy() to dev_notdef()Ted Unangst
2014-10-09revert unintentional commit unrelated to LKMTed Unangst
2014-10-09remove LKM devicesTed Unangst
2014-10-05pass size to free.David Gwynne
2014-10-05dont need to cast pointers to/from void *David Gwynne
no binary change
2014-10-05ansify function definitions.David Gwynne
no binary change.