This is the mail archive of the newlib-cvs@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]

[newlib-cygwin/cygwin-2.0] or1k: Add missing initialization of impure ptr


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]