From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a0948e2c6e54511f X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-11-30 16:07:03 PST Path: gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!sdd.hp.com!decwrl!pa.dec.com!nntpd.lkg.dec.com!lkg.dec.com!thomas From: thomas@lkg.dec.com (Matt Thomas) Newsgroups: comp.unix.osf.osf1 Subject: Re: unaligned access... Date: 30 Nov 1993 23:25:06 GMT Organization: Digital Equipment Corporation Sender: thomas@netrix.lkg.dec.com (Matt Thomas) Distribution: world Message-ID: <2dgkoi$2sf@nntpd.lkg.dec.com> References: <2dgh8k$1am@nntp2.Stanford.EDU> Reply-To: thomas@lkg.dec.com NNTP-Posting-Host: netrix.enet.dec.com X-Newsreader: mxrn 6.18-8 The following routine may be of use: #include #if (defined(__ultrix) || defined(ultrix)) #include #include #include #elif defined(__osf__) #include #include #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.