From: thomas@lkg.dec.com (Matt Thomas)
Subject: Re: unaligned access...
Date: 30 Nov 1993 23:25:06 GMT [thread overview]
Message-ID: <2dgkoi$2sf@nntpd.lkg.dec.com> (raw)
In-Reply-To: 2dgh8k$1am@nntp2.Stanford.EDU
The following routine may be of use:
#include <sys/types.h>
#if (defined(__ultrix) || defined(ultrix))
#include <stddef.h>
#include <sys/syscall.h>
#include <sys/sysmips.h>
#elif defined(__osf__)
#include <sys/sysinfo.h>
#include <sys/proc.h>
#endif
void
coredump_on_unaligned_access(
void)
{
#if defined(ultrix) || defined(__ultrix)
syscall(SYS_sysmips, MIPS_FIXADE, 0, NULL, NULL, NULL);
#elif defined(__osf__)
int nvpair[2];
nvpair[0] = SSIN_UACPROC;
nvpair[1] = UAC_SIGBUS;
setsysinfo(SSI_NVPAIRS, (char *) nvpair, 1, NULL, 0);
#endif
}
--
Matt Thomas Internet: thomas@lkg.dec.com
U*X Networking UUCP: ...!decwrl!thomas
Digital Equipment Corporation Disclaimer: This message reflects my own
Littleton, MA warped views, etc.
next prev parent reply other threads:[~1993-11-30 23:25 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-11-30 22:25 unaligned access Roland Schemers
1993-11-30 23:25 ` Matt Thomas [this message]
1993-12-01 12:06 ` Burkhard Neidecker-Lutz
1993-12-07 1:27 ` Jim Hurst
-- strict thread matches above, loose matches on Subject: below --
2003-03-06 6:27 Unaligned access Emmanuel STAPF [ISE]
2000-03-31 5:00 Kraisit Vittinanon
2000-04-04 4:00 ` Oisin McGuinness
1998-03-31 5:00 Allen M. Cohen
1998-04-01 5:00 ` Joe Mario
1996-11-15 5:00 unaligned access gautam
1996-11-16 5:00 ` Dirk Grunwald
1996-11-20 5:00 ` Jeff Denham
1996-11-22 5:00 ` Curt Smith
1996-11-21 5:00 ` Anthony Berent
1995-05-20 4:00 Adrian Wenden
1995-05-22 4:00 ` Eric Osborne
1995-05-24 4:00 ` Vepa V Sirish
1995-05-25 4:00 ` John Wood
1994-02-05 21:21 Stefan Monnier
1994-02-06 9:39 ` Jarkko Hietaniemi
1993-02-23 15:55 Unaligned access Byron Jennings
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox