ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/Darwin/testlmem.sh
Revision: 1.1
Committed: 2003-10-12T22:39:59Z (20 years, 11 months ago) by gbeauche
Content type: application/x-sh
Branch: MAIN
Log Message:
Merge in __PAGEZERO hack from Michael Z. Sliczniak so that REAL_ADDRESSING
mode can work under Darwin.

File Contents

# User Rev Content
1 gbeauche 1.1 #!/bin/sh
2    
3     # testlmem.sh - test whether the Mach-O hack works
4     #
5     # Basilisk II (C) 1997-2003 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