From 6ae5c86b5ab147fa9377ca5115fa62f87637e93c Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Mon, 23 Jun 2003 19:06:12 +0000 Subject: 2003-06-23 Kazuhiro Inaoka * m32r/crt0.S (_start): Allow _stack to be placed anywhere in memory. --- libgloss/m32r/crt0.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libgloss/m32r') diff --git a/libgloss/m32r/crt0.S b/libgloss/m32r/crt0.S index f60a1a6..7c22f5a 100644 --- a/libgloss/m32r/crt0.S +++ b/libgloss/m32r/crt0.S @@ -3,7 +3,8 @@ .global _start _start: - ld24 sp, _stack + seth sp, #shigh(_stack) + add3 sp, sp, #low(_stack) ldi fp, #0 # Clear the BSS. Do it in two parts for efficiency: longwords first -- cgit v1.1