From bb5cb3afb5749bf6a16c6e6266d610f92cc2ce4b Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 26 May 2015 15:32:19 -0400 Subject: [PATCH] or1k: Add missing initialization of impure ptr * or1k/impure.c: Fix initialization of impure ptr --- libgloss/ChangeLog | 4 ++++ libgloss/or1k/impure.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index 7605f3692..3469fad33 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -1,3 +1,7 @@ +2015-05-26 Stefan Wallentowitz + + * or1k/impure.c: Fix initialization of impure ptr + 2015-05-26 Stefan Wallentowitz * or1k/boards/optimsoc.S: Heap for gzll kernel 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