projects
/
platform
/
upstream
/
orc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd515bc
)
powerpc: don't clobber register r31
author
Andreas Schwab
<schwab@linux-m68k.org>
Sat, 19 Mar 2011 23:58:56 +0000
(
00:58
+0100)
committer
David Schleef
<ds@wendolyne.(none)>
Sun, 20 Mar 2011 01:07:28 +0000
(18:07 -0700)
Thanks. Here is another one.
Andreas.
>From
03d635f98a565cd17a08ba84d9095ca1b7c00cef
Mon Sep 17 00:00:00 2001
From: Andreas Schwab <schwab@linux-m68k.org>
Date: Sat, 19 Mar 2011 21:36:21 +0100
Subject: [PATCH] powerpc: fix register constraint
orc/orcpowerpc.c
patch
|
blob
|
history
diff --git
a/orc/orcpowerpc.c
b/orc/orcpowerpc.c
index
b048b85
..
c951da6
100644
(file)
--- a/
orc/orcpowerpc.c
+++ b/
orc/orcpowerpc.c
@@
-382,13
+382,13
@@
orc_powerpc_flush_cache (OrcCode *code)
ptr = code->code;
for (i=0;i<size;i+=cache_line_size) {
- __asm__ __volatile__ ("dcbst %0,%1" :: "
r
" (ptr), "r" (i));
+ __asm__ __volatile__ ("dcbst %0,%1" :: "
b
" (ptr), "r" (i));
}
__asm__ __volatile ("sync");
ptr = (void *)code->exec;
for (i=0;i<size;i+=cache_line_size) {
- __asm__ __volatile__ ("icbi %0,%1" :: "
r
" (ptr), "r" (i));
+ __asm__ __volatile__ ("icbi %0,%1" :: "
b
" (ptr), "r" (i));
}
__asm__ __volatile ("isync");
#endif