Age | Commit message (Collapse) | Author |
|
|
|
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@
|
|
|
|
"MTU" of 4096 bytes.
|
|
|
|
of per-rthread. Handling of per-thread tick and runtime counters
inspired by how FreeBSD does it.
ok kettenis@
|
|
|
|
|
|
|
|
control domain to talk to the sun4v hypervisor.
|
|
|
|
|
|
out the intended device name from the realdev constructed by
opendev(). Should fix the issue found by stsp@ in trying to install
a boot-from-softraid sparc64.
ok deraadt@
|
|
root on softraid possible, although the kernel still needs to be loaded
from a non-softraid partition.
|
|
- Use opendev() like we do for installboot on many other archs.
- Use the term bootblock rather than prototype for the first-stage, since
we install it verbatim.
- Read the bootblock into a zeroed buffer rather than messing around with
mmap() and zeroing the end of the space.
- Make man page consistent with respect to the first-stage bootblock and
second-stage boot program.
ok kettenis@ jmc@ (for the man part)
|
|
related code.
ok kettenis@
|
|
past, pull that code out seperately.
ok guenther miod
|
|
by krw and myself.
|
|
ok guenther@
|
|
|
|
|