Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/mips/crt0.S')
-rw-r--r--libgloss/mips/crt0.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgloss/mips/crt0.S b/libgloss/mips/crt0.S
index acb160df0..0c919f798 100644
--- a/libgloss/mips/crt0.S
+++ b/libgloss/mips/crt0.S
@@ -154,6 +154,7 @@ zerobss:
/* NOTE: a0[0] contains the amount of memory available, and
not the last memory address. */
+ la a0, __memsize
lw t0,0(a0) # last address of memory available
la t1,K0BASE # cached kernel memory
addu t0,t0,t1 # get the end of memory address