head	1.1;
access;
symbols
	RELEASE_8_3_0:1.1
	RELEASE_9_0_0:1.1
	RELEASE_7_4_0:1.1
	RELEASE_8_2_0:1.1
	RELEASE_6_EOL:1.1
	RELEASE_8_1_0:1.1
	RELEASE_7_3_0:1.1
	RELEASE_8_0_0:1.1
	RELEASE_7_2_0:1.1
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1
	RELEASE_5_EOL:1.1
	RELEASE_7_0_0:1.1
	RELEASE_6_3_0:1.1
	PRE_XORG_7:1.1
	RELEASE_4_EOL:1.1
	RELEASE_6_2_0:1.1
	RELEASE_6_1_0:1.1
	RELEASE_5_5_0:1.1
	RELEASE_6_0_0:1.1
	RELEASE_5_4_0:1.1
	RELEASE_4_11_0:1.1
	RELEASE_5_3_0:1.1
	RELEASE_4_10_0:1.1
	RELEASE_5_2_1:1.1
	RELEASE_5_2_0:1.1
	RELEASE_4_9_0:1.1
	RELEASE_5_1_0:1.1
	RELEASE_4_8_0:1.1
	RELEASE_5_0_0:1.1
	RELEASE_4_7_0:1.1
	RELEASE_4_6_2:1.1
	RELEASE_4_6_1:1.1
	RELEASE_4_6_0:1.1
	RELEASE_5_0_DP1:1.1
	RELEASE_4_5_0:1.1
	RELEASE_4_4_0:1.1
	RELEASE_4_3_0:1.1
	RELEASE_4_2_0:1.1
	RELEASE_4_1_1:1.1
	RELEASE_4_1_0:1.1
	RELEASE_3_5_0:1.1
	RELEASE_4_0_0:1.1;
locks; strict;
comment	@# @;


1.1
date	2000.03.01.09.56.56;	author tg;	state Exp;
branches;
next	;


desc
@@


1.1
log
@- Convert to ELF.
- Support CC/CFLAGS/PREFIX.

PR:		16677
Submitted by:	KATO Tsuguru <tkato@@prontomail.ne.jp>
@
text
@--- scrt/heap.c.orig	Tue Feb 23 01:11:33 1993
+++ scrt/heap.c	Wed Feb  2 22:22:22 2000
@@@@ -66,6 +66,9 @@@@
 #ifdef VAX
 extern  sc_r2tor11( );
 #endif
+#ifdef FREEBSD
+extern  sc_geti386regs( S2CINT* a );
+#endif
 
 /* Forward declarations */
 
@@@@ -368,6 +371,31 @@@@
 	S2CINT  r2tor11[10], *pp;
 
 	sc_r2tor11( r2tor11 );
+	STACKPTR( pp );
+	while  (pp != sc_stackbase)  move_continuation_ptr( ((SCP)*pp++) );
+}
+#endif
+
+#ifdef FREEBSD
+/* The following code is used to read the stack pointer.  The register
+   number is passed in to force an argument to be on the stack, which in
+   turn can be used to find the address of the top of stack.
+*/
+
+S2CINT  *sc_processor_register( S2CINT reg )
+{
+	return( &reg );
+}
+
+/* All processor registers which might contain pointers are traced by the
+   following procedure.
+*/
+
+static  trace_stack_and_registers()
+{
+	S2CINT  i386regs[6], *pp;
+
+	sc_geti386regs( i386regs );
 	STACKPTR( pp );
 	while  (pp != sc_stackbase)  move_continuation_ptr( ((SCP)*pp++) );
 }
@
