2000-01-19 09:47:19 +00:00
|
|
|
.\" Copyright (c) 2000 David E. O'Brien
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
|
|
|
.Dd January 18, 2000
|
|
|
|
.Dt UAC 1
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm uac
|
|
|
|
.Nd Unaligned Access Message Control
|
|
|
|
.Sh SYNOPSIS
|
2000-11-20 19:21:22 +00:00
|
|
|
.Nm
|
2000-01-19 09:47:19 +00:00
|
|
|
.Op Fl fprs
|
|
|
|
.Sh DESCRIPTION
|
2002-04-20 12:18:28 +00:00
|
|
|
The
|
2000-01-19 09:47:19 +00:00
|
|
|
.Nm
|
2002-04-20 12:18:28 +00:00
|
|
|
utility sets the per-process handling of
|
2000-06-13 12:25:20 +00:00
|
|
|
.Dq Unaligned Access
|
|
|
|
events.
|
|
|
|
Unlike many other CPU's the DEC Alpha processor cannot access unaligned data.
|
|
|
|
To work around this, the Alpha has the ability to fix the UA fault
|
|
|
|
rather than send the faulting process a
|
2000-01-27 09:00:51 +00:00
|
|
|
.Dv SIGBUS
|
|
|
|
signal.
|
|
|
|
However, doing so does slow down the
|
2000-01-19 09:47:19 +00:00
|
|
|
execution of the faulting process.
|
2001-07-15 08:06:20 +00:00
|
|
|
At bootup, the DEC Alpha CPU defaults to printing
|
2000-12-19 16:00:12 +00:00
|
|
|
.Bd -ragged
|
|
|
|
.Em pid
|
|
|
|
.Ar nnn Pq Ar <progname> :
|
|
|
|
unaligned access:
|
|
|
|
.Em va Ns = Ns Ar 0xADDR
|
|
|
|
.Em pc Ns = Ns Ar 0xADDR
|
|
|
|
.Em ra Ns = Ns Ar 0xADDR
|
|
|
|
.Em op Ns = Ns Ar ldl
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2000-06-13 12:25:20 +00:00
|
|
|
when a UA happens along with fixing it,
|
|
|
|
so the faulting instruction can continue.
|
2000-01-19 09:47:19 +00:00
|
|
|
UA handling settings are inherited by child process.
|
2000-06-13 12:25:20 +00:00
|
|
|
Issued without any options,
|
2000-01-27 09:00:51 +00:00
|
|
|
.Nm
|
2000-01-19 09:47:19 +00:00
|
|
|
displays the current UA handling for the parent process.
|
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width Fl
|
|
|
|
.It Fl f
|
|
|
|
Unaligned access errors are not fixed for the parent and its future descendants.
|
|
|
|
.It Fl p
|
|
|
|
Unaligned access errors are not printed for the parent and its future
|
|
|
|
descendants.
|
|
|
|
.It Fl r
|
|
|
|
Resets the unaligned access error settings back to their bootup defaults.
|
|
|
|
.It Fl s
|
2000-01-27 09:00:51 +00:00
|
|
|
Unaligned access errors result in a
|
|
|
|
.Dv SIGBUS
|
2000-06-13 12:25:20 +00:00
|
|
|
being delivered to the parent and its future descendants.
|
2000-06-20 15:40:50 +00:00
|
|
|
This aids in pinpointing the faulting access so it can be debugged.
|
2000-01-19 09:47:19 +00:00
|
|
|
.El
|
2005-01-17 07:44:44 +00:00
|
|
|
.Sh EXIT STATUS
|
2000-01-19 09:47:19 +00:00
|
|
|
Exit status is 0 on success, and 1 if the command
|
|
|
|
fails for any reason.
|
|
|
|
.Sh COMPATIBILITY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
command syntax is incompatible with the DEC OSF/1 syntax.
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr signal 3
|
|
|
|
.Sh HISTORY
|
2002-04-20 12:18:28 +00:00
|
|
|
A
|
2000-01-19 09:47:19 +00:00
|
|
|
.Nm
|
2002-04-20 12:18:28 +00:00
|
|
|
utility first appeared in DEC OSF/1.
|
2000-01-19 09:47:19 +00:00
|
|
|
.Sh AUTHORS
|
2000-11-22 09:35:58 +00:00
|
|
|
.An -nosplit
|
2000-01-19 09:47:19 +00:00
|
|
|
The
|
|
|
|
.Fx
|
|
|
|
version of
|
|
|
|
.Nm
|
|
|
|
was originally written by
|
|
|
|
.An Andrew Gallatin Aq gallatin@cs.duke.edu
|
|
|
|
and modified by
|
|
|
|
.An David E. O'Brien Aq obrien@FreeBSD.org .
|
|
|
|
This
|
|
|
|
manual page was written by
|
|
|
|
.An David E. O'Brien Aq obrien@FreeBSD.org .
|