From c7b7517f36dbcdf2db47de04c685e87273775944 Mon Sep 17 00:00:00 2001 From: Phil Dawes Date: Mon, 7 Sep 2009 07:23:29 +0100 Subject: [PATCH] small x86 asm cleanup --- basis/cpu/x86/32/bootstrap.factor | 2 +- vm/cpu-x86.32.S | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/basis/cpu/x86/32/bootstrap.factor b/basis/cpu/x86/32/bootstrap.factor index afa7c245a0..e2096987da 100644 --- a/basis/cpu/x86/32/bootstrap.factor +++ b/basis/cpu/x86/32/bootstrap.factor @@ -29,7 +29,7 @@ IN: bootstrap.x86 ! save stack pointer temp0 [] stack-reg MOV ! pass vm ptr to primitive - EAX 0 MOV rc-absolute-cell rt-vm jit-rel + arg 0 MOV rc-absolute-cell rt-vm jit-rel ! call the primitive 0 JMP rc-relative rt-primitive jit-rel ] jit-primitive jit-define diff --git a/vm/cpu-x86.32.S b/vm/cpu-x86.32.S index a486fed29d..042924ca4f 100644 --- a/vm/cpu-x86.32.S +++ b/vm/cpu-x86.32.S @@ -53,7 +53,7 @@ DEF(void,primitive_inline_cache_miss,(void *vm)): mov (%esp),%ebx DEF(void,primitive_inline_cache_miss_tail,(void *vm)): sub $8,%esp - push %eax /* push vm ptr */ + push ARG0 /* push vm ptr */ push %ebx call MANGLE(inline_cache_miss) add $16,%esp -- 2.34.1