Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Nedeľa, 25. október 2026

Rozdiely pre libplaton/platon/cpu/x86cpuid.c medzi verziami 1.2 a 1.3

verzia 1.2, 2002/05/06 17:39:59 verzia 1.3, 2002/09/19 23:18:00
Riadok 6 
Riadok 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"
Riadok 68  int main(void)
Riadok 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:
Odstranené z verzie1.2  
zmenené riadky
  Pridané vo verzii1.3

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok