summaryrefslogtreecommitdiff
path: root/libl4/powerpc
diff options
context:
space:
mode:
authormarcus <marcus>2005-01-22 17:52:51 +0000
committermarcus <marcus>2005-01-22 17:52:51 +0000
commita55aa2fc76c29ffda19f3d010baad6f5340199e2 (patch)
tree07e1f9deadf27d294dc9f7adad40345c48889a53 /libl4/powerpc
parent05eaa4f61223f8c8f234e4bd52dab429e8b9ffa4 (diff)
2005-01-22 Matthieu Lemerre <racin@free.fr>
* powerpc/l4/bits/vregs.h (_L4_load_br, _L4_store_br, _L4_load_brs, _L4_store_brs): Fix buffer register addressing. * ia32/l4/bits/vregs.h (_L4_load_br, _L4_store_br, _L4_load_brs, _L4_store_brs): Likewise.
Diffstat (limited to 'libl4/powerpc')
-rw-r--r--libl4/powerpc/l4/bits/vregs.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libl4/powerpc/l4/bits/vregs.h b/libl4/powerpc/l4/bits/vregs.h
index f169a77..546e5b0 100644
--- a/libl4/powerpc/l4/bits/vregs.h
+++ b/libl4/powerpc/l4/bits/vregs.h
@@ -368,7 +368,7 @@ _L4_load_br (int nr, _L4_word_t data)
{
_L4_word_t *br = _L4_utcb () + _L4_UTCB_BR0;
- br[nr] = data;
+ br[-nr] = data;
}
@@ -381,7 +381,7 @@ _L4_load_brs (int start, int count, _L4_word_t *data)
_L4_word_t *br = _L4_utcb () + _L4_UTCB_BR0 - start;
while (count--)
- *(br--) = *(data--);
+ *(br--) = *(data++);
}
@@ -392,7 +392,7 @@ _L4_store_br (int nr, _L4_word_t *data)
{
_L4_word_t *br = _L4_utcb () + _L4_UTCB_BR0;
- *data = br[nr];
+ *data = br[-nr];
}
@@ -404,5 +404,5 @@ _L4_store_brs (int start, int count, _L4_word_t *data)
_L4_word_t *br = _L4_utcb () + _L4_UTCB_BR0 - start;
while (count--)
- *(data--) = *(br--);
+ *(data++) = *(br--);
}