From 9827e29e95dcb58a5ceb838fc86be009ca3e787e Mon Sep 17 00:00:00 2001
From: Doug Coleman <doug.coleman@gmail.com>
Date: Tue, 18 Sep 2012 20:09:39 -0700
Subject: [PATCH] cpu.x86.features: Fix cpuid for win64.

---
 basis/cpu/x86/features/features.factor | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/basis/cpu/x86/features/features.factor b/basis/cpu/x86/features/features.factor
index 487593de4e..9b5dc20338 100644
--- a/basis/cpu/x86/features/features.factor
+++ b/basis/cpu/x86/features/features.factor
@@ -4,7 +4,7 @@ USING: accessors assocs sequences alien alien.c-types
 combinators compiler compiler.codegen.labels compiler.units
 cpu.architecture cpu.x86.assembler cpu.x86.assembler.operands
 init io kernel locals math math.order math.parser memoize
-namespaces system arrays specialized-arrays ;
+namespaces system arrays specialized-arrays cpu.x86.64 ;
 SPECIALIZED-ARRAY: uint
 IN: cpu.x86.features
 
@@ -103,7 +103,8 @@ M: x86.32 (cpuid) ( n regs -- )
 
 M: x86.64 (cpuid) ( n regs -- )
     void { uint void* } cdecl [
-        RAX RDI MOV
+        RAX param-reg-0 MOV
+        RSI param-reg-1 MOV
         CPUID
         RSI [] EAX MOV
         RSI 4 [+] EBX MOV