This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, please apply the attached patch that fixes the timer restore after exceptions for the OpenRISC libgloss. Best, Stefan -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlbhpisACgkQuMYtsrn2U9zdVgCbBKG3U79xlHw0+QTpOxkD8d/Y J0EAoKWX7n4IS5OR0sqdXW4CBRIv+N3V =4KIQ -----END PGP SIGNATURE-----
commit 07f839d0a4ef8ca39a18a6629538297a13e7b740
Author: Stefan Roesch <stefan.roesch@tum.de>
Date: Wed Mar 9 16:57:47 2016 +0100
or1k: properly restore timer
Consider the function parameter for restoring the timer
diff --git a/libgloss/or1k/timer.c b/libgloss/or1k/timer.c
index 08afa60..db45d3a 100644
--- a/libgloss/or1k/timer.c
+++ b/libgloss/or1k/timer.c
@@ -140,7 +140,7 @@ void
or1k_timer_restore(uint32_t sr_tee)
{
uint32_t sr = or1k_mfspr(OR1K_SPR_SYS_SR_ADDR);
- sr = OR1K_SPR_SYS_SR_TEE_SET(sr, 1);
+ sr = OR1K_SPR_SYS_SR_TEE_SET(sr, sr_tee);
or1k_mtspr(OR1K_SPR_SYS_SR_ADDR, sr);
}
Attachment:
or1k_timer_restore.patch.sig
Description: PGP signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |