Age | Commit message (Collapse) | Author |
|
is non-zero before handling them, like we do in pyro(4). Seems to fix issues
with MSIs on sun4v, so enable them again.
|
|
other strands can do some useful work. Idea stolen from Linux.
Results in a small, but measurable speedup doing a kernel build and reduces
the system time by almost 10%.
|
|
|
|
|
|
interrupts up-front and explicitly enabling them later than the other way
around.
|
|
for passing around a pointer to a cleanup function and we'd like to use it
for that purpose in the near future.
ok miod@
|
|
|
|
message. Sleep if necessary.
|
|
|
|
|
|
|
|
wdog_shutdown() for external usage.
|
|
|
|
|
|
as well.
|
|
|
|
|
|
paths are reflexive. It is now possible to fail part-way through a
suspend sequence, and recover along the resume code path.
Split DVACT_SUSPEND by adding a new DVACT_POWERDOWN method is used
after hibernate (and suspend too) to finish the job. Some drivers
must be converted at the same time to use this instead of shutdown hooks
(the others will follow at a later time)
ok kettenis mlarkin
|
|
|
|
for all the compat layers which are now gone. Linux compat still works
because it always used another method in any case, and nothing looks at
p_os anymore.
ok jsing
|
|
thread switch in the hope the other thread can do some useful work.
|
|
|
|
thread switch in the hope the other thread can do some useful work.
|
|
use them to patch inline assembly in C code as well.
|
|
to deraadt@, ok kettenis@
|
|
|
|
Fujitsu SPARC64-VI and SPARC64-VII CPUs. Since the two threads on each core
share the TLBs of the core we cannot enter different mappings for the same
virtual address. Instead we use a scratch register to store the per-cpu
pointer. This is very similar to what we do on sun4v.
For now we still only attach the first thread of each SPARC64-VI/VII core
since we currently don't handle the VMT (Vertical Multi-Threading) of the
SPARC64-VI very well.
|
|
a 64K boundary. This means we don't have to worry about virtual cache aliasing
anymore since SPARC V9 CPUs have at most a 16K aliasing.
|
|
|
|
updated gcc and ld to understand the new -nopie flag.
ok deraadt@
|
|
same problem/fix as sparc.
|
|
|
|
invocations. This allows us to use the compiler builtin define __PIC__ to check
for PIC/PIEness rather than passing -DPIC. Simplifies PIE work a lot.
ok matthew@, conceptually ok kurt@
|
|
cleaned up later.
ok deraadt@
|
|
ok miod@ (who found others to fix as well)
|
|
built with -fno-pie. This gets the hairiest part of PIE out of the way ...
ok deraadt@
|
|
|
|
Fixes DMA problems spotted on the v445.
|
|
on the v445 (compared to the v215/v245). Generalize the code to allow for
arbitrary wirings. Makes the serial console on the v445 work.
|
|
an MI file, <sys/syscall_mi.h>, correcting inconsistencies and the
handling when copyin() of arguments fails.
Tested on i386, amd64, sparc64, and alpha (thanks naddy@)
Any issues with other platforms will be fixed in tree.
header name from millert@; ok miod@
|
|
|
|
used by Solaris for virtual ports (NPIV), and booting from thos is not
supported by OBP. Simplify the code accordingly.
|
|
the prototype-scsi_link's SDEV_2NDBUS flag rather than against its
scsibus field. First, the scsibus field hasn't even been initialized
when device_register() is called so it's always 0 anyway; second, the
path number is supposed to be locally scoped to a single device
whereas the scsibus field is a global scsibus(4) device number.
The existing code only happened to work because all of the dual-port
fibre-channel adapters we currently support attach as two devices with
one scsibus each rather than a single device with two scsibuses, so we
would never see anything but "fp@0".
Initial investigation and diff by jmatthew after my SCSI cleanups at
c2k11 broke sparc64's ability to boot from isp(4); newer version from
me based on discussion with krw and kettenis.
tested and ok kettenis
|
|
MI float.h which pulls in and defines the values that are needed from
there, and repair sys/limits.h so that it defines the values it needs
as well (depending on POSIX version, XPG version, etc). guenther has
a more exact selection of that coming for limits.h.
this also fixes a few mistakes for the vax.
reviewed by kettenis and guenther.
|
|
so that it can't get a signal while still running on the parent thread's
stack. Also, pass in sizeof(struct __tfork) to provide forward compat
when more members are added. This is an ABI change, so switch syscall
numbers and bump lib majors this time.
ok deraadt@ matthew@
|
|
these (DEBUG) defines.
ok miod@
|
|
ok miod@
|
|
from a fork syscall done by the parent. Use __tfork, not rfork
here to match the ktrace records for the parent (CALL __tfork,
RET __tfork). ok guenther
|
|
ok deraadt@
|
|
|