summaryrefslogtreecommitdiffstats
path: root/sys/arch/sparc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Celebrate OpenBSD 6.0 release by retiring the sparc port.tedu2016-09-01262-93703/+0
| | | | | You've served us well, good friend, but now it's time to rest. ok deraadt
* replace hand rolled tsleep physlock with rwlock. ok mlarkintedu2016-08-161-13/+7
|
* normalize some commentstedu2016-08-151-4/+4
|
* Prep for relro: make sure it's off for any non-PIE stand/ programguenther2016-07-302-4/+4
| | | | ok millert@ kettenis@
* ansify mem.c to the latest fashion. with a fix from mike burns. ok deraadttedu2016-07-271-29/+6
|
* Fix typo in comment in three machdep.c files:tom2016-07-161-2/+2
| | | | | | s/names are this level/names at this level/ from aalm@ - thanks
* dont need a traliing \ on a line in c code, it's not a macro definition.dlg2016-06-221-2/+2
| | | | from patrick keshishian
* rework the splfoo implementation so it can provide splraise.dlg2016-06-202-103/+89
| | | | | | | | | | | | sparc was like sparc64 (or more likely sparc64 was like sparc) in that the spl api was build with macros that created inline functions that the spl were implemented as. this rework provides an splraise that the splfoo macros are defined to. because the code sequences for spl0, splraise, and splx are relatively long, ive turned them into functions. tested by (and thanks go to) miod@ tobiasu@
* Replace uvm_km_valloc(9) with a km_alloc(9) call that doesn't allocate anykettenis2016-06-161-5/+5
| | | | | | | | | physical pages. Recent canges to uvm_map(9) mean that we now assume that memory in interrupt safe maps is not pageable, and while we made sure all mappings were backed by physical pages, a mapping allocated with uvm_km_valloc(9) appears to pageable and triggered an assertion. ok miod@
* remove obsolete raid from namtoblk tables. from Artturi Almtedu2016-06-081-2/+1
|
* consistently set ipls on pmap pools.dlg2016-06-071-1/+4
| | | | | | this is a step toward making ipls unconditionaly on pools. ok deraadt@ kettenis@
* Remove the non ELF macrosderaadt2016-05-272-19/+2
| | | | ok millert
* Place a cpu-dependent trap/illegal instruction over the remainder of thederaadt2016-05-231-2/+13
| | | | | | | | | sigtramp page, so that it will generate a nice kernel fault if touched. While here, move most of the sigtramps to the .rodata segment, because they are not executed in the kernel. Also some preparation for sliding the actual sigtramp forward (will need some gdb changes) ok mlarkin kettenis
* hand-massage sendsig() and sys_sigreturn() to be much more similar.deraadt2016-05-211-45/+11
| | | | ok guenther kettenis
* fix compile issues in MD sigreturn(2)phessler2016-05-112-7/+9
| | | | OK deraadt@
* SROP mitigation. sendsig() stores a (per-process ^ &sigcontext) cookiederaadt2016-05-102-6/+28
| | | | | | | | inside the sigcontext. sigreturn(2) checks syscall entry was from the exact PC addr in the (per-process ASLR) sigtramp, verifies the cookie, and clears it to prevent sigcontext reuse. not yet tested on landisk, sparc, *88k, socppc. ok kettenis
* Do not remove local symbols from the table.mpi2016-04-291-4/+3
| | | | | | | | ddb(4) can now see static functions. That doesn't mean we should start declaring functions as ``static'', however it helps for the few existing exceptions. ok deraadt@, kettenis@
* G/C DDB_REGS.mpi2016-04-271-2/+1
|
* remove systracetedu2016-04-251-3/+2
|
* G/C IFQ_SET_READY().mpi2016-04-133-6/+3
|
* make the ie(4)s bpf_mtap_ether outgoing packets like all the other driversdlg2016-03-291-14/+6
| | | | ok mpi@ claudio@
* Reduces the noise around the global ``ticks'' variable by renamingmpi2016-03-191-3/+3
| | | | | | all the local ones to ``nticks''. ok stefan@, deraadt@
* More "(<blah> *)0" -> NULL, avoiding any stdarg functions.krw2016-03-161-3/+3
| | | | Feedback millert@ kettenis@
* 'accomodate' -> 'accommodate' in comments.krw2016-03-151-2/+2
| | | | Started by diff from Mical Mazurek.
* Convert sparc drivers bpp and magma to uiomovestefan2016-03-142-9/+9
| | | | Compile test and ok tobiasu@
* remove needless malloc castmmcc2016-03-071-3/+2
|
* Rename kdb_trap() into db_ktrap().mpi2016-02-273-8/+8
| | | | | | | | The goal is to include it in the list of functions that must not be instrumented. All ddb(8) functions should be in this list and have their names start with 'db_'. ok visa@, deraadt@
* Remove stale RAIDframe entries from chrtoblktbl.natano2016-02-261-14/+1
| | | | | | | While there truncate the tables to the minimum required size; chrtoblk() and blktochr() are designed to handle a table shorter than cdevsw. "Looks good to me" deraadt@
* Fix a race causing hardclock() to be sometimes invoked between the endajacoutot2016-01-191-2/+2
| | | | | | | of cpu_configure() and initclocks(). from Miod no objection deraadt@
* Remove NULL-checks before free().mmcc2015-12-291-3/+2
| | | | ok tb@
* Remove the solbourne entries now that all its code is gone.mmcc2015-12-161-9/+9
| | | | ok deraadt@
* Remove remaining Solbourne code.mmcc2015-12-107-311/+7
| | | | ok deraadt@
* No trailers has been the default and only option for 20 years, yet sometedu2015-12-084-8/+8
| | | | | | | drivers still set IFF_NOTRAILERS while others do not. Remove all usage of the flag from the drivers which in ancient times used it (and the modern drivers which blindly copied it from those drivers of yore). suggested by guenther. ok mpi
* Network drivers should not include <net/route.h> or <net/netisr.h>mpi2015-11-255-11/+5
|
* replace IFF_OACTIVE manipulation with mpsafe operations.dlg2015-11-254-21/+23
| | | | | | | | | | | | | | | | | | | | | | | | there are two things shared between the network stack and drivers in the send path: the send queue and the IFF_OACTIVE flag. the send queue is now protected by a mutex. this diff makes the oactive functionality mpsafe too. IFF_OACTIVE is part of if_flags. there are two problems with that. firstly, if_flags is a short and we dont have any MI atomic operations to manipulate a short. secondly, while we could make the IFF_OACTIVE operates mpsafe, all changes to other flags would have to be made safe at the same time, otherwise a read-modify-write cycle on their updates could clobber the oactive change. instead, this moves the oactive mark into struct ifqueue and provides an API for changing it. there's ifq_set_oactive, ifq_clr_oactive, and ifq_is_oactive. these are modelled on ifsq_set_oactive, ifsq_clr_oactive, and ifsq_is_oactive in dragonflybsd. this diff includes changes to all the drivers manipulating IFF_OACTIVE to now use the ifsq_{set,clr_is}_oactive API too. ok kettenis@ mpi@ jmatthew@ deraadt@
* You only need <net/if_dl.h> if you're using LLADDR() or a sockaddr_dl.mpi2015-11-247-14/+7
|
* The only network driver needing <net/if_types.h> is upl(4) for IFT_OTHER.mpi2015-11-245-10/+5
|
* Replace unbounded gets() in libsa with getln() which takes a buffer size,miod2015-11-162-5/+5
| | | | | and convert all gets() users. ok deraadt@
* No need to include <net/bpfdesc.h>mpi2015-11-144-8/+4
| | | | | Now that "struct bpf_d" depends on <sys/srp.h> this is one of the offender for removing the header from <sys/param.h>
* can just IFQ_DEQUEUE instead of POLL followed immediately by DEQUEUEdlg2015-11-122-8/+4
| | | | ok mpi@
* Define pmap_nested() here too, since we define PMAP_EXCLUDE_DECLS for the sakemiod2015-11-101-1/+3
| | | | of <uvm/uvm_pmap.h>.
* make hfsc work on ie(4/sparc) by using IFQ_DEQUEUE instead of IF_DEQUEUE.dlg2015-11-061-2/+2
|
* Move the logic for adjusting userspace registers in the child after forkguenther2015-11-062-26/+22
| | | | | | | from cpu_fork() to child_return(), putting all the SYSCALL_G2RFLAG logic in trap.c sparc testing by sebastia@ and miod@
* Now that the kernel virtual address space has been made larger, even onmiod2015-11-051-2/+2
| | | | | sun4/4c/4e, increase NKMEMPAGES_MAX_DEFAULT to the same value as platforms with limited, but not horribly limited, kva size.
* intr_barrier() stub.mpi2015-11-022-2/+9
| | | | ok miod@
* arp_ifinit() is no longer needed.mpi2015-10-254-38/+7
|
* Allocate a new major for tap(4) also note that pseudo-device tun is for tapclaudio2015-10-231-1/+2
| | | | as well. OK dlg@ mpi@
* Do not call uvm_swap_finicrypt_all() a second time in dumpsys().mpi2015-10-211-5/+1
| | | | ok tedu@, deraadt@, miod@
* Use consistant whitespace/comments for #define'ing LABELSECTOR,krw2015-09-301-4/+4
| | | | | LABELOFFSET and MAXPARTITIONS. Easier on the eye when scanning through all these files. No functional change.
* Keep sparc/disksubr.c and sparc64/disksubr.c as close as possible.krw2015-09-281-6/+5
| | | | | | | Some whitespace/comment tweaks, fix a memcpy() parameter, use the sparc64 idiom when invoking [iso|udf]_disklabelspoof() functions. ok deraadt@