Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for libplaton/platon/cpu/x86cpuid.c between version 1.2 and 1.3

version 1.2, 2002/05/06 17:39:59 version 1.3, 2002/09/19 23:18:00
Line 6 
Line 6 
 #include <string.h>  #include <string.h>
 #endif  #endif
   
 /* #include <signal.h>  char *x86cpuid(void)
    void nope() { exit(1); } */  
   
 char *get_x86cpuid(void)  
 {  {
         unsigned long x[4];          unsigned long x[4];
         unsigned long y[4];          unsigned long y[4];
         register char *str;          register char *str;
   
         /* signal(SIGILL, nope); */  
   
         x[0] = x[1] = x[2] = x[3] = 0;          x[0] = x[1] = x[2] = x[3] = 0;
   
         __asm__ volatile(".byte 15;.byte 162"          __asm__ volatile(".byte 15;.byte 162"
Line 68  int main(void)
Line 63  int main(void)
 {  {
         register char *cpuid;          register char *cpuid;
   
         if ((cpuid = get_x86cpuid()) == NULL) {          if ((cpuid = x86cpuid()) == NULL) {
                 puts("memory allocation error");                  puts("memory allocation error");
                 return 1;                  return 1;
         }          }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top