Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2015-05-26 22:32:19 +0300
committerCorinna Vinschen <corinna@vinschen.de>2015-05-27 14:30:20 +0300
commitbb5cb3afb5749bf6a16c6e6266d610f92cc2ce4b (patch)
treef5a4130d16ae394eca88d76fe3bf5157c7841c2a /libgloss/or1k
parent5eb4a1666dffbeb3e823d5372c603ac930e6ba9f (diff)
or1k: Add missing initialization of impure ptr
* or1k/impure.c: Fix initialization of impure ptr
Diffstat (limited to 'libgloss/or1k')
-rw-r--r--libgloss/or1k/impure.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgloss/or1k/impure.c b/libgloss/or1k/impure.c
index f4eb4ad19..e94fd637c 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