Explicitly cast "g" arg to mtpr to long; to tell gcc that this
instruction will use long indexing.
This commit is contained in:
parent
c151b13c1f
commit
413b4a7519
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mtpr.h,v 1.13 2000/07/06 17:42:49 ragge Exp $ */
|
||||
/* $NetBSD: mtpr.h,v 1.14 2003/01/22 23:06:37 ragge Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
|
||||
|
@ -170,7 +170,7 @@
|
|||
{ \
|
||||
__asm__ __volatile ("mtpr %0,%1" \
|
||||
: /* No output */ \
|
||||
: "g" (val), "g" (reg)); \
|
||||
: "g" ((long)(val)), "g" (reg)); \
|
||||
}
|
||||
|
||||
#define mfpr(reg) \
|
||||
|
|
Loading…
Reference in New Issue