This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH 8/8] or1k: Add missing initialization of impure ptr
- From: Stefan Wallentowitz <stefan dot wallentowitz at tum dot de>
- To: newlib at sourceware dot org
- Date: Sun, 17 May 2015 17:04:55 +0200
- Subject: [PATCH 8/8] or1k: Add missing initialization of impure ptr
- Authentication-results: sourceware.org; auth=none
libgloss/Changelog:
* or1k/impure.c: Fix initialization of impure ptr
>From 9251751194dae0f4303f3e0e0820bdcecb1e530b Mon Sep 17 00:00:00 2001
From: Stefan Wallentowitz <stefan.wallentowitz@tum.de>
Date: Fri, 8 May 2015 11:43:14 +0200
Subject: [PATCH 8/8] or1k: Add missing initialization of impure ptr
libgloss/Changelog:
* or1k/impure.c: Fix initialization of impure ptr
---
libgloss/or1k/impure.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libgloss/or1k/impure.c b/libgloss/or1k/impure.c
index f4eb4ad..e94fd63 100644
--- a/libgloss/or1k/impure.c
+++ b/libgloss/or1k/impure.c
@@ -94,6 +94,9 @@ _or1k_libc_impure_init (void)
_REENT_INIT_PTR (_impure_ptr);
_REENT_INIT_PTR (_or1k_exception_impure_ptr);
+ // Use the standard impure ptr during normal software run
+ _or1k_impure_ptr = _impure_ptr;
+
// Set current to standard impure pointer
_or1k_current_impure_ptr = _impure_ptr;
#endif
--
2.1.4