summaryrefslogtreecommitdiffstats
path: root/sys/arch/sparc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Downgrade needs-count to needs-flag when applicable.miod2014-10-121-3/+3
|
* Significant unification of RAMDISK* config files, making them diffable.deraadt2014-10-101-268/+155
| | | | | | | 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.
* mechanical translation of dev_lkm_dummy() to dev_notdef()tedu2014-10-091-13/+13
|
* remove LKM devicestedu2014-10-091-3/+2
|
* Switch the kernel configs over to using -Wframe-larger-than= instead ofbrad2014-10-041-2/+2
| | | | | | -Wstack-larger-than-. This is what modern GCC supports as well as LLVM. ok miod@
* implement the atomic_shizz(9) bits.dlg2014-09-301-3/+107
| | | | | | | | sparc lacks cool opcodes, but is only uniprocessor, so these are done with simple critical sections. tested by miod@ bcook@ ok miod@
* Use config_suspend_all(9).kettenis2014-09-201-5/+2
| | | | ok mpi@, uebayasi@, dlg@
* Kill the remaining <netinet/in_systm.h> inclusion!mpi2014-08-212-4/+2
|
* On SPARCbook systems, the ledma device node has a `cable-selection' propertymiod2014-07-283-5/+15
| | | | | | | | | | | specifying which media the on-board interface uses. We already query it to set up proper register values; extend this to be able to pass a default media to the le(4) child. This makes SPARCbook system default to AUI without needing for a manual media change. tested by sebastia@
* <netinet/in_systm.h> is no longer needed.mpi2014-07-228-40/+9
|
* boot(9): Reduce annoying style diffsuebayasi2014-07-211-6/+6
| | | | | | | | - Always use either: ((x & RB_XXX) != 0) or ((x & RB_XXX) == 0) in boolean context (mostly if (x), or x ? y : z) - prom_halt() in alpha is confirmed to take int as boolean Converted by coccinelle. No functional change intended.
* boot(9): Cosmetic changes to improve diff'ability.uebayasi2014-07-131-2/+3
|
* Cosmetic changes to reduce diffs.uebayasi2014-07-131-2/+2
|
* use nitems() instead of handrolling something identicaljasper2014-07-131-2/+2
| | | | ok mpi@ sthen@
* revert a few stragglers hiding outtedu2014-07-121-3/+3
|
* revert bogus free changes in not kernel files. got a little trigger happy.tedu2014-07-122-7/+7
|
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-1213-48/+48
| | | | after discussions with beck deraadt kettenis.
* Tackle the endian.h mess. Make it so that:guenther2014-07-121-3/+5
| | | | | | | | | | | | | | | | | | * you can #include <sys/endian.h> instead of <machine/endian.h>, and ditto <endian.h> (fixes code that pulls in <sys/endian.h> first) * those will always export the symbols that POSIX specified for <endian.h>, including the new {be,le}{16,32,64}toh() set. c.f. http://austingroupbugs.net/view.php?id=162 if __BSD_VISIBLE then you also get the symbols that our <machine/endian.h> currently exports (ntohs, NTOHS, dlg's bemtoh*, etc) * when doing POSIX compiles (not __BSD_VISIBLE), then <netinet/in.h> and <arpa/inet.h> will *stop* exporting the extra symbols like BYTE_ORDER and betoh* ok deraadt@
* boot(9): Undo curproc-overriding hacksuebayasi2014-07-111-6/+1
| | | | | | | | | | Some (not all) boot(9) implementations have ancient hacks which overrides if (curproc == NULL). This was probably made in a hope to forcibly proceed various clean-shutdown related code, including VFS shutdown. Let's clarify that clean-shutdown needs process context; it is impossible to cleanly shutdown VFS from within e.g. a panic in SPL_HIGH. OK kettenis@
* Chuck Cranor rescinded clauses in his licensejsg2014-07-117-49/+7
| | | | | | | | | | | | | on the 2nd of February 2011 in NetBSD. http://marc.info/?l=netbsd-source-changes&m=129658899212732&w=2 http://marc.info/?l=netbsd-source-changes&m=129659095515558&w=2 http://marc.info/?l=netbsd-source-changes&m=129659157916514&w=2 http://marc.info/?l=netbsd-source-changes&m=129665962324372&w=2 http://marc.info/?l=netbsd-source-changes&m=129666033625342&w=2 http://marc.info/?l=netbsd-source-changes&m=129666052825545&w=2 http://marc.info/?l=netbsd-source-changes&m=129666922906480&w=2 http://marc.info/?l=netbsd-source-changes&m=129667725518082&w=2
* CPU_BUSY_CYCLE(): A new MI statement for busy loop power reductionuebayasi2014-07-111-1/+3
| | | | | | | | | | The new CPU_BUSY_CYCLE() may be put in a busy loop body so that CPU can reduce power consumption, as Linux's cpu_relax() and FreeBSD's cpu_spinwait(). To start minimally, use PAUSE on i386/amd64 and empty on others. The name is chosen following the existing cpu_idle_*() functions. Naming and API may be polished later. OK kettenis@
* Convert bus_dmamem_map(9) to km_alloc(9) in order to make it fail andmpi2014-07-112-9/+7
| | | | | | | not sleep if the allocator cannot obtain a lock when BUS_DMA_NOWAIT is specified. idea and inputs from kettenis@, ok miod@
* Set cold to 1 before executing the DVACT_POWERDOWN handlers when halting ormpi2014-07-101-2/+3
| | | | | | | | | 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@
* boot(9): Remove comments about RB_*, "cold", and savectx()uebayasi2014-07-101-3/+1
| | | | | | | Again remove slightly different comments to reduce diffs. These will be re-added once boot() become MI and its specification is clearly re-defined. OK miod@
* boot(): Remove comments about RB_TIMEBAD to reduce diffsuebayasi2014-07-101-6/+1
| | | | | | | RB_TIMEBAD is documented well enough that the comment is not needed. sparc64 does slightly different and its comment is left with XXX. OK deraadt@ miod@
* boot(): Unify declarationsuebayasi2014-07-101-4/+3
| | | | OK deraadt@
* bpf code surgery / shuffling / simplification.henning2014-07-091-2/+2
| | | | | | | | | | | | | | | the various bpf_mtap_* are very similiar, they differ in what (and to some extent how) they prepend something, and what copy function they pass to bpf_catchpacket. use an internal _bpf_mtap as "backend" for bpf_mtap and friends. extend bpf_mtap_hdr so that it covers all common cases: if dlen is 0, nothing gets prepended. copy function can be given, if NULL the default bpf_mcopy is used. adjust the existing bpf_mtap_hdr users to pass a NULL ptr for the copy fn. re-implement bpf_mtap_af as simple wrapper for bpf_mtap_hdr. re-implement bpf_mtap_ether using bpf_map_hdr re-implement bpf_mtap_pflog as trivial bpf_mtap_hdr wrapper ok bluhm benno
* Repair compilability after the recent uvmexp changes, especially formiod2014-07-081-1/+3
| | | | not compile-time-known page size platforms.
* Reduce MAXSSIZ to 32MB to match all other platforms; noticed by tobiasu@miod2014-05-311-2/+2
|
* Revert previous diff setting cold to 1 on shutdown because it breaks machinempi2014-05-311-3/+2
| | | | | | | | 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.
* SBus glue for qlw(4) for sparc. Untested.kettenis2014-05-302-1/+159
|
* Set cold to 1 before executing the DVACT_POWERDOWN handlers when halting ormpi2014-05-301-2/+3
| | | | | | | | | 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@
* Turn on blinky things by default, very useful herederaadt2014-05-251-2/+2
|
* Move the increment of uvmexp.softs back to the caller of mi_ast():guenther2014-05-111-1/+2
| | | | | | | 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@
* Factor out the common ast bits into mi_ast()guenther2014-05-101-6/+2
| | | | ok deraadt@
* format string fixes and removal of -Wno-format for sparc kernels.miod2014-05-094-14/+14
|
* Enforce proper alignment of stack variables which may get accessed withmiod2014-04-302-5/+5
| | | | | | | 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@
* Remove RX checksum offloading support. The chip is too limited, andnaddy2014-04-221-105/+2
| | | | | | examining higher protocol layers to adjust the checksum and calculate the pseudo-header in the driver is too complex to be worthwhile. ok henning@
* Have each thread keeps its own (counted!) reference to the process's ucredsguenther2014-04-181-1/+2
| | | | | | | | | 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@
* Fewer <uvm/uvm.h>!mpi2014-04-082-5/+5
|
* Close the kernel fd before attempting to load /etc/random.seed, and reopen itmiod2014-03-302-3/+14
| | | | | | 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.
* It's been a quarter century: we can assume volatile is present with that name.guenther2014-03-296-50/+50
| | | | ok dlg@ mpi@ deraadt@
* Move p_emul and p_sigcode from proc to process.guenther2014-03-262-6/+6
| | | | | | | | | 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@
* Move p_sigacts from struct proc to struct process.guenther2014-03-221-2/+2
| | | | testing help mpi@
* It's safe to assumed 'signed' existsguenther2014-03-191-2/+2
|
* DDB supports ELF symbols are all archs, and it's always the same as theguenther2014-03-161-5/+1
| | | | | | native size, so eliminate the #defines. ok miod@
* get rid of the assumption that the head of the alldevs list is thedlg2014-03-131-3/+5
| | | | | | | | | | | "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.
* lint is gone, and the 'lint' conditional was never in the implementationguenther2014-03-111-9/+1
| | | | | | namespace, so stop changing behavior when it's #defined ok beck@ krw@
* /etc/random.seed support (unless booting from tape). Crank version.miod2014-02-253-6/+63
|
* Put edata after the .openbsd.randomdata phdr, to prevent the former's contentsmiod2014-02-251-2/+2
| | | | from being bzeroed when locore bzeros what it thinks is the bss.