forked from Imagelibrary/rtems
2001-05-09 Joel Sherrill <joel@OARcorp.com>
* include/i960CA.h, include/i960RP.h: Correct inline assembly forward reference labels.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2001-05-09 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* include/i960CA.h, include/i960RP.h: Correct inline assembly
|
||||||
|
forward reference labels.
|
||||||
|
|
||||||
2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||||
|
|
||||||
* configure.ac:
|
* configure.ac:
|
||||||
|
|||||||
@@ -83,8 +83,8 @@ typedef i960ca_PRCB i960_PRCB;
|
|||||||
|
|
||||||
#define i960_clear_intr( xint ) \
|
#define i960_clear_intr( xint ) \
|
||||||
{ register unsigned int _xint=(xint); \
|
{ register unsigned int _xint=(xint); \
|
||||||
asm volatile( "loop_til_cleared: clrbit %0,sf0,sf0 ; \
|
asm volatile( "99: clrbit %0,sf0,sf0 ; \
|
||||||
bbs %0,sf0, loop_til_cleared" \
|
bbs %0,sf0, 99b" \
|
||||||
: "=d" (_xint) : "0" (_xint) ); \
|
: "=d" (_xint) : "0" (_xint) ); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -366,9 +366,9 @@ typedef i960rp_PRCB i960_PRCB;
|
|||||||
register unsigned int _mask=(1<<(xint)); \
|
register unsigned int _mask=(1<<(xint)); \
|
||||||
register unsigned int *_ipnd = (int * ) IPND_ADDR; \
|
register unsigned int *_ipnd = (int * ) IPND_ADDR; \
|
||||||
register unsigned int _rslt = 0; \
|
register unsigned int _rslt = 0; \
|
||||||
asm volatile( "loop_til_cleared: mov 0, %0; \
|
asm volatile( "99: mov 0, %0; \
|
||||||
atmod %1, %2, %0; \
|
atmod %1, %2, %0; \
|
||||||
bbs %3,%0, loop_til_cleared" \
|
bbs %3,%0, 99b" \
|
||||||
: "=d" (_rslt), "=d" (_ipnd), "=d" (_mask), "=d" (_xint) \
|
: "=d" (_rslt), "=d" (_ipnd), "=d" (_mask), "=d" (_xint) \
|
||||||
: "0" (_rslt), "1" (_ipnd), "2" (_mask), "3" (_xint) ); \
|
: "0" (_rslt), "1" (_ipnd), "2" (_mask), "3" (_xint) ); \
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user