diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2015-05-26 15:32:19 -0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2015-05-27 13:30:20 +0200 |
commit | bb5cb3afb5749bf6a16c6e6266d610f92cc2ce4b (patch) | |
tree | f5a4130d16ae394eca88d76fe3bf5157c7841c2a /libgloss/or1k | |
parent | 5eb4a1666dffbeb3e823d5372c603ac930e6ba9f (diff) | |
download | newlib-bb5cb3afb5749bf6a16c6e6266d610f92cc2ce4b.zip newlib-bb5cb3afb5749bf6a16c6e6266d610f92cc2ce4b.tar.gz newlib-bb5cb3afb5749bf6a16c6e6266d610f92cc2ce4b.tar.bz2 |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |