Correct asm operands in mrg_Delay(); it has one output operand, and no
input operands. This corrects an uninitialized variable warning, and may also explain some erratic behavior of the MRG ADB; gcc could throw away the value of the `ticks' variable (but I haven't traced through any ROMs, myself).
This commit is contained in:
parent
3ac126bc23
commit
9d67345760
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: macrom.c,v 1.29 1996/10/30 05:30:57 briggs Exp $ */
|
||||
/* $NetBSD: macrom.c,v 1.30 1996/12/18 07:21:06 scottr Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (C) 1994 Bradley A. Grantham
|
||||
|
@ -131,10 +131,10 @@ mrg_Delay()
|
|||
|
||||
u_int32_t ticks;
|
||||
|
||||
asm(" movl a0, %0" /* get arguments */
|
||||
:
|
||||
: "g" (ticks)
|
||||
: "a0" );
|
||||
asm volatile (" movl a0, %0" /* get arguments */
|
||||
: "=g" (ticks)
|
||||
:
|
||||
: "a0" );
|
||||
|
||||
#if defined(MRG_DEBUG)
|
||||
printf("mrg: mrg_Delay(%d) = %d ms\n", ticks, ticks * 60);
|
||||
|
|
Loading…
Reference in New Issue