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 1/4] or1k: Make heap end globally visible


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

this is the first of four patches for the or1k port. There were some
issues with the different builds and we added exception nesting support.

This one exposes the heap end globally and allows to set it from board
initialization to change the heap start.

Thanks for applying!

Best,
Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlXEZzYACgkQuMYtsrn2U9y+UgCgr2kTAVB1x28VWZbEnO6UGVf+
EPoAoIeKFNlQqdVxuY2YjYt2lQUhzgTs
=/m6k
-----END PGP SIGNATURE-----
commit 4ebbde84d22ffd29d240a655a8320e7b4a6459b0
Author: Stefan Wallentowitz <stefan.wallentowitz@tum.de>
Date:   Tue May 19 17:48:24 2015 +0200

    or1k: Make heap end globally visible
    
    Boards may change the initial value from _end to another value.
    
           * or1k/sbrk.c: Make heap end globally visible

diff --git a/libgloss/or1k/sbrk.c b/libgloss/or1k/sbrk.c
index 5bd7044..0c3e66e 100644
--- a/libgloss/or1k/sbrk.c
+++ b/libgloss/or1k/sbrk.c
@@ -21,7 +21,7 @@
 
 extern uint32_t	end; /* Set by linker.  */
 uint32_t _or1k_heap_start = &end;
-static uint32_t _or1k_heap_end;
+uint32_t _or1k_heap_end;
 
 void *
 _sbrk_r (struct _reent * reent, ptrdiff_t incr)

Attachment: 0000-or1k-heap.patch.sig
Description: PGP signature


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