source: golgotha/src/i4/device/processor.cc @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 12 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 890 bytes
Line 
1/********************************************************************** <BR>
2  This file is part of Crack dot Com's free source code release of
3  Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
4  information about compiling & licensing issues visit this URL</a>
5  <PRE> If that doesn't help, contact Jonathan Clark at
6  golgotha_source@usa.net (Subject should have "GOLG" in it)
7***********************************************************************/
8
9#include "device/processor.hh"
10#include <string.h>
11
12void i4_win32_get_cpu_info(i4_cpu_info_struct *s);
13
14void i4_get_cpu_info(i4_cpu_info_struct *s)
15{
16  if (!s)
17    return;
18
19  s->cpu_type  = i4_cpu_info_struct::NON_X86;
20  s->cpu_flags = 0;
21
22#if (__linux)
23  s->cpu_type  = i4_cpu_info_struct::UNKNOWN_X86;
24  s->cpu_flags = 0;
25#endif
26
27#if (_WINDOWS)
28  i4_win32_get_cpu_info(s);
29#endif
30}
Note: See TracBrowser for help on using the repository browser.