summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
AgeCommit message (Collapse)Author
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.
2013-10-20catch up with elf(5)/stab(5) removal;Jason McIntyre
ok miod
2013-10-17Remove a.out leftovers now that libsa loadfile() will only boot ELF binaries.Miod Vallat
2013-10-17Remove support for a.out and ecoff. We only do elf now.Theo de Raadt
ok miod
2013-10-15Rewrite the awk script that generates the data for option DDB_STRUCT:Philip Guenther
- switch to perl for better data structures and (thus) speed - fix a couple glitches in the interpretation of the stabs output - compress the strings by putting them in one big array and overlaying suffixes - all sizes and offsets are <64k, so use u_short for them This results in ~60% reduction in the resulting text size and it now takes less than a second to create on fast platforms. ok miod@
2013-10-14XXsize() returns daddr_t, so calculate the return value in a daddr_tKenneth R Westerback
variable and not (usually) an int. ok miod@
2013-09-29various fixes to sync usage() with SYNOPSIS, and make these pages a bitJason McIntyre
more consistent; feedback/ok miod
2013-09-28In boot(), do not iterate over alldevs if it's empty (i.e. halting from ddbMiod Vallat
with ddb entered early with boot -d or from UKC).
2013-09-28Fix use of uninitialized variable, found by Maxime Villard.Mike Larkin
ok miod@
2013-09-24Sync the MI LANCE code ( le(4) ) with NetBSD, except for the following:Miod Vallat
- the am7990_get() - now lance_get() - is unchanged. - the interrupt acknowledge logic is unchanged, and will disable interrupts, then acknowledge all interrupt conditions. Add ILACC (79900) support (from NetBSD). Both LANCE (am7990.c) and ILACC (am79900.c) code share as much common code (lance.c) as possible. This affects all le(4) attachments, but the changes are mostly mechanical, to split am7990-specific parts from lance-agnostic parts. Compile tested on all affected platforms. Tested on alpha, hp300, luna88k, mvme88k, sparc, sparc64 and vax.
2013-09-21Create process map holes with UVM_INH_SHARE so that they don't get lost inMiod Vallat
fork-without-exec situation (such as privsep'd binaries). Fixes occasional SIGSEGV in syslogd and pflogd on sun4/4c/4e.
2013-09-15Replace a hardcoded delay() with ZS_DELAY() to make sun4c happierMiod Vallat