From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 31416 invoked from network); 16 Aug 1999 10:16:10 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 16 Aug 1999 10:16:10 -0000 Received: from neptune.phys.ufl.edu (neptune-gw.phys.ufl.edu [128.227.64.7]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id GAA03708 for ; Mon, 16 Aug 1999 06:16:09 -0400 Received: from hee.phys.ufl.edu (hee.phys.ufl.edu [128.227.89.254]) by neptune.phys.ufl.edu (8.8.8/8.8.8) with ESMTP id GAA07656 for ; Mon, 16 Aug 1999 06:16:09 -0400 (EDT) Message-Id: <199908161016.GAA07656@neptune.phys.ufl.edu> To: axp-list@redhat.com Subject: Re: tbia() on DEC 3000 question In-Reply-To: Your message of "Mon, 16 Aug 1999 01:37:44 PDT." <19990816013744.A8840@twiddle.net> Date: Mon, 16 Aug 1999 06:16:09 -0400 From: Craig P Prescott Hi, Richard; Thank you for the response and answers to my questions! I will study the compiler output. re: my tbia() trouble... > This doesn't make sense; __r16 is no longer used by the asm, > so the assignment should be optimized away, so $16 probably > now contains garbage. Whoops. The original tbia() generated the line lda $16,-2 before the call_pal and what I had did not! So indeed there was stale stuff in $16. Ok, I am learning. If I actually *use* __r16 : #define tbia() \ ({ \ register unsigned long __r16 __asm__("$16") = -2; \ __asm__ __volatile__( \ "call_pal 0x0033" \ : \ :"r" (__r16) \ :"$1", "$16", "$17", "$22", "$23", "$24", "$25");\ }) something which makes more sense comes out: lda $16,-2 call_pal 0x0033 and then I am back to the machine check in tbia(): ?06 DBL MCHK PC= 00000000.00060401 PSL= 00000000.00000007 Sigh. Since both tbia()s end up with the identical error, I guess tbia() is not the problem... Thanks again, Craig