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

[PATCH 8/8] or1k: Add missing initialization of impure ptr


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



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