summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
AgeCommit message (Collapse)Author
2014-05-31Reduce MAXSSIZ to 32MB to match all other platforms; noticed by tobiasu@Miod Vallat
2014-05-31Revert previous diff setting cold to 1 on shutdown because it breaks machineMartin Pieuchot
with softraid(4) disks. softraid(4) is the last real consumer of the doshutdownhooks(9) API and it is not trivial to convert its hook to a DVACT_POWERDOWN handler since the latter does not allow to sleep.
2014-05-30SBus glue for qlw(4) for sparc. Untested.Mark Kettenis
2014-05-30SBus glue for qlw(4) for sparc. Untested.Mark Kettenis
2014-05-30Set cold to 1 before executing the DVACT_POWERDOWN handlers when halting orMartin Pieuchot
rebooting a machine, like it is done in the hibernate case. At least some USB host controller drivers rely on this to busy way instead of sleeping. Avoid a panic on macppc with an uhci(4) cardbus plugged in. ok deraadt@, uebayashi@
2014-05-25Turn on blinky things by default, very useful hereTheo de Raadt
2014-05-11Move the increment of uvmexp.softs back to the caller of mi_ast():Philip Guenther
it needs to be done atomicly on some MP archs and we don't have atomic_add_int() everywhere yet. Also, mi_ast() was meant to be inline. noted by miod@
2014-05-10Factor out the common ast bits into mi_ast()Philip Guenther
ok deraadt@
2014-05-09format string fixes and removal of -Wno-format for sparc kernels.Miod Vallat
2014-04-30Enforce proper alignment of stack variables which may get accessed withMiod Vallat
double-word load and store instructions. This used to work by chance, but recent compiler changes no longer put us in the lucky situation. tweaks kettenis@
2014-04-22Remove RX checksum offloading support. The chip is too limited, andChristian Weisgerber
examining higher protocol layers to adjust the checksum and calculate the pseudo-header in the driver is too complex to be worthwhile. ok henning@
2014-04-18Have each thread keeps its own (counted!) reference to the process's ucredsPhilip Guenther
to avoid possible use-after-free references when swapping ids in threaded processes. "Do I have the right creds?" checks are always made with the threads creds. Inspired by FreeBSD and NetBSD "right time" deraadt@
2014-04-08Fewer <uvm/uvm.h>!Martin Pieuchot
2014-03-30Close the kernel fd before attempting to load /etc/random.seed, and reopen itMiod Vallat
afterwards, for some prom misbehave if the network interface is opened twice; repairs boot.net operation on at least SS5 PROM v2.21; found the hard way by sebastia@. Crank boot version; verified not to hurt disk boot.
2014-03-29It's been a quarter century: we can assume volatile is present with that name.Philip Guenther
ok dlg@ mpi@ deraadt@
2014-03-26Move p_emul and p_sigcode from proc to process.Philip Guenther
Tweak the handling of ktrace EMUL when changing ktracing: only generate one per process (not one per thread) and pass the correct proc pointer down to the VFS layer. Permit generating of NAMI and CSW records inside ktrace(2) itself. ok deraadt@ millert@
2014-03-22Move p_sigacts from struct proc to struct process.Philip Guenther
testing help mpi@
2014-03-19It's safe to assumed 'signed' existsPhilip Guenther
2014-03-16DDB supports ELF symbols are all archs, and it's always the same as thePhilip Guenther
native size, so eliminate the #defines. ok miod@
2014-03-13get rid of the assumption that the head of the alldevs list is theDavid Gwynne
"mainbus" device. this breaks when mpath is enabled because it attaches before mainbus and therefore takes the head position. have autoconf provide device_mainbus() which looks up mainbus_cd, and use that instead. discussed with deraadt who just wants mpath stuff to move forward despite there being many ways to shine this particular turd.
2014-03-11lint is gone, and the 'lint' conditional was never in the implementationPhilip Guenther
namespace, so stop changing behavior when it's #defined ok beck@ krw@
2014-02-25/etc/random.seed support (unless booting from tape). Crank version.Miod Vallat
2014-02-25Put edata after the .openbsd.randomdata phdr, to prevent the former's contentsMiod Vallat
from being bzeroed when locore bzeros what it thinks is the bss.
2014-02-19add qla and qle everywhere we currently have isp, commented out except forJonathan Matthew
qle in GENERIC on i386, amd64 and sparc64, where it's reasonably well tested and likely to be useful. requested by deraadt@ and kettenis@, ok dlg@
2014-02-10Build isp2xxx firmware into separate object files so we only includeJonathan Matthew
one copy when both isp(4) and qla(4) are enabled. This is a temporary measure until qla(4) takes over completely. looked at by miod@ and kettenis@
2014-01-30Move declaration of struct vm_page_md from <machine/vmparam.h> toMiod Vallat
<machine/pmap.h> where it belongs, and compensate in <uvm/uvm_extern.h> by including <uvm/uvm_pmap.h> before <uvm/uvm_page.h>. Tested on all MACHINE_ARCH but amd64 and i386 (and hppa64).
2014-01-23unifdef -D__HAVE_VM_PAGE_MD - no functional change.Miod Vallat
2014-01-21dtucker@ pointed out i suck at grep.David Gwynne
fix ncr53c9x fallout.
2014-01-01fix header to get symbols loaded correctlyMiod Vallat
2014-01-01Add a linker script to force the .openbsd.randomdata section to be put afterMiod Vallat
.data, so that it will not get mapped read-only by pmap_bootstrap().
2013-12-24get rid of if (timeout_pending()) timeout_del(). this is racy. anyDavid Gwynne
conditionals you did on timeout_pending can now be done on timeout_del now that it returns what it did. ok and a very good fix from kettenis@
2013-12-19sun4e needs the same 1.6 usec ZS_DELAY() as sun4 does.Miod Vallat
2013-12-18Provide MI symbol _STACKALIGNBYTESTheo de Raadt
2013-12-08reflect reality, mark as NOOBJMarc Espie
"sure" deraadt@
2013-11-28fix typoTheo de Raadt
2013-11-27Instead of comparing the lower and higher addresses of all the multicastMartin Pieuchot
entries to decide if the IFF_ALLMULTI flag should be set, check if there is at least one real range between them. This should not change the behavior of any driver but if you encounter any problem, feel free to revert the offending chunk and ping me about it. ok naddy@, dlg@
2013-11-261 << 31 cleanup. Eitan Adler pointed out that there has been aTheo de Raadt
resurrection of the bad idiom in the tree. sufficient review by miod, kettenis, tedu
2013-11-26make this compile after dlg's recent changeMartin Reindl
2013-11-21remove the #define b_cylinder b_resid from bufs. i hated theDavid Gwynne
overloading of that thing. the only hardware that seems to care about cylinders in our tree are floppy drives, and the drivers for those calculate their own cylinders from logical block addresses and ignore whatever the rest of the kernel thought b_cylinders should be. most of this diff is moving the floppy drivers to using b_resid as a resid and using that as part of the calculation for real cylinder values. the rest of the diff is getting rid of the useless assignments to b_cylinder that dont get used by anything (now that disksort is gone). ok miod@
2013-11-20replace bare use of disksort with bufqs. this is the last disksort userDavid Gwynne
in the tree apart from the bufq wrapper around it. go ahead miod@
2013-11-18simplify kthread_create(). no more stdargTheo de Raadt
ok matthew guenther mikeb
2013-11-18replace disksort with bufqs. basically a copy of the same change in sparc64David Gwynne
which was a copy of the change in isa/fd.c. ok krw@
2013-11-12Use daddr_t to hold calculated disk sector address. %d -> %lld toKenneth R Westerback
match. Whitespace tweaks. All bringing this chunk into identity with same chunk in sparc64 fd.c.
2013-11-03size no longer has a.out knowledge, so .. skip itTheo de Raadt
found by tobiasu
2013-11-01Sprinkle (long long) casts where %lld is being used to print daddr_tKenneth R Westerback
variables. Some random whitespace/knf repairs encountered on the way. ok miod@ on inspection, feedback & more suggestions from millert@
2013-10-30Introduce a private copy of old a.out-capable nlist.c, because bootxxTheo de Raadt
has such a header and we need to tweak it. Non-a.out parts removed, to make this binary small for the install media. ok miod
2013-10-21Fix lies in comments, and apply some KNF and unused or duplicate prototypeMiod Vallat
removals.
2013-10-21Add load_font and list_font accessops to all rasops-based wsdisplay drivers.Miod Vallat
Trivial except for tga(4) and gpx(4/vax) which need a bit more care setting up a new font.
2013-10-20Use C99 named initializers for struct wsdisplay_accessops fields.Miod Vallat
No functional change.
2013-10-20(daddr_t) -> (u_int64_t) when multiplying ncylinders * secpercyl toKenneth R Westerback
get disk size, since DL_SETDSIZE() takes disk sector values, not 512-byte block values.