or1k: Add missing initialization of impure ptr

* or1k/impure.c: Fix initialization of impure ptr
This commit is contained in:
Jeff Johnston 2015-05-26 15:32:19 -04:00 committed by Corinna Vinschen
parent 5eb4a1666d
commit bb5cb3afb5
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -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