Core number detect fix

change list: 
   1.  let ecx as input for cpuid assembly function.  
   2.  change the core number detect.