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