Ignore:
Timestamp:
Mar 20, 2009, 9:40:31 AM (11 years ago)
Author:
gb
Message:

The cstack on windows needs to be committed a page at a time, so do
stack probes (via new macro 'windows_cstack_probe'). Use the macro
in x86-spentry32.s; not sure if it's needed on win64.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/x86-spentry32.s

    r11794 r11828  
    20032003        __(cmpl $tstack_alloc_limit,%imm0)
    20042004        __(ja local_label(stack_misc_alloc_heap_alloc_ivector))
     2005        __ifdef([WINDOWS])
     2006         __(windows_cstack_probe(%imm0,%temp1))
     2007        __endif
    20052008        __(movd rcontext(tcr.foreign_sp),%stack_temp)
    20062009        __(movd %stack_temp,%temp1)
     
    27032706        __(cmpl $tstack_alloc_limit,%imm0)
    27042707        __(jae 1f)
     2708        __ifdef([WINDOWS])
     2709         __(windows_cstack_probe(%imm0,%arg_z))
     2710        __endif
    27052711        __(movd rcontext(tcr.foreign_sp),%mm0)
    27062712        __(subl %imm0,rcontext(tcr.foreign_sp))
     
    27302736        __(cmpl $tstack_alloc_limit,%imm0)
    27312737        __(jae 9f)
     2738        __ifdef([WINDOWS])
     2739         __(windows_cstack_probe(%imm0,%temp0))
     2740        __endif
    27322741        __(movl rcontext(tcr.foreign_sp),%temp0)
    27332742        __(subl %imm0,rcontext(tcr.foreign_sp))
Note: See TracChangeset for help on using the changeset viewer.