ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/Darwin/testlmem.sh
Revision: 1.3
Committed: 2005-01-30T21:42:14Z (19 years, 10 months ago) by gbeauche
Content type: application/x-sh
Branch: MAIN
CVS Tags: nigel-build-19, nigel-build-17, HEAD
Changes since 1.2: +1 -1 lines
Log Message:
Happy New Year!

File Contents

# Content
1 #!/bin/sh
2
3 # testlmem.sh - test whether the Mach-O hack works
4 #
5 # Basilisk II (C) 1997-2005 Christian Bauer
6 #
7 # testlmem.sh Copyright (C) 2003 Michael Z. Sliczniak
8 #
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2 of the License, or
12 # (at your option) any later version.
13 #
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
23 PAGEZERO_SIZE=0x2000
24 [[ -n "$1" ]] && PAGEZERO_SIZE=$1
25 # You want all the output to go to stderr so that configure is quiet but
26 # config.log is verbose.
27 { echo 'building lowmem utility' && \
28 make -f /dev/null Darwin/lowmem && \
29 echo 'building pagezero test' && \
30 make -f /dev/null LDFLAGS="-pagezero_size $PAGEZERO_SIZE" Darwin/pagezero && \
31 echo 'enabling low memory globals in pagezero' && \
32 Darwin/lowmem Darwin/pagezero && \
33 echo 'running pagezero test' && \
34 Darwin/pagezero; } 1>&2