summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
AgeCommit message (Collapse)Author
2016-09-03Increase the number of mbufs on most architectures. This is basedAlexander Bluhm
on a guess how much memory a typical machine has. If the value is too high, users may run out of kernel memory. Then we will have to adjust this again. OK claudio@ deraadt@
2016-09-02Add switch(4) cdev entryKazuya Goda
ok deraadt@ yasuoka@ reyk@
2016-08-23Convert %q to %ll in format stringsPhilip Guenther
ok natano@ krw@
2016-08-17use a register variable to get at the curcpu pointer in %g7David Gwynne
this lets us define curcpu(), cpu_number(), etc as derefs of this variable rather than having to write asm to copy it into another register for the same derefs. this provides shorter inlined code that wastes less registers. ok kettenis@ who notes we use this these on other archs already
2016-08-17we have some spare interrupt levels, so move softnet above softclock.David Gwynne
ok kettenis@
2016-08-16replace hand rolled tsleep physlock with rwlock. ok mlarkinTed Unangst
2016-08-15normalize some commentsTed Unangst
2016-07-30Prep for relro: make sure it's off for any non-PIE stand/ programPhilip Guenther
ok millert@ kettenis@
2016-07-27ansify mem.c to the latest fashion. with a fix from mike burns. ok deraadtTed Unangst
2016-07-16Fix typo in comment in three machdep.c files:Tom Cosgrove
s/names are this level/names at this level/ from aalm@ - thanks
2016-07-04Add nep(4).Mark Kettenis
2016-06-28enable ure(4) where we already have url(4)Jonathan Matthew
2016-06-13rework sparc64 splfoo functions to be more consistent with other archsDavid Gwynne
this also moves us toward having an MI splraise(). sparc64 (and sparc) are different to the other archs because they have macros that build templates. each spl uses that macro to create an instance of an inline function specific to that spl call. this moves it to having a single splraise inline that the spl api is defined with. eg, #define splfoo() _splraise(IPL_FOO). ok kettenis@
2016-06-08remove obsolete raid from namtoblk tables. from Artturi AlmTed Unangst
2016-06-07remove splsoftfd and splausoftDavid Gwynne
theyre unused. ok kettenis@
2016-06-07consistently set ipls on pmap pools.David Gwynne
this is a step toward making ipls unconditionaly on pools. ok deraadt@ kettenis@
2016-06-01Enable utvfu(4) everywhere where uvideo(4) is also enabled.Marcus Glocker
suggested by mpi
2016-05-27Remove the non ELF macrosTheo de Raadt
ok millert
2016-05-23Place a cpu-dependent trap/illegal instruction over the remainder of theTheo de Raadt
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
2016-05-21hand-massage sendsig() and sys_sigreturn() to be much more similarTheo de Raadt
2016-05-19Use OF_is_compatible(9). Simplifies the code and should make pci withinMark Kettenis
a guest domain on a Fujitsu M10 work.
2016-05-19Implement OF_is_compatible(9).Mark Kettenis
2016-05-10SROP mitigation. sendsig() stores a (per-process ^ &sigcontext) cookieTheo de Raadt
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
2016-05-04Some hardware (such as the onboard dc(4) of the Netra X1) has a broken DMAMark Kettenis
engine that might attempt to read beyond the end of the buffer that was programmed. The IOMMU catches this "DMA overrun" and throws an unrecoverable error at us, at which point we have no choice but to panic. To avoid this implement a BUS_DMA_OVERRUN flag that maps an additional scratch page at the end of the vdma address range. DMA requests will spill over into this page, which just returns zeroes. Thanks to matthieu@ for giving me access to a machine with the problem. ok deraadt@, beck@
2016-05-04Initial support for MSI-X. Only supported on amd64 for now. I have diffs toMark Kettenis
actually use this in em(4) and xhci(4), but I'm not committing those yet because we almost certainly need to save and restore the MSI-X registers during suspend/resume. However, this allows mpi@ to play with multiple-vector support in networking hardware. Requested by mpi@ ok mlarkin@, mikeb@
2016-05-03Revert previous commit. Calling sched_init_cpu() fromMark Kettenis
cpu_boot_secondary_processors() break suspend/resume.
2016-04-29Call sched_init_cpu() just before booting secondary CPUs.Martin Pieuchot
This prevent the scheduler from scheduling tasks to CPUs not beeing able to execute them during the boot process. ok visa@, kettenis@
2016-04-29Do not remove local symbols from the table.Martin Pieuchot
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@
2016-04-27G/C DDB_REGS.Martin Pieuchot
2016-04-25remove systraceTed Unangst
2016-04-15enable nvme(4). it Just Works(tm).David Gwynne
2016-04-13G/C IFQ_SET_READY().Martin Pieuchot
2016-04-10For now, disable ahc(4) such that GENERIC.MP kernels don't overflow the 8MMark Kettenis
reserved for .text and .rodata. Hopefully I can get rid of this limit soon. propmpted by guenther@
2016-03-30some oce(4) work, it appearsTheo de Raadt
2016-03-29Some sparc64 pci frame buffers incorrectly have the `depth' propertyMark Kettenis
spelled `depth ' with a trailing space. From miod@
2016-03-21Plug a memory leak in vnet(4) ioctl code path.Stefan Sperling
ok kettenis@
2016-03-19Remove the unused flags argument from VOP_UNLOCK().natano
torture tested on amd64, i386 and macppc ok beck mpi stefan "the change looks right" deraadt
2016-03-19Reduces the noise around the global ``ticks'' variable by renamingMartin Pieuchot
all the local ones to ``nticks''. ok stefan@, deraadt@
2016-03-15'accomodate' -> 'accommodate' in comments.Kenneth R Westerback
Started by diff from Mical Mazurek.
2016-03-14Change a bunch of (<blah> *)0 to NULL.Kenneth R Westerback
ok beck@ deraadt@
2016-03-07Sync no-argument function declaration and definition by adding (void).Christian Weisgerber
ok mpi@
2016-03-01DB_SYM_NULL -> NULL.Martin Pieuchot
2016-02-27Rename kdb_trap() into db_ktrap().Martin Pieuchot
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@
2016-02-26Prevent memory leak when the ldc gets reset.Mark Kettenis
2016-02-26Remove stale RAIDframe entries from chrtoblktbl.natano
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@
2016-01-20Check for disks deeper than 4 levels down in the Open Firmware device tree.Stefan Sperling
Makes softraid(4) boot possible on more sparc64 machines. Tested on Sun Fire machines by mikeb@ and Alexander Bochmann via misc@ ok mikeb@
2016-01-08Move HID support files out of dev/usb into new dev/hid directoryJoshua Stein
These files aren't USB-specific and were used by the previous Bluetooth implementation, and will be used by the upcoming HID-over-i2C implementation ok deraadt previous version ok kettenis and mpi
2016-01-08Enable uonerng(4) where ualea(4) is already present.Martin Pieuchot
2015-12-29Remove NULL-checks before free().mmcc
ok tb@
2015-12-11Replace mountroothook_establish(9) by config_mountroot(9) a narrower APIMartin Pieuchot
similar to config_defer(9). ok mikeb@, deraadt@