From: Craig P Prescott <prescott@phys.ufl.edu>
To: axp-list@redhat.com
Subject: Re: tbia() on DEC 3000 question
Date: Mon, 16 Aug 1999 06:16:09 -0400 [thread overview]
Message-ID: <199908161016.GAA07656@neptune.phys.ufl.edu> (raw)
In-Reply-To: Your message of "Mon, 16 Aug 1999 01:37:44 PDT." <19990816013744.A8840@twiddle.net>
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
next prev parent reply other threads:[~1999-08-16 10:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-16 7:24 tbia() on DEC 3000 question Craig P Prescott
1999-08-16 8:36 ` Wes Bauske
1999-08-16 8:50 ` Craig P Prescott
1999-08-16 8:37 ` Richard Henderson
1999-08-16 10:16 ` Craig P Prescott [this message]
1999-08-17 0:16 ` Richard Henderson
1999-08-18 9:36 ` Craig P Prescott
1999-08-18 9:35 ` Diagram for DEC3000 power supply Jason Irons
1999-08-18 23:49 ` tbia() on DEC 3000 question Richard Henderson
1999-08-19 18:45 ` Craig P Prescott
1999-08-19 23:02 ` Richard Henderson
1999-08-20 2:10 ` Ping all: DEC 3000 support question Ken Shiring
1999-08-20 7:11 ` Craig P Prescott
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