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,9 +131,9 @@ mrg_Delay()
|
|||
|
||||
u_int32_t ticks;
|
||||
|
||||
asm(" movl a0, %0" /* get arguments */
|
||||
asm volatile (" movl a0, %0" /* get arguments */
|
||||
: "=g" (ticks)
|
||||
:
|
||||
: "g" (ticks)
|
||||
: "a0" );
|
||||
|
||||
#if defined(MRG_DEBUG)
|
||||
|
|
Loading…
Reference in New Issue