public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin/cygwin-2.0] or1k: Add missing initialization of impure ptr
@ 2015-05-27 11:32 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2015-05-27 11:32 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=bb5cb3afb5749bf6a16c6e6266d610f92cc2ce4b

commit bb5cb3afb5749bf6a16c6e6266d610f92cc2ce4b
Author: Jeff Johnston <jjohnstn@redhat.com>
Date:   Tue May 26 15:32:19 2015 -0400

    or1k: Add missing initialization of impure ptr
    
        * or1k/impure.c: Fix initialization of impure ptr

Diff:
---
 libgloss/ChangeLog     | 4 ++++
 libgloss/or1k/impure.c | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog
index 7605f36..3469fad 100644
--- a/libgloss/ChangeLog
+++ b/libgloss/ChangeLog
@@ -1,5 +1,9 @@
 2015-05-26  Stefan Wallentowitz  <stefan.wallentowitz@tum.de>
 
+	* or1k/impure.c: Fix initialization of impure ptr
+
+2015-05-26  Stefan Wallentowitz  <stefan.wallentowitz@tum.de>
+
 	* or1k/boards/optimsoc.S: Heap for gzll kernel
 
 2015-05-26  Stefan Wallentowitz  <stefan.wallentowitz@tum.de>
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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-27 11:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-27 11:32 [newlib-cygwin/cygwin-2.0] or1k: Add missing initialization of impure ptr Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).