From 48f87e03e320fd5c4e3be2d462c240354471a24f Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Sun, 23 May 2010 23:08:07 -0400 Subject: [PATCH] cpu.x86: fix callbacks receiving stack parameters on Win64 --- basis/cpu/x86/x86.factor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basis/cpu/x86/x86.factor b/basis/cpu/x86/x86.factor index 38c51591e9..58343a4eee 100644 --- a/basis/cpu/x86/x86.factor +++ b/basis/cpu/x86/x86.factor @@ -583,7 +583,7 @@ M:: x86 %store-stack-param ( src n rep -- ) #! input values to callbacks; the callback has its own #! stack frame set up, and we want to read the frame #! set up by the caller. - frame-reg swap 2 cells + [+] ; + [ frame-reg ] dip 2 cells + reserved-stack-space + [+] ; M:: x86 %load-stack-param ( dst n rep -- ) dst n next-stack@ rep %copy ;