2000-09-03 05:52:30 +02:00
|
|
|
/*
|
|
|
|
* (C) COPYRIGHT CRAY RESEARCH, INC.
|
|
|
|
* UNPUBLISHED PROPRIETARY INFORMATION.
|
|
|
|
* ALL RIGHTS RESERVED.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <unistd.h>
|
2001-09-20 17:44:41 +02:00
|
|
|
#ifdef __CYGWIN__
|
|
|
|
#include <windows.h>
|
|
|
|
#endif
|
2000-09-03 05:52:30 +02:00
|
|
|
|
|
|
|
char *
|
|
|
|
get_high_address()
|
|
|
|
{
|
2001-09-20 17:44:41 +02:00
|
|
|
#ifdef __CYGWIN__
|
|
|
|
return VirtualAlloc (NULL, 4096, MEM_COMMIT, PAGE_NOACCESS) + 2048;
|
|
|
|
#else
|
2000-09-03 05:52:30 +02:00
|
|
|
return (char *)sbrk(0) + 16384;
|
2001-09-20 17:44:41 +02:00
|
|
|
#endif
|
2000-09-03 05:52:30 +02:00
|
|
|
}
|