or1k: Add missing initialization of impure ptr
* or1k/impure.c: Fix initialization of impure ptr
This commit is contained in:
		
				
					committed by
					
						 Corinna Vinschen
						Corinna Vinschen
					
				
			
			
				
	
			
			
			
						parent
						
							5eb4a1666d
						
					
				
				
					commit
					bb5cb3afb5
				
			| @@ -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> | 2015-05-26  Stefan Wallentowitz  <stefan.wallentowitz@tum.de> | ||||||
|  |  | ||||||
| 	* or1k/boards/optimsoc.S: Heap for gzll kernel | 	* or1k/boards/optimsoc.S: Heap for gzll kernel | ||||||
|   | |||||||
| @@ -94,6 +94,9 @@ _or1k_libc_impure_init (void) | |||||||
| 	_REENT_INIT_PTR (_impure_ptr); | 	_REENT_INIT_PTR (_impure_ptr); | ||||||
| 	_REENT_INIT_PTR (_or1k_exception_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 | 	// Set current to standard impure pointer | ||||||
| 	_or1k_current_impure_ptr = _impure_ptr; | 	_or1k_current_impure_ptr = _impure_ptr; | ||||||
| #endif | #endif | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user