/[gcl]/gcl/o/unexnt.c
ViewVC logotype

Diff of /gcl/o/unexnt.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by mjthomas, Thu Apr 4 03:58:19 2002 UTC revision 1.8 by mjthomas, Tue Jul 30 02:53:32 2002 UTC
# Line 959  allocate_heap (void) Line 959  allocate_heap (void)
959    unsigned long end  = 1 << VALBITS; /* 256MB */    unsigned long end  = 1 << VALBITS; /* 256MB */
960    void *ptr = NULL;    void *ptr = NULL;
961    
962  #define NTHEAP_PROBE_BASE 1  #define NTHEAP_PROBE_BASE 0
963  #if NTHEAP_PROBE_BASE /* This is never normally defined */  #if NTHEAP_PROBE_BASE /* This is never normally defined */
964      /* Macros in gbc.c depend on DBEGIN being divisible by 32 */
965    /* Try various addresses looking for one the kernel will let us have.  */    /* Try various addresses looking for one the kernel will let us have.  */
966    while (!ptr && (base < end))    while (!ptr && (base < end))
967      {      {
# Line 970  allocate_heap (void) Line 971  allocate_heap (void)
971                            MEM_RESERVE,                            MEM_RESERVE,
972                            PAGE_NOACCESS);                            PAGE_NOACCESS);
973        base += 0x00100000;  /* 1MB increment */        base += 0x00100000;  /* 1MB increment */
974        DBEGIN = ptr;        DBEGIN = (DBEGIN_TY) ptr;
975      }      }
976  #else  #else
977    reserved_heap_size = end - base;    reserved_heap_size = end - base;
# Line 978  allocate_heap (void) Line 979  allocate_heap (void)
979                        get_reserved_heap_size (),                        get_reserved_heap_size (),
980                        MEM_RESERVE,                        MEM_RESERVE,
981                        PAGE_NOACCESS);                        PAGE_NOACCESS);
982    DBEGIN = ptr;    DBEGIN = (DBEGIN_TY) ptr;
983  #endif  #endif
984    
985    return ptr;    return ptr;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26