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

Patch: __stack_base__ for arm crt0

[Get raw message]

The gcj runtime needs to know where the stack base is.  This is a
convenient way to get it right.

Ok?

2001-11-11  Anthony Green  <green@redhat.com>

	* libc/sys/arm/crt0.S (__stack_base__): New symbol.

Index: libc/sys/arm/crt0.S
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/arm/crt0.S,v
retrieving revision 1.3
diff -c -r1.3 crt0.S
*** crt0.S	2001/09/18 15:42:41	1.3
--- crt0.S	2001/11/11 16:19:02
***************
*** 243,251 ****
  /*  Workspace for Angel calls.  */
  	.data
  /*  Data returned by monitor SWI.  */
  HeapBase:	.word	0
  HeapLimit:	.word	0
! StackBase:	.word	0
  StackLimit:	.word	0
  CommandLine:	.space	256,0	/*  Maximum length of 255 chars handled.  */
  #endif
--- 243,252 ----
  /*  Workspace for Angel calls.  */
  	.data
  /*  Data returned by monitor SWI.  */
+ .global	__stack_base__
  HeapBase:	.word	0
  HeapLimit:	.word	0
! __stack_base__:	.word	0
  StackLimit:	.word	0
  CommandLine:	.space	256,0	/*  Maximum length of 255 chars handled.  */
  #endif


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