Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm26/stand/lib Limit the heap so as to allow 4 KB ...
details: https://anonhg.NetBSD.org/src/rev/b0aa2748aaa7
branches: trunk
changeset: 513287:b0aa2748aaa7
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Fri Jul 27 20:48:20 2001 +0000
description:
Limit the heap so as to allow 4 KB of stack, which should be enough for most
purposes.
diffstat:
sys/arch/arm26/stand/lib/srt1.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 219e8b350980 -r b0aa2748aaa7 sys/arch/arm26/stand/lib/srt1.c
--- a/sys/arch/arm26/stand/lib/srt1.c Fri Jul 27 20:33:35 2001 +0000
+++ b/sys/arch/arm26/stand/lib/srt1.c Fri Jul 27 20:48:20 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: srt1.c,v 1.2 2001/07/27 00:21:18 bjh21 Exp $ */
+/* $NetBSD: srt1.c,v 1.3 2001/07/27 20:48:20 bjh21 Exp $ */
/*
* Copyright (c) 2001 Ben Harris.
@@ -66,6 +66,9 @@
/* Clear BSS */
memset(edata, 0, end - edata);
+ /* Define heap. */
+ setheap(end, (void *)(HIMEM - 0x1000));
+
args = os_get_env(NULL, NULL);
argc = splitargs(args, 0, NULL);
Home |
Main Index |
Thread Index |
Old Index