Changeset 9319


Ignore:
Timestamp:
Apr 28, 2008, 8:26:46 AM (11 years ago)
Author:
gb
Message:

os_get_current_thread_stack_bounds() for Windows: call current_stack_pointer,
don't take the address of the function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/win64/lisp-kernel/thread_manager.c

    r9305 r9319  
    535535  natural natbase;
    536536  MEMORY_BASIC_INFORMATION info;
    537  
    538   VirtualQuery((void *)current_stack_pointer, &info, sizeof(info));
     537  void *addr = (void *)current_stack_pointer();
     538 
     539  VirtualQuery(addr, &info, sizeof(info));
    539540  natbase = (natural)info.BaseAddress+info.RegionSize;
    540541  *size = natbase - (natural)(info.AllocationBase);
Note: See TracChangeset for help on using the changeset viewer.